]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: only take RTT from timestamps if new data is acked
authorYuchung Cheng <ycheng@google.com>
Thu, 24 Oct 2013 15:55:25 +0000 (08:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Oct 2013 20:50:06 +0000 (16:50 -0400)
commit7c227536026fe3460d69e037c1f22cc7c55d7de0
treeacbb596083058b7cff6edd7d96bd5411597fa5ea
parent661be99cf045fc813cfa74d315b4df338cb0e42f
tcp: only take RTT from timestamps if new data is acked

Patch 863bffc2d "tcp: use RTT from SACK for RTO" has a bug that
it does not check if the ACK acknowledge new data before taking
the RTT sample from TCP timestamps. This patch adds the check
back as required by the RFC.

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