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 /include/net/tcp.h | |
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 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index d1980054ec75..f9777dbede75 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1094,15 +1094,6 @@ static inline void tcp_openreq_init(struct request_sock *req, | |||
1094 | ireq->loc_port = tcp_hdr(skb)->dest; | 1094 | ireq->loc_port = tcp_hdr(skb)->dest; |
1095 | } | 1095 | } |
1096 | 1096 | ||
1097 | /* Compute time elapsed between SYNACK and the ACK completing 3WHS */ | ||
1098 | static inline void tcp_synack_rtt_meas(struct sock *sk, | ||
1099 | struct request_sock *req) | ||
1100 | { | ||
1101 | if (tcp_rsk(req)->snt_synack) | ||
1102 | tcp_valid_rtt_meas(sk, | ||
1103 | tcp_time_stamp - tcp_rsk(req)->snt_synack); | ||
1104 | } | ||
1105 | |||
1106 | extern void tcp_enter_memory_pressure(struct sock *sk); | 1097 | extern void tcp_enter_memory_pressure(struct sock *sk); |
1107 | 1098 | ||
1108 | static inline int keepalive_intvl_when(const struct tcp_sock *tp) | 1099 | static inline int keepalive_intvl_when(const struct tcp_sock *tp) |