Re: [PATCH net] tcp: fix potential underestimation on rcv_rtt

2017-12-13 Thread David Miller
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

Re: [PATCH net] tcp: fix potential underestimation on rcv_rtt

2017-12-13 Thread Neal Cardwell
On Tue, Dec 12, 2017 at 7:28 PM, Wei Wang wrote: > 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

[PATCH net] tcp: fix potential underestimation on rcv_rtt

2017-12-12 Thread Wei Wang
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