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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2013 20:37:36 +0000 (12:37 -0800)
commit6f21a69396ea242c3e65fe8304f5296c54408d3a
tree11e217af2af3efebbe2a11efca65192b2215ba95
parentf5bc40e890db537bbca6b63a81c52e4d91e00e0b
tcp: only take RTT from timestamps if new data is acked

[ Upstream commit 2909d874f34eae157aecab0af27c6dc4a1751f8f ]

Patch ed08495c3 "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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_input.c