From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH v2 net-next 3/6] tcp: add SACK compression Date: Thu, 17 May 2018 13:41:21 -0700 Message-ID: <6e8e3303-f267-4952-cf17-7218469e0656@gmail.com> References: <20180517174739.192489-1-edumazet@google.com> <20180517174739.192489-4-edumazet@google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: netdev , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vu?= =?UTF-8?Q?sen?= , Neal Cardwell , Yuchung Cheng , Soheil Hassas Yeganeh , Eric Dumazet To: Eric Dumazet , "David S . Miller" Return-path: Received: from mail-pf0-f193.google.com ([209.85.192.193]:33386 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751644AbeEQUle (ORCPT ); Thu, 17 May 2018 16:41:34 -0400 Received: by mail-pf0-f193.google.com with SMTP id a20-v6so2650541pfo.0 for ; Thu, 17 May 2018 13:41:34 -0700 (PDT) In-Reply-To: <20180517174739.192489-4-edumazet@google.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: On 05/17/2018 10:47 AM, Eric Dumazet wrote: > + /* compress ack timer : 5 % of srtt, but no more than 1 ms */ > + > + delay = min_t(unsigned long, NSEC_PER_MSEC, > + tp->rcv_rtt_est.rtt_us * (NSEC_PER_USEC >> 3)/20); > Yuchung suggested that we use min(rtt, rcv_rtt), and I totally agree with him. I will send a v3 with this suggestion.