]> git.hungrycats.org Git - linux/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Mar 2013 19:58:54 +0000 (12:58 -0700)
commitb1a7a7672b91264a9ff65be7d39f395522942efc
treeae4e131ba52e15dfde396f29f7bde8eb1deb88dd
parente7a432a0c3f5bd368535e529ce66f27b834c0e9c
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_input.c