Lines Matching refs:num_socks
112 right = reuse->num_socks; in reuseport_sock_index()
127 reuse->socks[reuse->num_socks] = sk; in __reuseport_add_sock()
130 reuse->num_socks++; in __reuseport_add_sock()
142 reuse->socks[i] = reuse->socks[reuse->num_socks - 1]; in __reuseport_detach_sock()
143 reuse->num_socks--; in __reuseport_detach_sock()
236 reuse->num_socks = 1; in reuseport_alloc()
275 more_reuse->num_socks = reuse->num_socks; in reuseport_grow()
284 reuse->num_socks * sizeof(struct sock *)); in reuseport_grow()
345 if (old_reuse && old_reuse->num_socks != 1) { in reuseport_add_sock()
350 if (reuse->num_socks + reuse->num_closed_socks == reuse->max_socks) { in reuseport_add_sock()
411 if (reuse->num_socks + reuse->num_closed_socks == reuse->max_socks) { in reuseport_resurrect()
422 if (old_reuse->num_socks + old_reuse->num_closed_socks == 0) in reuseport_resurrect()
455 if (reuse->num_socks + reuse->num_closed_socks == 0) in reuseport_detach_sock()
529 u32 hash, u16 num_socks) in reuseport_select_sock_by_hash() argument
534 i = j = reciprocal_scale(hash, num_socks); in reuseport_select_sock_by_hash()
552 if (i >= num_socks) in reuseport_select_sock_by_hash()
587 socks = READ_ONCE(reuse->num_socks); in reuseport_select_sock()
638 socks = READ_ONCE(reuse->num_socks); in reuseport_migrate_sock()