Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp3026107ybh; Mon, 16 Mar 2020 14:21:27 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuFQyayMmRvR7hPIqoQ26tZPVFgEeuzrJk+TijTcZBGNK1AL7+AI/7o7/RYm5lc3nvj0A/M X-Received: by 2002:aca:fd44:: with SMTP id b65mr1075227oii.119.1584393687542; Mon, 16 Mar 2020 14:21:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584393687; cv=none; d=google.com; s=arc-20160816; b=mNKtuojWDLRFkaREq68yVi7BGdehq8BMFR3NdfogHUINjcz+0PtluLzNNLRsy63Wk/ Ii3VedbZyWQ66hPtc/URXLt90kuqGOZGELV9N3VR+Y6CPsivPKVZ1klTDiZEtH1XOYou OGzMdGbgZigy4frWel9cDC0TdQabNfrrldEUW8lKweficdHuPk5MbIEKKnJvmNMJTl/e UmgkMdCqVvjfQnOe7yMkqFY2doONzRHKpvZUTbLO2OWW10a/4vd406TnqGkS6B/5Q+44 SbtA+YJtFwMniwqYyny/s9d3mxcGM8oDD1hOZZCzAGONNLG63NC7Z3K1JO1X6blSqPwM dWqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=a1XE8izbV0aV0z/olO49sH8BHMSQtnlugBK/5fYy8X0=; b=C27loSQM6E0dqZmnwBmypE6+0AiMy2LFgD7dNtfITDihcAZD6QRnmKb+bZIWlqMWCY lhAR/spQOW6R1pVM3fuu6RX9k9MI0kx3G9s9qndGB7B91mjYfdHmDySiOiqIpvbiAfdi zjFHEJNa2ADWIJ82yMIfpOtrv1D1BVKbZ9kg02xK6WQoh9wyUKu+VYIF718cYRJlO8oe RU5k0C78S5ad+ila1nsR0bX6MKrYeUYanO3pnN1R5DfiugcRwlssXvG7cbA3KqzT38zw fV5xtmDeqykOE8P6oyOqhGaRMys+NITnkVAprSYvMo57fbX7+vYjn1KcFj+BjPccMJ9I q8wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BG+T0vYj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7si538003oij.97.2020.03.16.14.21.13; Mon, 16 Mar 2020 14:21:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BG+T0vYj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732697AbgCPVTz (ORCPT + 99 others); Mon, 16 Mar 2020 17:19:55 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:35645 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732673AbgCPVTz (ORCPT ); Mon, 16 Mar 2020 17:19:55 -0400 Received: by mail-oi1-f196.google.com with SMTP id k8so18033673oik.2 for ; Mon, 16 Mar 2020 14:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=a1XE8izbV0aV0z/olO49sH8BHMSQtnlugBK/5fYy8X0=; b=BG+T0vYj04UU9sc0t/b/Jp6Xu57WufXdocIV02O2pLWUTL7JSKwxuho3mNpbM9jdwq PcEvQRuGXBFH0UGhbqzkHMnAwE76hvV29U+dDluuIPfG+cYJ+1Wa9h2Ga8luBMzhytXQ /F19jp8jL/8Wj3/tnD0UKos3PSVniRiZkF9yfA9ob0vpZyQlascM4hRhkzNYxaDBFyCv UO2Cr/C3WYpKSMYMxW+nj8CtSv/rVoSMvCaGMxJ5KAb/uNigtrZhXvfEsIZOKJjbOvCA l7iIt2VAbz2JhqQ/YN1+zguDpLogygrIkwPpqEGSk9GN+d50v9cBsTD/bK1xUhamexa/ 9CbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=a1XE8izbV0aV0z/olO49sH8BHMSQtnlugBK/5fYy8X0=; b=huzu/XqETUbuzXKR8mX0GG42j4lgAa/99+nrRVksXcgwstqy+Ywd7pnm1a8F9tgP2C 3YGfRZ0MOjbfWcRMWj6iqjloUCLDdCIvdLdfc5YhO3Io6URmMAyLTg+Z1xDfxsR2YzlX qTjLBUS1cyaP80vKg8uEpbtE+ZHsiBKcjHmrYqOhrgNXW/Q0x0i3aEoHMufupGMXcHt6 XX+elFt+VaK7lT/DEk4I9jhdHzQpxTorvIeOSZIe4n0RxO3nv+uRXtP8ANzLjArPTuW2 STasowHjFfoUoMRPEpp9BgX2zRCCwU+/nrfChg86kOWVQsC4jZzLP00vkavI1z4UhRIK vr5A== X-Gm-Message-State: ANhLgQ3eRhZu03r4oC/XWeXtL+N8dQDPTC5dUAyTJw5VYxGInjtxlMQC sblXVrwmocxnFNvSWP0+1+CKXkaYCbE31KKvlU3FZUX8J64= X-Received: by 2002:aca:3354:: with SMTP id z81mr1137863oiz.129.1584393593967; Mon, 16 Mar 2020 14:19:53 -0700 (PDT) MIME-Version: 1.0 References: <1584340511-9870-1-git-send-email-yangpc@wangsu.com> <1584340511-9870-2-git-send-email-yangpc@wangsu.com> In-Reply-To: <1584340511-9870-2-git-send-email-yangpc@wangsu.com> From: Neal Cardwell Date: Mon, 16 Mar 2020 17:19:37 -0400 Message-ID: Subject: Re: [PATCH RESEND net-next v2 1/5] tcp: fix stretch ACK bugs in BIC To: Pengcheng Yang Cc: Eric Dumazet , David Miller , Netdev , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 16, 2020 at 2:36 AM Pengcheng Yang wrote: > > Changes BIC to properly handle stretch ACKs in additive > increase mode by passing in the count of ACKed packets > to tcp_cong_avoid_ai(). > > Signed-off-by: Pengcheng Yang > --- > net/ipv4/tcp_bic.c | 11 ++++++----- > 1 file changed, 6 insertions(+), 5 deletions(-) > > diff --git a/net/ipv4/tcp_bic.c b/net/ipv4/tcp_bic.c > index 645cc30..f5f588b 100644 > --- a/net/ipv4/tcp_bic.c > +++ b/net/ipv4/tcp_bic.c > @@ -145,12 +145,13 @@ static void bictcp_cong_avoid(struct sock *sk, u32 ack, u32 acked) > if (!tcp_is_cwnd_limited(sk)) > return; > > - if (tcp_in_slow_start(tp)) > - tcp_slow_start(tp, acked); > - else { > - bictcp_update(ca, tp->snd_cwnd); > - tcp_cong_avoid_ai(tp, ca->cnt, 1); > + if (tcp_in_slow_start(tp)) { > + acked = tcp_slow_start(tp, acked); > + if (!acked) > + return; > } > + bictcp_update(ca, tp->snd_cwnd); > + tcp_cong_avoid_ai(tp, ca->cnt, acked); > } > > /* > -- Acked-by: Neal Cardwell thanks, neal