Home
last modified time | relevance | path

Searched refs:socks (Results 1 – 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/net/core/
Dsock_reuseport.c75 reuse->socks[0] = sk; in reuseport_alloc()
106 memcpy(more_reuse->socks, reuse->socks, in reuseport_grow()
111 rcu_assign_pointer(reuse->socks[i]->sk_reuseport_cb, in reuseport_grow()
169 reuse->socks[reuse->num_socks] = sk; in reuseport_add_sock()
205 if (reuse->socks[i] == sk) { in reuseport_detach_sock()
206 reuse->socks[i] = reuse->socks[reuse->num_socks - 1]; in reuseport_detach_sock()
217 static struct sock *run_bpf_filter(struct sock_reuseport *reuse, u16 socks, in run_bpf_filter() argument
241 if (index >= socks) in run_bpf_filter()
244 return reuse->socks[index]; in run_bpf_filter()
265 u16 socks; in reuseport_select_sock() local
[all …]
/kernel/linux/linux-5.10/drivers/block/
Dnbd.c91 struct nbd_sock **socks; member
364 struct nbd_sock *nsock = config->socks[i]; in sock_shutdown()
422 if (config->socks) { in nbd_xmit_timeout()
425 config->socks[cmd->index]; in nbd_xmit_timeout()
449 struct nbd_sock *nsock = config->socks[cmd->index]; in nbd_xmit_timeout()
489 struct socket *sock = config->socks[index]->sock; in sock_xmit()
545 struct nbd_sock *nsock = config->socks[index]; in nbd_send_cmd()
852 nsock = config->socks[args->index]; in recv_work()
895 struct nbd_sock *nsock = config->socks[index]; in find_fallback()
908 !config->socks[fallback]->dead) in find_fallback()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dbpf_iter_sockmap.c33 __u32 socks = 0; variable
53 socks++; in copy()
/kernel/linux/linux-5.10/kernel/bpf/
Dreuseport_array.c28 struct sock __rcu **socks; in bpf_sk_reuseport_detach() local
30 socks = (void *)(sk_user_data & SK_USER_DATA_PTRMASK); in bpf_sk_reuseport_detach()
38 RCU_INIT_POINTER(*socks, NULL); in bpf_sk_reuseport_detach()
/kernel/linux/linux-5.10/include/net/
Dsock_reuseport.h27 struct sock *socks[]; /* array of sock pointers */ member
Dsock.h1243 atomic_t socks; member
1255 atomic_inc(&sk->sk_prot->socks); in sk_refcnt_debug_inc()
1260 atomic_dec(&sk->sk_prot->socks); in sk_refcnt_debug_dec()
1262 sk->sk_prot->name, sk, atomic_read(&sk->sk_prot->socks)); in sk_refcnt_debug_dec()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dsockmap_basic.c264 if (CHECK(skel->bss->socks != num_sockets, "socks", "got %u expected %u\n", in test_sockmap_copy()
265 skel->bss->socks, num_sockets)) in test_sockmap_copy()