diff options
author | Wei Wang <weiwan@google.com> | 2017-12-13 03:28:58 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-14 00:01:17 +0300 |
commit | 9ee11bd03cb1a5c3ca33c2bb70e7ed325f68890f (patch) | |
tree | 1e05b6639cbd8684e6bd85f9cc7bf02da14e2484 /fs/hfs/hfs_fs.h | |
parent | c009cb842fcc0f84536a9d2692e6f063af5ac5c6 (diff) | |
download | linux-9ee11bd03cb1a5c3ca33c2bb70e7ed325f68890f.tar.xz |
tcp: fix potential underestimation on rcv_rtt
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 <weiwan@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/hfs/hfs_fs.h')
0 files changed, 0 insertions, 0 deletions