Lines Matching defs:hash
58 * Ilia Sotnikov : Removed TOS from hash calculations
461 static u32 ip_idents_reserve(u32 hash, int segs)
468 bucket = hash & ip_idents_mask;
485 u32 hash, id;
492 hash = siphash_3u32((__force u32)iph->daddr,
496 id = ip_idents_reserve(hash, segs);
593 static void fnhe_remove_oldest(struct fnhe_hash_bucket *hash)
598 for (fnhe_p = &hash->chain; ; fnhe_p = &fnhe->fnhe_next) {
642 struct fnhe_hash_bucket *hash;
654 hash = rcu_dereference(nhc->nhc_exceptions);
655 if (!hash) {
656 hash = kcalloc(FNHE_HASH_SIZE, sizeof(*hash), GFP_ATOMIC);
657 if (!hash)
659 rcu_assign_pointer(nhc->nhc_exceptions, hash);
662 hash += hval;
665 for (fnhe = rcu_dereference(hash->chain); fnhe;
695 fnhe_remove_oldest(hash);
703 fnhe->fnhe_next = hash->chain;
712 rcu_assign_pointer(hash->chain, fnhe);
1332 struct fnhe_hash_bucket *hash;
1338 hash = rcu_dereference_protected(nhc->nhc_exceptions,
1340 hash += hval;
1342 fnhe_p = &hash->chain;
1367 struct fnhe_hash_bucket *hash = rcu_dereference(nhc->nhc_exceptions);
1371 if (!hash)
1376 for (fnhe = rcu_dereference(hash[hval].chain); fnhe;
1884 /* To make ICMP packets follow the right flow, the multipath hash is
2064 /* short-circuit if we already have L4 hash present */