diff options
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index a8cb00c0c6d..a718d0e3d8e 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1137,6 +1137,15 @@ static inline void tcp_openreq_init(struct request_sock *req, | |||
1137 | ireq->loc_port = tcp_hdr(skb)->dest; | 1137 | ireq->loc_port = tcp_hdr(skb)->dest; |
1138 | } | 1138 | } |
1139 | 1139 | ||
1140 | /* Compute time elapsed between SYNACK and the ACK completing 3WHS */ | ||
1141 | static inline void tcp_synack_rtt_meas(struct sock *sk, | ||
1142 | struct request_sock *req) | ||
1143 | { | ||
1144 | if (tcp_rsk(req)->snt_synack) | ||
1145 | tcp_valid_rtt_meas(sk, | ||
1146 | tcp_time_stamp - tcp_rsk(req)->snt_synack); | ||
1147 | } | ||
1148 | |||
1140 | extern void tcp_enter_memory_pressure(struct sock *sk); | 1149 | extern void tcp_enter_memory_pressure(struct sock *sk); |
1141 | 1150 | ||
1142 | static inline int keepalive_intvl_when(const struct tcp_sock *tp) | 1151 | static inline int keepalive_intvl_when(const struct tcp_sock *tp) |