Home
last modified time | relevance | path

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

/Linux-v4.19/net/core/
Dsock_reuseport.c85 reuse->socks[0] = sk; in reuseport_alloc()
116 memcpy(more_reuse->socks, reuse->socks, in reuseport_grow()
121 rcu_assign_pointer(reuse->socks[i]->sk_reuseport_cb, in reuseport_grow()
178 reuse->socks[reuse->num_socks] = sk; in reuseport_add_sock()
210 if (reuse->socks[i] == sk) { in reuseport_detach_sock()
211 reuse->socks[i] = reuse->socks[reuse->num_socks - 1]; in reuseport_detach_sock()
222 static struct sock *run_bpf_filter(struct sock_reuseport *reuse, u16 socks, in run_bpf_filter() argument
246 if (index >= socks) in run_bpf_filter()
249 return reuse->socks[index]; in run_bpf_filter()
270 u16 socks; in reuseport_select_sock() local
[all …]
/Linux-v4.19/drivers/block/
Dnbd.c86 struct nbd_sock **socks; member
334 struct nbd_sock *nsock = config->socks[i]; in sock_shutdown()
367 if (config->socks && config->num_connections > 1) { in nbd_xmit_timeout()
370 config->socks[cmd->index]; in nbd_xmit_timeout()
408 struct socket *sock = config->socks[index]->sock; in sock_xmit()
464 struct nbd_sock *nsock = config->socks[index]; in nbd_send_cmd()
723 struct nbd_sock *nsock = config->socks[args->index]; in recv_work()
759 struct nbd_sock *nsock = config->socks[index]; in find_fallback()
772 !config->socks[fallback]->dead) in find_fallback()
777 config->socks[nsock->fallback_index]->dead) { in find_fallback()
[all …]
/Linux-v4.19/kernel/bpf/
Dreuseport_array.c23 struct sock __rcu **socks; in bpf_sk_reuseport_detach() local
26 socks = sk->sk_user_data; in bpf_sk_reuseport_detach()
27 if (socks) { in bpf_sk_reuseport_detach()
35 RCU_INIT_POINTER(*socks, NULL); in bpf_sk_reuseport_detach()
/Linux-v4.19/include/net/
Dsock_reuseport.h26 struct sock *socks[0]; /* array of sock pointers */ member
Dsock.h1160 atomic_t socks; member
1172 atomic_inc(&sk->sk_prot->socks); in sk_refcnt_debug_inc()
1177 atomic_dec(&sk->sk_prot->socks); in sk_refcnt_debug_dec()
1179 sk->sk_prot->name, sk, atomic_read(&sk->sk_prot->socks)); in sk_refcnt_debug_dec()