]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: apply Kern's check on RTTs used for congestion control
authorYuchung Cheng <ycheng@google.com>
Sat, 17 Oct 2015 04:57:41 +0000 (21:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Oct 2015 14:00:41 +0000 (07:00 -0700)
commitb2b6fa39087c691eca04bae53f7e1292be36157e
tree7294db10f64aede08fd0225347293b32075fdd68
parente1d7a35a40f3e70ae78ee5a0191d8c65221d1eab
tcp: apply Kern's check on RTTs used for congestion control

Currently ca_seq_rtt_us does not use Kern's check. Fix that by
checking if any packet acked is a retransmit, for both RTT used
for RTT estimation and congestion control.

Fixes: a7223aadc ("tcp: prefer packet timing to TS-ECR for RTT")
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c