Lines Matching refs:hash2
502 unsigned int hash2, slot2;
506 hash2 = ipv4_portaddr_hash(net, daddr, hnum);
507 slot2 = hash2 & udptable->mask;
508 hslot2 = &udptable->hash2[slot2];
532 hash2 = ipv4_portaddr_hash(net, htonl(INADDR_ANY), hnum);
533 slot2 = hash2 & udptable->mask;
534 hslot2 = &udptable->hash2[slot2];
2240 unsigned int hash2 = 0, hash2_any = 0, use_hash2 = (hslot->count > 10);
2250 hash2 = ipv4_portaddr_hash(net, daddr, hnum) & udptable->mask;
2252 hslot = &udptable->hash2[hash2];
2279 /* Also lookup *:port if we are using hash2 and haven't done so yet. */
2280 if (use_hash2 && hash2 != hash2_any) {
2281 hash2 = hash2_any;
2507 unsigned int hash2 = ipv4_portaddr_hash(net, loc_addr, hnum);
2508 unsigned int slot2 = hash2 & udp_table.mask;
2509 struct udp_hslot *hslot2 = &udp_table.hash2[slot2];
3185 table->hash2 = table->hash + (table->mask + 1);
3192 INIT_HLIST_HEAD(&table->hash2[i].head);
3193 table->hash2[i].count = 0;
3194 spin_lock_init(&table->hash2[i].lock);