tcp: fix double-counted receiver RTT when leaving receiver fast path
authorNeal Cardwell <ncardwell@google.com>
Mon, 4 Mar 2013 06:23:05 +0000 (06:23 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 27 Mar 2013 02:40:56 +0000 (02:40 +0000)
commitfc1b43e0fb47bdf0bfe9549e26b433bd4b340fbd
tree9353bf902801884894db91f1b3ac9dbdcf7ccdf0
parentcbfa00d4430c5e630d61e09f90268d6e3a07a91f
tcp: fix double-counted receiver RTT when leaving  receiver fast path

[ Upstream commit aab2b4bf224ef8358d262f95b568b8ad0cecf0a0 ]

We should not update ts_recent and call tcp_rcv_rtt_measure_ts() both
before and after going to step5. That wastes CPU and double-counts the
receiver-side RTT sample.

Signed-off-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: Ben Hutchings <ben@decadent.org.uk>
net/ipv4/tcp_input.c