Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1355324imm; Tue, 2 Oct 2018 07:01:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV63KGYN1YLq1xOpebUN04cLdnzhobhFmHkdjxaU9quZlKDyJ9bn+UBuCm2CqSAzwoKtimVf3 X-Received: by 2002:a17:902:566:: with SMTP id 93-v6mr17245058plf.184.1538488897071; Tue, 02 Oct 2018 07:01:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538488897; cv=none; d=google.com; s=arc-20160816; b=mqR2emniLCue/pfnmOjjdpthhjAnxmhIsD2qyRCtrpV++o2dTlyvcAWdqxO2MgOAEh 73DP/0O984wFXBNaQo/PLp7g8qC4yhylxNFhD2mS5XKPwo2644SVXmoWzbP/gv0N7skc meGZBN2dusAfs9UicIjHPVpXQOdm5UnraRyqNN++JjgSRN63mXtAQVjjgbzq0Y+LORBt 0P8dZETPz7FnbrO3dLPtw40K7BYlhWX2Lw2JpaIogr1jGI8HpoXWQq2PC5EKEsm3UOhg V++7h7WIqzkMsuBRMRRSQx6HuAaeMzZZ2/UU/Q0bhHFyGW9Ne5JZTDTvU+hDx+3GNGIV LqSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=9D8LCuzhJ+10imKHilsoMVXq7AvwuWQDdxzpDxAKFFY=; b=tUySQV32ArWs3R8RMTDjSdwOD+iVdZgkDipe/OG5rTgqdOmkp5c2SrFxTHbxuVb0Nk +WoPovOddUDN0Zak0CXAvbyCQlfrpQgN2b2mONcyrtahPZnvH6C2CDucAG6Tex0EtEGC eMet5uYqUEtTks/YNY1ZQG0UdQdlI6w1Eu2FJWGZlrLGdqE+mk6Pgjy2+Yku56RNc6PP o13zX3j90r+jVZH3EmIthZdVNz4PgirzkWEBU2MlrEtsxZYTRmyAa5jXlKDGQpHLI+t+ bLPkHRsKKugd2zEh24ZMt80/w4aEzjyDND4MrYkJnop2+dv6qhsNBO9zZrJvcxXZlutp 8hxA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x13-v6si15331083pgq.357.2018.10.02.07.01.21; Tue, 02 Oct 2018 07:01:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730510AbeJBUN6 (ORCPT + 99 others); Tue, 2 Oct 2018 16:13:58 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33596 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730476AbeJBUN5 (ORCPT ); Tue, 2 Oct 2018 16:13:57 -0400 Received: from localhost (24-104-73-23-ip-static.hfc.comcastbusiness.net [24.104.73.23]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id DF4C6C52; Tue, 2 Oct 2018 13:30:34 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kevin Yang , Neal Cardwell , Yuchung Cheng , Soheil Hassas Yeganeh , "David S. Miller" , Sasha Levin Subject: [PATCH 4.18 191/228] tcp_bbr: in restart from idle, see if we should exit PROBE_RTT Date: Tue, 2 Oct 2018 06:24:48 -0700 Message-Id: <20181002132511.040897325@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181002132459.032960735@linuxfoundation.org> References: <20181002132459.032960735@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kevin Yang [ Upstream commit 5490b32dce6932ea7ee8e3b2f76db2957c92af6e ] This patch fix the case where BBR does not exit PROBE_RTT mode when it restarts from idle. When BBR restarts from idle and if BBR is in PROBE_RTT mode, BBR should check if it's time to exit PROBE_RTT. If yes, then BBR should exit PROBE_RTT mode and restore the cwnd to its full value. Fixes: 0f8782ea1497 ("tcp_bbr: add BBR congestion control") Signed-off-by: Kevin Yang Signed-off-by: Neal Cardwell Reviewed-by: Yuchung Cheng Reviewed-by: Soheil Hassas Yeganeh Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- net/ipv4/tcp_bbr.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/net/ipv4/tcp_bbr.c +++ b/net/ipv4/tcp_bbr.c @@ -174,6 +174,8 @@ static const u32 bbr_lt_bw_diff = 4000 / /* If we estimate we're policed, use lt_bw for this many round trips: */ static const u32 bbr_lt_bw_max_rtts = 48; +static void bbr_check_probe_rtt_done(struct sock *sk); + /* Do we estimate that STARTUP filled the pipe? */ static bool bbr_full_bw_reached(const struct sock *sk) { @@ -304,6 +306,8 @@ static void bbr_cwnd_event(struct sock * */ if (bbr->mode == BBR_PROBE_BW) bbr_set_pacing_rate(sk, bbr_bw(sk), BBR_UNIT); + else if (bbr->mode == BBR_PROBE_RTT) + bbr_check_probe_rtt_done(sk); } }