Lines Matching refs:hash2
477 unsigned int hash2, slot2;
481 hash2 = ipv4_portaddr_hash(net, daddr, hnum);
482 slot2 = hash2 & udptable->mask;
483 hslot2 = &udptable->hash2[slot2];
509 hash2 = ipv4_portaddr_hash(net, htonl(INADDR_ANY), hnum);
510 slot2 = hash2 & udptable->mask;
511 hslot2 = &udptable->hash2[slot2];
2235 unsigned int hash2 = 0, hash2_any = 0, use_hash2 = (hslot->count > 10);
2245 hash2 = ipv4_portaddr_hash(net, daddr, hnum) & udptable->mask;
2247 hslot = &udptable->hash2[hash2];
2274 /* Also lookup *:port if we are using hash2 and haven't done so yet. */
2275 if (use_hash2 && hash2 != hash2_any) {
2276 hash2 = hash2_any;
2518 unsigned int hash2, slot2;
2523 hash2 = ipv4_portaddr_hash(net, loc_addr, hnum);
2524 slot2 = hash2 & udptable->mask;
2525 hslot2 = &udptable->hash2[slot2];
3151 struct udp_hslot *hslot2 = &udptable->hash2[state->bucket];
3404 table->hash2 = table->hash + (table->mask + 1);
3411 INIT_HLIST_HEAD(&table->hash2[i].head);
3412 table->hash2[i].count = 0;
3413 spin_lock_init(&table->hash2[i].lock);
3451 udptable->hash2 = udptable->hash + hash_entries;
3460 INIT_HLIST_HEAD(&udptable->hash2[i].head);
3461 udptable->hash2[i].count = 0;
3462 spin_lock_init(&udptable->hash2[i].lock);