From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] tcp: fix potential underestimation on rcv_rtt Date: Wed, 13 Dec 2017 16:03:36 -0500 (EST) Message-ID: <20171213.160336.2021377396736438041.davem@davemloft.net> References: <20171213002858.74188-1-tracywwnj@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, edumazet@google.com To: weiwan@google.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:45086 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753849AbdLMVDh (ORCPT ); Wed, 13 Dec 2017 16:03:37 -0500 In-Reply-To: <20171213002858.74188-1-tracywwnj@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Wei Wang Date: Tue, 12 Dec 2017 16:28:58 -0800 > From: Wei Wang > > When ms timestamp is used, current logic uses 1us in > tcp_rcv_rtt_update() when the real rcv_rtt is within 1 - 999us. > This could cause rcv_rtt underestimation. > Fix it by always using a min value of 1ms if ms timestamp is used. > > Fixes: 645f4c6f2ebd ("tcp: switch rcv_rtt_est and rcvq_space to high > resolution timestamps") > > Signed-off-by: Wei Wang > Signed-off-by: Eric Dumazet Please, in the future, do not wrap long Fixes: tag lines. Also, do not add an empty line between Fixes: and other tags like Signed-off-by. That are all tags and belong together as a seamless block of text. Thank you.