Home
last modified time | relevance | path

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

/net/ipv4/
Dudp.c133 const struct udp_hslot *hslot, in udp_lib_lport_inuse() argument
144 sk_nulls_for_each(sk2, node, &hslot->head) in udp_lib_lport_inuse()
210 struct udp_hslot *hslot, *hslot2; in udp_lib_get_port() local
232 hslot = udp_hashslot(udptable, net, first); in udp_lib_get_port()
234 spin_lock_bh(&hslot->lock); in udp_lib_get_port()
235 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk, in udp_lib_get_port()
251 spin_unlock_bh(&hslot->lock); in udp_lib_get_port()
255 hslot = udp_hashslot(udptable, net, snum); in udp_lib_get_port()
256 spin_lock_bh(&hslot->lock); in udp_lib_get_port()
257 if (hslot->count > 10) { in udp_lib_get_port()
[all …]
Dudp_diag.c108 struct udp_hslot *hslot = &table->hash[slot]; in udp_dump() local
110 if (hlist_nulls_empty(&hslot->head)) in udp_dump()
113 spin_lock_bh(&hslot->lock); in udp_dump()
114 sk_nulls_for_each(sk, node, &hslot->head) { in udp_dump()
134 spin_unlock_bh(&hslot->lock); in udp_dump()
140 spin_unlock_bh(&hslot->lock); in udp_dump()
Dping.c169 struct hlist_nulls_head *hslot = ping_hashslot(&ping_table, net, ident); in ping_lookup() local
187 ping_portaddr_for_each_entry(sk, hnode, hslot) { in ping_lookup()
1018 struct hlist_nulls_head *hslot; in ping_get_first() local
1020 hslot = &ping_table.hash[state->bucket]; in ping_get_first()
1022 if (hlist_nulls_empty(hslot)) in ping_get_first()
1025 sk_nulls_for_each(sk, node, hslot) { in ping_get_first()
/net/ipv6/
Dudp.c263 struct udp_hslot *hslot2, *hslot = &udptable->hash[slot]; in __udp6_lib_lookup() local
268 if (hslot->count > 10) { in __udp6_lib_lookup()
272 if (hslot->count < hslot2->count) in __udp6_lib_lookup()
282 if (hslot->count < hslot2->count) in __udp6_lib_lookup()
295 sk_nulls_for_each_rcu(sk, node, &hslot->head) { in __udp6_lib_lookup()
746 struct udp_hslot *hslot = udp_hashslot(udptable, net, ntohs(uh->dest)); in __udp6_lib_mcast_deliver() local
750 spin_lock(&hslot->lock); in __udp6_lib_mcast_deliver()
751 sk = sk_nulls_head(&hslot->head); in __udp6_lib_mcast_deliver()
771 spin_unlock(&hslot->lock); in __udp6_lib_mcast_deliver()