diff options
author | Yuchung Cheng <ycheng@google.com> | 2013-07-22 19:20:45 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-22 20:53:42 -0400 |
commit | 375fe02c91792917aa26d68a87ab110d1937f44e (patch) | |
tree | 2a6c1205f6b136f7ac55f191912b386a0f3b2491 /net/ipv6/tcp_ipv6.c | |
parent | c3f51d5f387b552b9d9fd7f41e19b84929712f82 (diff) |
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>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 6e1649d58533..80fe69ef2188 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
@@ -1237,8 +1237,6 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb, | |||
1237 | newtp->advmss = tcp_sk(sk)->rx_opt.user_mss; | 1237 | newtp->advmss = tcp_sk(sk)->rx_opt.user_mss; |
1238 | 1238 | ||
1239 | tcp_initialize_rcv_mss(newsk); | 1239 | tcp_initialize_rcv_mss(newsk); |
1240 | tcp_synack_rtt_meas(newsk, req); | ||
1241 | newtp->total_retrans = req->num_retrans; | ||
1242 | 1240 | ||
1243 | newinet->inet_daddr = newinet->inet_saddr = LOOPBACK4_IPV6; | 1241 | newinet->inet_daddr = newinet->inet_saddr = LOOPBACK4_IPV6; |
1244 | newinet->inet_rcv_saddr = LOOPBACK4_IPV6; | 1242 | newinet->inet_rcv_saddr = LOOPBACK4_IPV6; |