Home
last modified time | relevance | path

Searched refs:hslot (Results 1 – 4 of 4) sorted by relevance

/net/ipv4/
Dudp.c149 const struct udp_hslot *hslot, in udp_lib_lport_inuse() argument
156 sk_for_each(sk2, &hslot->head) { in udp_lib_lport_inuse()
215 static int udp_reuseport_add_sock(struct sock *sk, struct udp_hslot *hslot) in udp_reuseport_add_sock() argument
221 sk_for_each(sk2, &hslot->head) { in udp_reuseport_add_sock()
248 struct udp_hslot *hslot, *hslot2; in udp_lib_get_port() local
270 hslot = udp_hashslot(udptable, net, first); in udp_lib_get_port()
272 spin_lock_bh(&hslot->lock); in udp_lib_get_port()
273 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk, in udp_lib_get_port()
289 spin_unlock_bh(&hslot->lock); in udp_lib_get_port()
294 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
[all …]
Dudp_diag.c110 struct udp_hslot *hslot = &table->hash[slot]; in udp_dump() local
115 if (hlist_empty(&hslot->head)) in udp_dump()
118 spin_lock_bh(&hslot->lock); in udp_dump()
119 sk_for_each(sk, &hslot->head) { in udp_dump()
139 spin_unlock_bh(&hslot->lock); in udp_dump()
145 spin_unlock_bh(&hslot->lock); in udp_dump()
Dping.c176 struct hlist_nulls_head *hslot = ping_hashslot(&ping_table, net, ident); in ping_lookup() local
194 ping_portaddr_for_each_entry(sk, hnode, hslot) { in ping_lookup()
1035 struct hlist_nulls_head *hslot; in ping_get_first() local
1037 hslot = &ping_table.hash[state->bucket]; in ping_get_first()
1039 if (hlist_nulls_empty(hslot)) in ping_get_first()
1042 sk_nulls_for_each(sk, node, hslot) { in ping_get_first()
/net/ipv6/
Dudp.c229 struct udp_hslot *hslot2, *hslot = &udptable->hash[slot]; in __udp6_lib_lookup() local
234 if (hslot->count > 10) { in __udp6_lib_lookup()
238 if (hslot->count < hslot2->count) in __udp6_lib_lookup()
253 if (hslot->count < hslot2->count) in __udp6_lib_lookup()
266 sk_for_each_rcu(sk, &hslot->head) { in __udp6_lib_lookup()
714 struct udp_hslot *hslot = udp_hashslot(udptable, net, hnum); in __udp6_lib_mcast_deliver() local
716 unsigned int hash2 = 0, hash2_any = 0, use_hash2 = (hslot->count > 10); in __udp6_lib_mcast_deliver()
726 hslot = &udptable->hash2[hash2]; in __udp6_lib_mcast_deliver()
730 sk_for_each_entry_offset_rcu(sk, node, &hslot->head, offset) { in __udp6_lib_mcast_deliver()