]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: fix RTO calculated from cached RTT
authorNeal Cardwell <ncardwell@google.com>
Tue, 17 Sep 2013 01:44:20 +0000 (21:44 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Sep 2013 23:08:08 +0000 (19:08 -0400)
commit6082863779c68c3387d3830aae4418dabef264ea
tree00089098af219e1257caaf5c06835d3dbd6d043d
parent850b09667c08ecdce3ff36e794f11da299981436
tcp: fix RTO calculated from cached RTT

Commit 18febaad45132 ("tcp: do not use cached RTT for RTT estimation")
did not correctly account for the fact that crtt is the RTT shifted
left 3 bits. Fix the calculation to consistently reflect this fact.

Signed-off-by: Neal Cardwell <ncardwell@google.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Acked-By: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_metrics.c