Lines Matching refs:newsk

1072 static void inet_inherit_port(struct sock *lsk, struct sock *newsk)  in inet_inherit_port()  argument
1075 __inet_inherit_port(lsk, newsk); in inet_inherit_port()
1123 struct sock *newsk; in chtls_recv_sock() local
1130 newsk = tcp_create_openreq_child(lsk, oreq, cdev->askb); in chtls_recv_sock()
1131 if (!newsk) in chtls_recv_sock()
1135 dst = inet_csk_route_child_sock(lsk, newsk, oreq); in chtls_recv_sock()
1183 newsk->sk_user_data = csk; in chtls_recv_sock()
1184 newsk->sk_backlog_rcv = chtls_backlog_rcv; in chtls_recv_sock()
1186 tp = tcp_sk(newsk); in chtls_recv_sock()
1187 newinet = inet_sk(newsk); in chtls_recv_sock()
1195 struct tcp6_sock *newtcp6sk = (struct tcp6_sock *)newsk; in chtls_recv_sock()
1197 struct ipv6_pinfo *newnp = inet6_sk(newsk); in chtls_recv_sock()
1200 inet_sk(newsk)->pinet6 = &newtcp6sk->inet6; in chtls_recv_sock()
1202 newsk->sk_v6_daddr = treq->ir_v6_rmt_addr; in chtls_recv_sock()
1203 newsk->sk_v6_rcv_saddr = treq->ir_v6_loc_addr; in chtls_recv_sock()
1204 inet6_sk(newsk)->saddr = treq->ir_v6_loc_addr; in chtls_recv_sock()
1207 newsk->sk_bound_dev_if = treq->ir_iif; in chtls_recv_sock()
1215 sk_setup_caps(newsk, dst); in chtls_recv_sock()
1217 newsk->sk_destruct = ctx->sk_destruct; in chtls_recv_sock()
1218 newsk->sk_prot_creator = lsk->sk_prot_creator; in chtls_recv_sock()
1219 csk->sk = newsk; in chtls_recv_sock()
1235 csk->sndbuf = newsk->sk_sndbuf; in chtls_recv_sock()
1237 RCV_WSCALE(tp) = select_rcv_wscale(tcp_full_space(newsk), in chtls_recv_sock()
1238 READ_ONCE(sock_net(newsk)-> in chtls_recv_sock()
1242 inet_inherit_port(lsk, newsk); in chtls_recv_sock()
1244 bh_unlock_sock(newsk); /* tcp_create_openreq_child ->sk_clone_lock */ in chtls_recv_sock()
1246 return newsk; in chtls_recv_sock()
1254 inet_csk_prepare_forced_close(newsk); in chtls_recv_sock()
1255 tcp_done(newsk); in chtls_recv_sock()
1300 struct sock *newsk; in chtls_pass_accept_request() local
1315 newsk = lookup_tid(cdev->tids, tid); in chtls_pass_accept_request()
1317 if (newsk) { in chtls_pass_accept_request()
1399 newsk = chtls_recv_sock(sk, oreq, network_hdr, req, cdev); in chtls_pass_accept_request()
1400 if (!newsk) in chtls_pass_accept_request()
1403 if (chtls_get_module(newsk)) in chtls_pass_accept_request()
1406 reply_skb->sk = newsk; in chtls_pass_accept_request()
1407 chtls_install_cpl_ops(newsk); in chtls_pass_accept_request()
1408 cxgb4_insert_tid(cdev->tids, newsk, tid, newsk->sk_family); in chtls_pass_accept_request()
1409 csk = rcu_dereference_sk_user_data(newsk); in chtls_pass_accept_request()