]> git.kernelconcepts.de Git - karo-tx-linux.git/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 20:10:58 +0000 (13:10 -0700)
commitd725632acb3bd015dd6abe2bb01b11a9385f10ea
tree4db8ce8211ae559a5a5b440dbf1a484c0fa86341
parent280b2b998f326449aa18fe3d064c012deaaeaefb
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