Lines Matching refs:sk
127 static bool tcp_fastopen_create_child(struct sock *sk, in tcp_fastopen_create_child() argument
133 struct request_sock_queue *queue = &inet_csk(sk)->icsk_accept_queue; in tcp_fastopen_create_child()
139 req->sk = NULL; in tcp_fastopen_create_child()
141 child = inet_csk(sk)->icsk_af_ops->syn_recv_sock(sk, skb, req, NULL); in tcp_fastopen_create_child()
172 inet_csk_reqsk_queue_add(sk, req, child); in tcp_fastopen_create_child()
217 sk->sk_data_ready(sk); in tcp_fastopen_create_child()
220 WARN_ON(!req->sk); in tcp_fastopen_create_child()
224 static bool tcp_fastopen_queue_check(struct sock *sk) in tcp_fastopen_queue_check() argument
238 fastopenq = inet_csk(sk)->icsk_accept_queue.fastopenq; in tcp_fastopen_queue_check()
248 NET_INC_STATS_BH(sock_net(sk), in tcp_fastopen_queue_check()
264 bool tcp_try_fastopen(struct sock *sk, struct sk_buff *skb, in tcp_try_fastopen() argument
273 NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPFASTOPENCOOKIEREQD); in tcp_try_fastopen()
277 tcp_fastopen_queue_check(sk))) { in tcp_try_fastopen()
299 if (tcp_fastopen_create_child(sk, skb, dst, req)) { in tcp_try_fastopen()
301 NET_INC_STATS_BH(sock_net(sk), in tcp_try_fastopen()
305 NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPFASTOPENPASSIVEFAIL); in tcp_try_fastopen()
307 NET_INC_STATS_BH(sock_net(sk), LINUX_MIB_TCPFASTOPENPASSIVEFAIL); in tcp_try_fastopen()