Home
last modified time | relevance | path

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

/Linux-v5.15/net/core/
Dsock_reuseport.c34 left = reuse->max_socks - reuse->num_closed_socks; in reuseport_sock_index()
35 right = reuse->max_socks; in reuseport_sock_index()
70 reuse->socks[reuse->max_socks - reuse->num_closed_socks - 1] = sk; in __reuseport_add_closed_sock()
83 reuse->socks[i] = reuse->socks[reuse->max_socks - reuse->num_closed_socks]; in __reuseport_detach_closed_sock()
90 static struct sock_reuseport *__reuseport_alloc(unsigned int max_socks) in __reuseport_alloc() argument
93 sizeof(struct sock *) * max_socks; in __reuseport_alloc()
99 reuse->max_socks = max_socks; in __reuseport_alloc()
167 more_socks_size = reuse->max_socks * 2U; in reuseport_grow()
176 sk = reuse->socks[reuse->max_socks - reuse->num_closed_socks]; in reuseport_grow()
200 (more_reuse->max_socks - more_reuse->num_closed_socks), in reuseport_grow()
[all …]
/Linux-v5.15/include/net/
Dsock_reuseport.h16 u16 max_socks; /* length of socks */ member