Home
last modified time | relevance | path

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

/Linux-v5.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 …]
/Linux-v5.10/drivers/block/
Dnbd.c92 struct nbd_sock **socks; member
359 struct nbd_sock *nsock = config->socks[i]; in sock_shutdown()
412 if (config->socks) { in nbd_xmit_timeout()
415 config->socks[cmd->index]; in nbd_xmit_timeout()
439 struct nbd_sock *nsock = config->socks[cmd->index]; in nbd_xmit_timeout()
478 struct socket *sock = config->socks[index]->sock; in sock_xmit()
534 struct nbd_sock *nsock = config->socks[index]; in nbd_send_cmd()
794 struct nbd_sock *nsock = config->socks[args->index]; in recv_work()
836 struct nbd_sock *nsock = config->socks[index]; in find_fallback()
849 !config->socks[fallback]->dead) in find_fallback()
[all …]
/Linux-v5.10/tools/testing/selftests/bpf/progs/
Dbpf_iter_sockmap.c33 __u32 socks = 0; variable
53 socks++; in copy()
/Linux-v5.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()
/Linux-v5.10/include/net/
Dsock_reuseport.h27 struct sock *socks[]; /* array of sock pointers */ member
Dsock.h1233 atomic_t socks; member
1245 atomic_inc(&sk->sk_prot->socks); in sk_refcnt_debug_inc()
1250 atomic_dec(&sk->sk_prot->socks); in sk_refcnt_debug_dec()
1252 sk->sk_prot->name, sk, atomic_read(&sk->sk_prot->socks)); in sk_refcnt_debug_dec()
/Linux-v5.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()