Lines Matching defs:hslot

133 			       const struct udp_hslot *hslot,
140 sk_for_each(sk2, &hslot->head) {
199 static int udp_reuseport_add_sock(struct sock *sk, struct udp_hslot *hslot)
205 sk_for_each(sk2, &hslot->head) {
233 struct udp_hslot *hslot, *hslot2;
255 hslot = udp_hashslot(udptable, net, first);
257 spin_lock_bh(&hslot->lock);
258 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk,
274 spin_unlock_bh(&hslot->lock);
279 hslot = udp_hashslot(udptable, net, snum);
280 spin_lock_bh(&hslot->lock);
281 if (hslot->count > 10) {
289 if (hslot->count < hslot2->count)
304 if (udp_lib_lport_inuse(net, snum, hslot, NULL, sk, 0))
313 udp_reuseport_add_sock(sk, hslot)) {
322 sk_add_node_rcu(sk, &hslot->head);
323 hslot->count++;
341 spin_unlock_bh(&hslot->lock);
1977 struct udp_hslot *hslot, *hslot2;
1979 hslot = udp_hashslot(udptable, sock_net(sk),
1983 spin_lock_bh(&hslot->lock);
1987 hslot->count--;
1996 spin_unlock_bh(&hslot->lock);
2008 struct udp_hslot *hslot, *hslot2, *nhslot2;
2016 hslot = udp_hashslot(udptable, sock_net(sk),
2019 spin_lock_bh(&hslot->lock);
2036 spin_unlock_bh(&hslot->lock);
2239 struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum);
2240 unsigned int hash2 = 0, hash2_any = 0, use_hash2 = (hslot->count > 10);
2252 hslot = &udptable->hash2[hash2];
2256 sk_for_each_entry_offset_rcu(sk, node, &hslot->head, offset) {
2478 struct udp_hslot *hslot = &udp_table.hash[slot];
2481 if (hslot->count > 10)
2485 sk_for_each_rcu(sk, &hslot->head) {
2919 struct udp_hslot *hslot = &afinfo->udp_table->hash[state->bucket];
2921 if (hlist_empty(&hslot->head))
2924 spin_lock_bh(&hslot->lock);
2925 sk_for_each(sk, &hslot->head) {
2932 spin_unlock_bh(&hslot->lock);