aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_timer.c
diff options
context:
space:
mode:
authorWei Wang <weiwan@google.com>2017-12-12 16:28:58 -0800
committerDavid S. Miller <davem@davemloft.net>2017-12-13 16:01:17 -0500
commit9ee11bd03cb1a5c3ca33c2bb70e7ed325f68890f (patch)
tree1e05b6639cbd8684e6bd85f9cc7bf02da14e2484 /net/ipv4/tcp_timer.c
parentskge: remove redundunt free_irq under spinlock (diff)
downloadlinux-dev-9ee11bd03cb1a5c3ca33c2bb70e7ed325f68890f.tar.xz
linux-dev-9ee11bd03cb1a5c3ca33c2bb70e7ed325f68890f.zip
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 'net/ipv4/tcp_timer.c')
0 files changed, 0 insertions, 0 deletions