Lines Matching defs:hslot
142 const struct udp_hslot *hslot,
149 sk_for_each(sk2, &hslot->head) {
208 static int udp_reuseport_add_sock(struct sock *sk, struct udp_hslot *hslot)
214 sk_for_each(sk2, &hslot->head) {
243 struct udp_hslot *hslot, *hslot2;
264 hslot = udp_hashslot(udptable, net, first);
266 spin_lock_bh(&hslot->lock);
267 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk,
283 spin_unlock_bh(&hslot->lock);
288 hslot = udp_hashslot(udptable, net, snum);
289 spin_lock_bh(&hslot->lock);
290 if (hslot->count > 10) {
298 if (hslot->count < hslot2->count)
313 if (udp_lib_lport_inuse(net, snum, hslot, NULL, sk, 0))
322 udp_reuseport_add_sock(sk, hslot)) {
329 sk_add_node_rcu(sk, &hslot->head);
330 hslot->count++;
348 spin_unlock_bh(&hslot->lock);
1955 struct udp_hslot *hslot, *hslot2;
1957 hslot = udp_hashslot(udptable, sock_net(sk),
1961 spin_lock_bh(&hslot->lock);
1965 hslot->count--;
1974 spin_unlock_bh(&hslot->lock);
1986 struct udp_hslot *hslot, *hslot2, *nhslot2;
1994 hslot = udp_hashslot(udptable, sock_net(sk),
1997 spin_lock_bh(&hslot->lock);
2014 spin_unlock_bh(&hslot->lock);
2234 struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum);
2235 unsigned int hash2 = 0, hash2_any = 0, use_hash2 = (hslot->count > 10);
2247 hslot = &udptable->hash2[hash2];
2251 sk_for_each_entry_offset_rcu(sk, node, &hslot->head, offset) {
2483 struct udp_hslot *hslot;
2487 hslot = &udptable->hash[slot];
2490 if (hslot->count > 10)
2494 sk_for_each_rcu(sk, &hslot->head) {
2976 struct udp_hslot *hslot = &udptable->hash[state->bucket];
2978 if (hlist_empty(&hslot->head))
2981 spin_lock_bh(&hslot->lock);
2982 sk_for_each(sk, &hslot->head) {
2986 spin_unlock_bh(&hslot->lock);