tcp: consolidate SYNACK RTT sampling
authorYuchung Cheng <ycheng@google.com>
Mon, 22 Jul 2013 23:20:45 +0000 (16:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jul 2013 00:53:42 +0000 (17:53 -0700)
commit375fe02c91792917aa26d68a87ab110d1937f44e
tree2a6c1205f6b136f7ac55f191912b386a0f3b2491
parentc3f51d5f387b552b9d9fd7f41e19b84929712f82
tcp: consolidate SYNACK RTT sampling

The first patch consolidates SYNACK and other RTT measurement to use a
central function tcp_ack_update_rtt(). A (small) bonus is now SYNACK
RTT measurement happens after PAWS check, potentially reducing the
impact of RTO seeding on bad TCP timestamps values.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_minisocks.c
net/ipv6/tcp_ipv6.c