Searched refs:hslot2 (Results 1 – 3 of 3) sorted by relevance
/linux/net/ipv4/ |
H A D | udp.c | 179 struct udp_hslot *hslot2, in udp_lib_lport_inuse2() argument 186 spin_lock(&hslot2->lock); in udp_lib_lport_inuse2() 187 udp_portaddr_for_each_entry(sk2, &hslot2->head) { in udp_lib_lport_inuse2() 205 spin_unlock(&hslot2->lock); in udp_lib_lport_inuse2() 244 struct udp_hslot *hslot, *hslot2; in udp_lib_get_port() local 298 hslot2 = udp_hashslot2(udptable, slot2); in udp_lib_get_port() 299 if (hslot->count < hslot2->count) in udp_lib_get_port() 302 exist = udp_lib_lport_inuse2(net, snum, hslot2, sk); in udp_lib_get_port() 304 hslot2 = udp_hashslot2(udptable, hash2_nulladdr); in udp_lib_get_port() 305 exist = udp_lib_lport_inuse2(net, snum, hslot2, in udp_lib_get_port() [all …]
|
/linux/include/net/ |
H A D | udp.h | 147 static inline bool udp_has_hash4(const struct udp_hslot *hslot2) in udp_has_hash4() argument 152 static inline void udp_hash4_inc(struct udp_hslot *hslot2) in udp_hash4_inc() argument 156 static inline void udp_hash4_dec(struct udp_hslot *hslot2) in udp_hash4_dec() argument 190 static inline bool udp_has_hash4(const struct udp_hslot *hslot2) in udp_has_hash4() argument 192 return UDP_HSLOT_MAIN(hslot2)->hash4_cnt; in udp_has_hash4() 195 static inline void udp_hash4_inc(struct udp_hslot *hslot2) in udp_hash4_inc() argument 197 UDP_HSLOT_MAIN(hslot2)->hash4_cnt++; in udp_hash4_inc() 200 static inline void udp_hash4_dec(struct udp_hslot *hslot2) in udp_hash4_dec() argument 202 UDP_HSLOT_MAIN(hslot2)->hash4_cnt--; in udp_hash4_dec()
|
/linux/net/ipv6/ |
H A D | udp.c | 220 int dif, int sdif, struct udp_hslot *hslot2, in udp6_lib_lookup2() argument 229 udp_portaddr_for_each_entry_rcu(sk, &hslot2->head) { in udp6_lib_lookup2() 349 struct udp_hslot *hslot2; in __udp6_lib_lookup() local 354 hslot2 = udp_hashslot2(udptable, hash2); in __udp6_lib_lookup() 356 if (udp_has_hash4(hslot2)) { in __udp6_lib_lookup() 366 hslot2, skb); in __udp6_lib_lookup() 388 hslot2 = udp_hashslot2(udptable, hash2); in __udp6_lib_lookup() 392 hslot2, skb); in __udp6_lib_lookup() 1202 struct udp_hslot *hslot2; in __udp6_lib_demux_lookup() local 1208 hslot2 = udp_hashslot2(udptable, hash2); in __udp6_lib_demux_lookup() [all …]
|