diff options
author | Eric Dumazet <edumazet@google.com> | 2015-03-17 00:06:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-17 15:18:00 -0400 |
commit | 1bfc4438a7ef99e8a6cba0bd3a86249430256621 (patch) | |
tree | 63db06a89283e694e3ff7d01e9bf05fa522f12a8 /include/net/tcp.h | |
parent | adc17d6a6ca08d11f70f6c49f3d40b87b68fe53f (diff) |
tcp: move tcp_openreq_init() to tcp_input.c
This big helper is called once from tcp_conn_request(), there is no
point having it in an include. Compiler will inline it anyway.
Signed-off-by: Eric Dumazet <edumazet@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 | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 2e11e38205c2..9fe1d535cd6c 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1137,31 +1137,6 @@ static inline int tcp_full_space(const struct sock *sk) | |||
1137 | return tcp_win_from_space(sk->sk_rcvbuf); | 1137 | return tcp_win_from_space(sk->sk_rcvbuf); |
1138 | } | 1138 | } |
1139 | 1139 | ||
1140 | static inline void tcp_openreq_init(struct request_sock *req, | ||
1141 | struct tcp_options_received *rx_opt, | ||
1142 | struct sk_buff *skb, struct sock *sk) | ||
1143 | { | ||
1144 | struct inet_request_sock *ireq = inet_rsk(req); | ||
1145 | |||
1146 | req->rcv_wnd = 0; /* So that tcp_send_synack() knows! */ | ||
1147 | req->cookie_ts = 0; | ||
1148 | tcp_rsk(req)->rcv_isn = TCP_SKB_CB(skb)->seq; | ||
1149 | tcp_rsk(req)->rcv_nxt = TCP_SKB_CB(skb)->seq + 1; | ||
1150 | tcp_rsk(req)->snt_synack = tcp_time_stamp; | ||
1151 | tcp_rsk(req)->last_oow_ack_time = 0; | ||
1152 | req->mss = rx_opt->mss_clamp; | ||
1153 | req->ts_recent = rx_opt->saw_tstamp ? rx_opt->rcv_tsval : 0; | ||
1154 | ireq->tstamp_ok = rx_opt->tstamp_ok; | ||
1155 | ireq->sack_ok = rx_opt->sack_ok; | ||
1156 | ireq->snd_wscale = rx_opt->snd_wscale; | ||
1157 | ireq->wscale_ok = rx_opt->wscale_ok; | ||
1158 | ireq->acked = 0; | ||
1159 | ireq->ecn_ok = 0; | ||
1160 | ireq->ir_rmt_port = tcp_hdr(skb)->source; | ||
1161 | ireq->ir_num = ntohs(tcp_hdr(skb)->dest); | ||
1162 | ireq->ir_mark = inet_request_mark(sk, skb); | ||
1163 | } | ||
1164 | |||
1165 | extern void tcp_openreq_init_rwin(struct request_sock *req, | 1140 | extern void tcp_openreq_init_rwin(struct request_sock *req, |
1166 | struct sock *sk, struct dst_entry *dst); | 1141 | struct sock *sk, struct dst_entry *dst); |
1167 | 1142 | ||