Lines Matching refs:hslot

132 			       const struct udp_hslot *hslot,  in udp_lib_lport_inuse()  argument
139 sk_for_each(sk2, &hslot->head) { in udp_lib_lport_inuse()
198 static int udp_reuseport_add_sock(struct sock *sk, struct udp_hslot *hslot) in udp_reuseport_add_sock() argument
204 sk_for_each(sk2, &hslot->head) { in udp_reuseport_add_sock()
232 struct udp_hslot *hslot, *hslot2; in udp_lib_get_port() local
254 hslot = udp_hashslot(udptable, net, first); in udp_lib_get_port()
256 spin_lock_bh(&hslot->lock); in udp_lib_get_port()
257 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk, in udp_lib_get_port()
273 spin_unlock_bh(&hslot->lock); in udp_lib_get_port()
278 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
279 spin_lock_bh(&hslot->lock); in udp_lib_get_port()
280 if (hslot->count > 10) { in udp_lib_get_port()
288 if (hslot->count < hslot2->count) in udp_lib_get_port()
303 if (udp_lib_lport_inuse(net, snum, hslot, NULL, sk, 0)) in udp_lib_get_port()
312 udp_reuseport_add_sock(sk, hslot)) { in udp_lib_get_port()
319 sk_add_node_rcu(sk, &hslot->head); in udp_lib_get_port()
320 hslot->count++; in udp_lib_get_port()
338 spin_unlock_bh(&hslot->lock); in udp_lib_get_port()
2007 struct udp_hslot *hslot, *hslot2; in udp_lib_unhash() local
2009 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_unhash()
2013 spin_lock_bh(&hslot->lock); in udp_lib_unhash()
2017 hslot->count--; in udp_lib_unhash()
2026 spin_unlock_bh(&hslot->lock); in udp_lib_unhash()
2038 struct udp_hslot *hslot, *hslot2, *nhslot2; in udp_lib_rehash() local
2046 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_rehash()
2049 spin_lock_bh(&hslot->lock); in udp_lib_rehash()
2066 spin_unlock_bh(&hslot->lock); in udp_lib_rehash()
2274 struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum); in __udp4_lib_mcast_deliver() local
2275 unsigned int hash2 = 0, hash2_any = 0, use_hash2 = (hslot->count > 10); in __udp4_lib_mcast_deliver()
2287 hslot = &udptable->hash2[hash2]; in __udp4_lib_mcast_deliver()
2291 sk_for_each_entry_offset_rcu(sk, node, &hslot->head, offset) { in __udp4_lib_mcast_deliver()
2513 struct udp_hslot *hslot = &udp_table.hash[slot]; in __udp4_lib_mcast_demux_lookup() local
2516 if (hslot->count > 10) in __udp4_lib_mcast_demux_lookup()
2520 sk_for_each_rcu(sk, &hslot->head) { in __udp4_lib_mcast_demux_lookup()
2959 struct udp_hslot *hslot = &afinfo->udp_table->hash[state->bucket]; in udp_get_first() local
2961 if (hlist_empty(&hslot->head)) in udp_get_first()
2964 spin_lock_bh(&hslot->lock); in udp_get_first()
2965 sk_for_each(sk, &hslot->head) { in udp_get_first()
2972 spin_unlock_bh(&hslot->lock); in udp_get_first()