• Home
  • Raw
  • Download

Lines Matching refs:hslot

129 			       const struct udp_hslot *hslot,  in udp_lib_lport_inuse()  argument
136 sk_for_each(sk2, &hslot->head) { in udp_lib_lport_inuse()
195 static int udp_reuseport_add_sock(struct sock *sk, struct udp_hslot *hslot) in udp_reuseport_add_sock() argument
201 sk_for_each(sk2, &hslot->head) { in udp_reuseport_add_sock()
229 struct udp_hslot *hslot, *hslot2; in udp_lib_get_port() local
251 hslot = udp_hashslot(udptable, net, first); in udp_lib_get_port()
253 spin_lock_bh(&hslot->lock); in udp_lib_get_port()
254 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk, in udp_lib_get_port()
270 spin_unlock_bh(&hslot->lock); in udp_lib_get_port()
275 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
276 spin_lock_bh(&hslot->lock); in udp_lib_get_port()
277 if (hslot->count > 10) { in udp_lib_get_port()
285 if (hslot->count < hslot2->count) in udp_lib_get_port()
300 if (udp_lib_lport_inuse(net, snum, hslot, NULL, sk, 0)) in udp_lib_get_port()
309 udp_reuseport_add_sock(sk, hslot)) { in udp_lib_get_port()
316 sk_add_node_rcu(sk, &hslot->head); in udp_lib_get_port()
317 hslot->count++; in udp_lib_get_port()
335 spin_unlock_bh(&hslot->lock); in udp_lib_get_port()
1901 struct udp_hslot *hslot, *hslot2; in udp_lib_unhash() local
1903 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_unhash()
1907 spin_lock_bh(&hslot->lock); in udp_lib_unhash()
1911 hslot->count--; in udp_lib_unhash()
1920 spin_unlock_bh(&hslot->lock); in udp_lib_unhash()
1932 struct udp_hslot *hslot, *hslot2, *nhslot2; in udp_lib_rehash() local
1940 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_rehash()
1943 spin_lock_bh(&hslot->lock); in udp_lib_rehash()
1960 spin_unlock_bh(&hslot->lock); in udp_lib_rehash()
2164 struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum); in __udp4_lib_mcast_deliver() local
2165 unsigned int hash2 = 0, hash2_any = 0, use_hash2 = (hslot->count > 10); in __udp4_lib_mcast_deliver()
2177 hslot = &udptable->hash2[hash2]; in __udp4_lib_mcast_deliver()
2181 sk_for_each_entry_offset_rcu(sk, node, &hslot->head, offset) { in __udp4_lib_mcast_deliver()
2401 struct udp_hslot *hslot = &udp_table.hash[slot]; in __udp4_lib_mcast_demux_lookup() local
2404 if (hslot->count > 10) in __udp4_lib_mcast_demux_lookup()
2408 sk_for_each_rcu(sk, &hslot->head) { in __udp4_lib_mcast_demux_lookup()
2852 struct udp_hslot *hslot = &afinfo->udp_table->hash[state->bucket]; in udp_get_first() local
2854 if (hlist_empty(&hslot->head)) in udp_get_first()
2857 spin_lock_bh(&hslot->lock); in udp_get_first()
2858 sk_for_each(sk, &hslot->head) { in udp_get_first()
2864 spin_unlock_bh(&hslot->lock); in udp_get_first()