• Home
  • Raw
  • Download

Lines Matching refs:hslot

134 			       const struct udp_hslot *hslot,  in udp_lib_lport_inuse()  argument
141 sk_for_each(sk2, &hslot->head) { in udp_lib_lport_inuse()
200 static int udp_reuseport_add_sock(struct sock *sk, struct udp_hslot *hslot) in udp_reuseport_add_sock() argument
206 sk_for_each(sk2, &hslot->head) { in udp_reuseport_add_sock()
234 struct udp_hslot *hslot, *hslot2; in udp_lib_get_port() local
256 hslot = udp_hashslot(udptable, net, first); in udp_lib_get_port()
258 spin_lock_bh(&hslot->lock); in udp_lib_get_port()
259 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk, in udp_lib_get_port()
275 spin_unlock_bh(&hslot->lock); in udp_lib_get_port()
280 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
281 spin_lock_bh(&hslot->lock); in udp_lib_get_port()
282 if (hslot->count > 10) { in udp_lib_get_port()
290 if (hslot->count < hslot2->count) in udp_lib_get_port()
305 if (udp_lib_lport_inuse(net, snum, hslot, NULL, sk, 0)) in udp_lib_get_port()
314 udp_reuseport_add_sock(sk, hslot)) { in udp_lib_get_port()
321 sk_add_node_rcu(sk, &hslot->head); in udp_lib_get_port()
322 hslot->count++; in udp_lib_get_port()
340 spin_unlock_bh(&hslot->lock); in udp_lib_get_port()
2026 struct udp_hslot *hslot, *hslot2; in udp_lib_unhash() local
2028 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_unhash()
2032 spin_lock_bh(&hslot->lock); in udp_lib_unhash()
2036 hslot->count--; in udp_lib_unhash()
2045 spin_unlock_bh(&hslot->lock); in udp_lib_unhash()
2057 struct udp_hslot *hslot, *hslot2, *nhslot2; in udp_lib_rehash() local
2065 hslot = udp_hashslot(udptable, sock_net(sk), in udp_lib_rehash()
2068 spin_lock_bh(&hslot->lock); in udp_lib_rehash()
2085 spin_unlock_bh(&hslot->lock); in udp_lib_rehash()
2293 struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum); in __udp4_lib_mcast_deliver() local
2294 unsigned int hash2 = 0, hash2_any = 0, use_hash2 = (hslot->count > 10); in __udp4_lib_mcast_deliver()
2306 hslot = &udptable->hash2[hash2]; in __udp4_lib_mcast_deliver()
2310 sk_for_each_entry_offset_rcu(sk, node, &hslot->head, offset) { in __udp4_lib_mcast_deliver()
2538 struct udp_hslot *hslot = &udp_table.hash[slot]; in __udp4_lib_mcast_demux_lookup() local
2541 if (hslot->count > 10) in __udp4_lib_mcast_demux_lookup()
2545 sk_for_each_rcu(sk, &hslot->head) { in __udp4_lib_mcast_demux_lookup()
2985 struct udp_hslot *hslot = &afinfo->udp_table->hash[state->bucket]; in udp_get_first() local
2987 if (hlist_empty(&hslot->head)) in udp_get_first()
2990 spin_lock_bh(&hslot->lock); in udp_get_first()
2991 sk_for_each(sk, &hslot->head) { in udp_get_first()
2998 spin_unlock_bh(&hslot->lock); in udp_get_first()