diff options
author | Neal Cardwell <ncardwell@google.com> | 2012-09-22 00:18:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-22 15:47:10 -0400 |
commit | 623df484a777f3c00c1ea3d6a7565b8d8ac688a1 (patch) | |
tree | 6394f6b3bac15a274dbaecc4c5d46761f838f2ca /net/ipv4/tcp_ipv4.c | |
parent | de46584675fad02b7f8255f31be0ea1be5cd185b (diff) |
tcp: extract code to compute SYNACK RTT
In preparation for adding another spot where we compute the SYNACK
RTT, extract this code so that it can be shared.
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index e64abed249cc..1e66f7fb4fe6 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c | |||
@@ -1733,9 +1733,7 @@ struct sock *tcp_v4_syn_recv_sock(struct sock *sk, struct sk_buff *skb, | |||
1733 | newtp->advmss = tcp_sk(sk)->rx_opt.user_mss; | 1733 | newtp->advmss = tcp_sk(sk)->rx_opt.user_mss; |
1734 | 1734 | ||
1735 | tcp_initialize_rcv_mss(newsk); | 1735 | tcp_initialize_rcv_mss(newsk); |
1736 | if (tcp_rsk(req)->snt_synack) | 1736 | tcp_synack_rtt_meas(newsk, req); |
1737 | tcp_valid_rtt_meas(newsk, | ||
1738 | tcp_time_stamp - tcp_rsk(req)->snt_synack); | ||
1739 | newtp->total_retrans = req->retrans; | 1737 | newtp->total_retrans = req->retrans; |
1740 | 1738 | ||
1741 | #ifdef CONFIG_TCP_MD5SIG | 1739 | #ifdef CONFIG_TCP_MD5SIG |