Home
last modified time | relevance | path

Searched refs:hslot2 (Results 1 – 3 of 3) sorted by relevance

/linux/net/ipv4/
H A Dudp.c171 struct udp_hslot *hslot2, in udp_lib_lport_inuse2() argument
178 spin_lock(&hslot2->lock); in udp_lib_lport_inuse2()
179 udp_portaddr_for_each_entry(sk2, &hslot2->head) { in udp_lib_lport_inuse2()
197 spin_unlock(&hslot2->lock); in udp_lib_lport_inuse2()
235 struct udp_hslot *hslot, *hslot2; in udp_lib_get_port() local
292 hslot2 = udp_hashslot2(udptable, slot2); in udp_lib_get_port()
293 if (hslot->count < hslot2->count) in udp_lib_get_port()
296 exist = udp_lib_lport_inuse2(net, snum, hslot2, sk); in udp_lib_get_port()
298 hslot2 = udp_hashslot2(udptable, hash2_nulladdr); in udp_lib_get_port()
299 exist = udp_lib_lport_inuse2(net, snum, hslot2, in udp_lib_get_port()
[all …]
/linux/include/net/
H A Dudp.h144 static inline bool udp_has_hash4(const struct udp_hslot *hslot2) in udp_has_hash4() argument
149 static inline void udp_hash4_inc(struct udp_hslot *hslot2) in udp_hash4_inc() argument
153 static inline void udp_hash4_dec(struct udp_hslot *hslot2) in udp_hash4_dec() argument
187 static inline bool udp_has_hash4(const struct udp_hslot *hslot2) in udp_has_hash4() argument
189 return UDP_HSLOT_MAIN(hslot2)->hash4_cnt; in udp_has_hash4()
192 static inline void udp_hash4_inc(struct udp_hslot *hslot2) in udp_hash4_inc() argument
194 UDP_HSLOT_MAIN(hslot2)->hash4_cnt++; in udp_hash4_inc()
197 static inline void udp_hash4_dec(struct udp_hslot *hslot2) in udp_hash4_dec() argument
199 UDP_HSLOT_MAIN(hslot2)->hash4_cnt--; in udp_hash4_dec()
/linux/net/ipv6/
H A Dudp.c223 int dif, int sdif, struct udp_hslot *hslot2, in udp6_lib_lookup2() argument
232 udp_portaddr_for_each_entry_rcu(sk, &hslot2->head) { in udp6_lib_lookup2()
352 struct udp_hslot *hslot2; in __udp6_lib_lookup() local
357 hslot2 = udp_hashslot2(udptable, hash2); in __udp6_lib_lookup()
359 if (udp_has_hash4(hslot2)) { in __udp6_lib_lookup()
369 hslot2, skb); in __udp6_lib_lookup()
390 hslot2 = udp_hashslot2(udptable, hash2); in __udp6_lib_lookup()
394 hslot2, skb); in __udp6_lib_lookup()
1195 struct udp_hslot *hslot2; in __udp6_lib_demux_lookup() local
1201 hslot2 = udp_hashslot2(udptable, hash2); in __udp6_lib_demux_lookup()
[all …]