Home
last modified time | relevance | path

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

/linux-3.4.99/net/ipv4/
Dudp_diag.c100 struct udp_hslot *hslot = &table->hash[slot]; in udp_dump() local
102 if (hlist_nulls_empty(&hslot->head)) in udp_dump()
105 spin_lock_bh(&hslot->lock); in udp_dump()
106 sk_nulls_for_each(sk, node, &hslot->head) { in udp_dump()
124 spin_unlock_bh(&hslot->lock); in udp_dump()
130 spin_unlock_bh(&hslot->lock); in udp_dump()
Dudp.c131 const struct udp_hslot *hslot, in udp_lib_lport_inuse() argument
141 sk_nulls_for_each(sk2, node, &hslot->head) in udp_lib_lport_inuse()
202 struct udp_hslot *hslot, *hslot2; in udp_lib_get_port() local
224 hslot = udp_hashslot(udptable, net, first); in udp_lib_get_port()
226 spin_lock_bh(&hslot->lock); in udp_lib_get_port()
227 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk, in udp_lib_get_port()
243 spin_unlock_bh(&hslot->lock); in udp_lib_get_port()
247 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
248 spin_lock_bh(&hslot->lock); in udp_lib_get_port()
249 if (hslot->count > 10) { in udp_lib_get_port()
[all …]
Dping.c152 struct hlist_nulls_head *hslot = ping_hashslot(&ping_table, net, ident); in ping_v4_lookup() local
161 ping_portaddr_for_each_entry(sk, hnode, hslot) { in ping_v4_lookup()
762 struct hlist_nulls_head *hslot; in ping_get_first() local
764 hslot = &ping_table.hash[state->bucket]; in ping_get_first()
766 if (hlist_nulls_empty(hslot)) in ping_get_first()
769 sk_nulls_for_each(sk, node, hslot) { in ping_get_first()
/linux-3.4.99/net/ipv6/
Dudp.c250 struct udp_hslot *hslot2, *hslot = &udptable->hash[slot]; in __udp6_lib_lookup() local
254 if (hslot->count > 10) { in __udp6_lib_lookup()
258 if (hslot->count < hslot2->count) in __udp6_lib_lookup()
268 if (hslot->count < hslot2->count) in __udp6_lib_lookup()
281 sk_nulls_for_each_rcu(sk, node, &hslot->head) { in __udp6_lib_lookup()
644 struct udp_hslot *hslot = udp_hashslot(udptable, net, ntohs(uh->dest)); in __udp6_lib_mcast_deliver() local
648 spin_lock(&hslot->lock); in __udp6_lib_mcast_deliver()
649 sk = sk_nulls_head(&hslot->head); in __udp6_lib_mcast_deliver()
669 spin_unlock(&hslot->lock); in __udp6_lib_mcast_deliver()