Home
last modified time | relevance | path

Searched refs:max_socks (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.1/net/core/
Dsock_reuseport.c50 left = reuse->max_socks - reuse->num_closed_socks; in reuseport_sock_index()
51 right = reuse->max_socks; in reuseport_sock_index()
86 reuse->socks[reuse->max_socks - reuse->num_closed_socks - 1] = sk; in __reuseport_add_closed_sock()
99 reuse->socks[i] = reuse->socks[reuse->max_socks - reuse->num_closed_socks]; in __reuseport_detach_closed_sock()
106 static struct sock_reuseport *__reuseport_alloc(unsigned int max_socks) in __reuseport_alloc() argument
109 sizeof(struct sock *) * max_socks; in __reuseport_alloc()
115 reuse->max_socks = max_socks; in __reuseport_alloc()
183 more_socks_size = reuse->max_socks * 2U; in reuseport_grow()
192 sk = reuse->socks[reuse->max_socks - reuse->num_closed_socks]; in reuseport_grow()
216 (more_reuse->max_socks - more_reuse->num_closed_socks), in reuseport_grow()
[all …]
/Linux-v6.1/include/net/
Dsock_reuseport.h16 u16 max_socks; /* length of socks */ member