Lines Matching refs:hash2

684 	unsigned int hash2;  in __udp4_lib_lookup()  local
686 hash2 = ipv4_portaddr_hash(net, daddr, hnum); in __udp4_lib_lookup()
687 hslot2 = udp_hashslot2(udptable, hash2); in __udp4_lib_lookup()
720 hash2 = ipv4_portaddr_hash(net, htonl(INADDR_ANY), hnum); in __udp4_lib_lookup()
721 hslot2 = udp_hashslot2(udptable, hash2); in __udp4_lib_lookup()
2509 unsigned int hash2 = 0, hash2_any = 0, use_hash2 = (hslot->count > 10); in __udp4_lib_mcast_deliver() local
2519 hash2 = ipv4_portaddr_hash(net, daddr, hnum) & udptable->mask; in __udp4_lib_mcast_deliver()
2521 hslot = &udptable->hash2[hash2].hslot; in __udp4_lib_mcast_deliver()
2549 if (use_hash2 && hash2 != hash2_any) { in __udp4_lib_mcast_deliver()
2550 hash2 = hash2_any; in __udp4_lib_mcast_deliver()
2793 unsigned int hash2; in __udp4_lib_demux_lookup() local
2797 hash2 = ipv4_portaddr_hash(net, loc_addr, hnum); in __udp4_lib_demux_lookup()
2798 hslot2 = udp_hashslot2(udptable, hash2); in __udp4_lib_demux_lookup()
3484 struct udp_hslot *hslot2 = &udptable->hash2[state->bucket].hslot; in bpf_iter_udp_batch()
3772 table->hash2 = (void *)(table->hash + (table->mask + 1)); in udp_table_init()
3779 INIT_HLIST_HEAD(&table->hash2[i].hslot.head); in udp_table_init()
3780 table->hash2[i].hslot.count = 0; in udp_table_init()
3781 spin_lock_init(&table->hash2[i].hslot.lock); in udp_table_init()
3823 udptable->hash2 = (void *)(udptable->hash + hash_entries); in udp_pernet_table_alloc()
3832 INIT_HLIST_HEAD(&udptable->hash2[i].hslot.head); in udp_pernet_table_alloc()
3833 udptable->hash2[i].hslot.count = 0; in udp_pernet_table_alloc()
3834 spin_lock_init(&udptable->hash2[i].hslot.lock); in udp_pernet_table_alloc()