Lines Matching refs:hslot

140 			       const struct udp_hslot *hslot,  in udp_lib_lport_inuse()  argument
147 sk_for_each(sk2, &hslot->head) { in udp_lib_lport_inuse()
206 static int udp_reuseport_add_sock(struct sock *sk, struct udp_hslot *hslot) in udp_reuseport_add_sock() argument
212 sk_for_each(sk2, &hslot->head) { in udp_reuseport_add_sock()
241 struct udp_hslot *hslot, *hslot2; in udp_lib_get_port() local
262 hslot = udp_hashslot(udptable, net, first); in udp_lib_get_port()
264 spin_lock_bh(&hslot->lock); in udp_lib_get_port()
265 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk, in udp_lib_get_port()
281 spin_unlock_bh(&hslot->lock); in udp_lib_get_port()
286 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
287 spin_lock_bh(&hslot->lock); in udp_lib_get_port()
288 if (hslot->count > 10) { in udp_lib_get_port()
296 if (hslot->count < hslot2->count) in udp_lib_get_port()
311 if (udp_lib_lport_inuse(net, snum, hslot, NULL, sk, 0)) in udp_lib_get_port()
320 udp_reuseport_add_sock(sk, hslot)) { in udp_lib_get_port()
327 sk_add_node_rcu(sk, &hslot->head); in udp_lib_get_port()
328 hslot->count++; in udp_lib_get_port()
346 spin_unlock_bh(&hslot->lock); in udp_lib_get_port()
2009 struct udp_hslot *hslot, *hslot2; in udp_lib_unhash() local
2011 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_unhash()
2015 spin_lock_bh(&hslot->lock); in udp_lib_unhash()
2019 hslot->count--; in udp_lib_unhash()
2028 spin_unlock_bh(&hslot->lock); in udp_lib_unhash()
2040 struct udp_hslot *hslot, *hslot2, *nhslot2; in udp_lib_rehash() local
2048 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_rehash()
2051 spin_lock_bh(&hslot->lock); in udp_lib_rehash()
2068 spin_unlock_bh(&hslot->lock); in udp_lib_rehash()
2286 struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum); in __udp4_lib_mcast_deliver() local
2287 unsigned int hash2 = 0, hash2_any = 0, use_hash2 = (hslot->count > 10); in __udp4_lib_mcast_deliver()
2299 hslot = &udptable->hash2[hash2]; in __udp4_lib_mcast_deliver()
2303 sk_for_each_entry_offset_rcu(sk, node, &hslot->head, offset) { in __udp4_lib_mcast_deliver()
2531 struct udp_hslot *hslot; in __udp4_lib_mcast_demux_lookup() local
2535 hslot = &udptable->hash[slot]; in __udp4_lib_mcast_demux_lookup()
2538 if (hslot->count > 10) in __udp4_lib_mcast_demux_lookup()
2542 sk_for_each_rcu(sk, &hslot->head) { in __udp4_lib_mcast_demux_lookup()
3009 struct udp_hslot *hslot = &udptable->hash[state->bucket]; in udp_get_first() local
3011 if (hlist_empty(&hslot->head)) in udp_get_first()
3014 spin_lock_bh(&hslot->lock); in udp_get_first()
3015 sk_for_each(sk, &hslot->head) { in udp_get_first()
3022 spin_unlock_bh(&hslot->lock); in udp_get_first()