| /linux/kernel/bpf/ |
| H A D | reuseport_array.c | 189 const struct sock *nsk, in reuseport_array_update_check() argument 200 if (nsk->sk_protocol != IPPROTO_UDP && nsk->sk_protocol != IPPROTO_TCP) in reuseport_array_update_check() 203 if (nsk->sk_family != AF_INET && nsk->sk_family != AF_INET6) in reuseport_array_update_check() 206 if (nsk->sk_type != SOCK_STREAM && nsk->sk_type != SOCK_DGRAM) in reuseport_array_update_check() 217 if (!sock_flag(nsk, SOCK_RCU_FREE) || !sk_hashed(nsk) || !nsk_reuse) in reuseport_array_update_check() 221 if (READ_ONCE(nsk->sk_user_data)) in reuseport_array_update_check() 236 struct sock *free_osk = NULL, *osk, *nsk; in bpf_fd_reuseport_array_update_elem() local 263 nsk = socket->sk; in bpf_fd_reuseport_array_update_elem() 264 if (!nsk) { in bpf_fd_reuseport_array_update_elem() 270 err = reuseport_array_update_check(array, nsk, in bpf_fd_reuseport_array_update_elem() [all …]
|
| /linux/net/core/ |
| H A D | sock_reuseport.c | 625 struct sock *nsk = NULL; in reuseport_migrate_sock() local 659 nsk = bpf_run_sk_reuseport(reuse, sk, prog, skb, migrating_sk, hash); in reuseport_migrate_sock() 665 if (!nsk) in reuseport_migrate_sock() 666 nsk = reuseport_select_sock_by_hash(reuse, hash, socks); in reuseport_migrate_sock() 668 if (IS_ERR_OR_NULL(nsk) || unlikely(!refcount_inc_not_zero(&nsk->sk_refcnt))) { in reuseport_migrate_sock() 669 nsk = NULL; in reuseport_migrate_sock() 675 return nsk; in reuseport_migrate_sock()
|
| H A D | sock.c | 2199 * Copy all fields from osk to nsk but nsk->sk_refcnt must not change yet, in sock_copy() 2203 static void sock_copy(struct sock *nsk, const struct sock *osk) in sock_copy() 2207 void *sptr = nsk->sk_security; in sock_copy() 2219 memcpy(nsk, osk, offsetof(struct sock, sk_dontcopy_begin)); in sock_copy() 2221 unsafe_memcpy(&nsk->sk_dontcopy_end, &osk->sk_dontcopy_end, in sock_copy() 2226 nsk->sk_security = sptr; in sk_prot_alloc() 2227 security_sk_clone(osk, nsk); in sk_prot_alloc() 2197 sock_copy(struct sock * nsk,const struct sock * osk) sock_copy() argument
|
| /linux/net/ipv6/ |
| H A D | tcp_ipv6.c | 1617 struct sock *nsk = tcp_v6_cookie_check(sk, skb); 1619 if (nsk != sk) { 1620 if (nsk) { 1621 reason = tcp_child_process(sk, nsk, skb); 1763 struct sock *nsk; 1782 nsk = reuseport_migrate_sock(sk, req_to_sk(req), skb); 1783 if (!nsk) { 1787 sk = nsk; 1795 nsk = NULL; 1800 nsk 1662 struct sock *nsk = tcp_v6_cookie_check(sk, skb); global() local 1808 struct sock *nsk; global() local [all...] |
| /linux/net/dccp/ |
| H A D | ipv4.c | |
| H A D | ipv6.c | |
| /linux/net/mptcp/ |
| H A D | protocol.c | 3486 struct sock *nsk = sk_clone_lock(sk, GFP_ATOMIC); in mptcp_sk_clone_init() local 3490 if (!nsk) in mptcp_sk_clone_init() 3494 if (nsk->sk_family == AF_INET6) in mptcp_sk_clone_init() 3495 inet_sk(nsk)->pinet6 = mptcp_inet6_sk(nsk); in mptcp_sk_clone_init() 3498 __mptcp_init_sock(nsk); in mptcp_sk_clone_init() 3501 if (nsk->sk_family == AF_INET6) in mptcp_sk_clone_init() 3502 mptcp_copy_ip6_options(nsk, sk); in mptcp_sk_clone_init() 3505 mptcp_copy_ip_options(nsk, sk); in mptcp_sk_clone_init() 3507 msk = mptcp_sk(nsk); in mptcp_sk_clone_init() 3525 sock_reset_flag(nsk, SOCK_RCU_FREE); in mptcp_sk_clone_init() [all …]
|
| /linux/net/bluetooth/rfcomm/ |
| H A D | sock.c | 476 struct sock *sk = sock->sk, *nsk; in rfcomm_sock_accept() 499 nsk = bt_accept_dequeue(sk, newsock); in rfcomm_sock_accept() 500 if (nsk) in rfcomm_sock_accept() 526 BT_DBG("new socket %p", nsk); in rfcomm_sock_accept() 475 struct sock *sk = sock->sk, *nsk; rfcomm_sock_accept() local
|
| /linux/net/bluetooth/ |
| H A D | l2cap_sock.c | 333 struct sock *sk = sock->sk, *nsk; in l2cap_sock_accept() local 351 nsk = bt_accept_dequeue(sk, newsock); in l2cap_sock_accept() 352 if (nsk) in l2cap_sock_accept() 378 BT_DBG("new socket %p", nsk); in l2cap_sock_accept()
|
| /linux/arch/arm64/kvm/ |
| H A D | pmu-emul.c | 648 bool nsk = evtreg & ARMV8_PMU_EXCLUDE_NS_EL1; in kvm_pmc_counts_at_el1() local 651 return p == nsk; in kvm_pmc_counts_at_el1()
|
| /linux/include/net/ |
| H A D | sock.h | 1022 static inline void sock_copy_flags(struct sock *nsk, const struct sock *osk) in sock_copy_flags() argument 1024 nsk->sk_flags = osk->sk_flags; in sock_copy_flags()
|