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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Mar 2013 19:12:07 +0000 (14:12 -0500)
commitaab2b4bf224ef8358d262f95b568b8ad0cecf0a0
treee16e5214f01f53975cb214dc98d153c9c96fe7db
parentd2123be0e55101742dacd6dae60cdd0f1e2ef302
tcp: fix double-counted receiver RTT when leaving receiver fast path

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>
net/ipv4/tcp_input.c