Home
last modified time | relevance | path

Searched refs:hash_rnd (Results 1 – 11 of 11) sorted by relevance

/kernel/linux/linux-5.10/include/net/
Dndisc.h371 static inline u32 ndisc_hashfn(const void *pkey, const struct net_device *dev, __u32 *hash_rnd) in ndisc_hashfn() argument
375 return (((p32[0] ^ hash32_ptr(dev)) * hash_rnd[0]) + in ndisc_hashfn()
376 (p32[1] * hash_rnd[1]) + in ndisc_hashfn()
377 (p32[2] * hash_rnd[2]) + in ndisc_hashfn()
378 (p32[3] * hash_rnd[3])); in ndisc_hashfn()
Darp.h13 static inline u32 arp_hashfn(const void *pkey, const struct net_device *dev, u32 *hash_rnd) in arp_hashfn() argument
18 return val * hash_rnd[0]; in arp_hashfn()
Dneighbour.h189 __u32 hash_rnd[NEIGH_NUM_HASH_RND]; member
201 __u32 *hash_rnd);
285 __u32 *hash_rnd), in ___neigh_lookup_noref() argument
293 hash_val = hash(pkey, dev, nht->hash_rnd) >> (32 - nht->hash_shift); in ___neigh_lookup_noref()
/kernel/linux/linux-5.10/include/linux/
Drhashtable.h79 u32 hash_rnd; member
127 unsigned int hash_rnd) in rht_key_get_hash() argument
133 hash = ht->p.hashfn(key, ht->key_len, hash_rnd); in rht_key_get_hash()
138 hash = params.hashfn(key, key_len, hash_rnd); in rht_key_get_hash()
140 hash = jhash(key, key_len, hash_rnd); in rht_key_get_hash()
142 hash = jhash2(key, key_len / sizeof(u32), hash_rnd); in rht_key_get_hash()
147 hash = params.hashfn(key, key_len, hash_rnd); in rht_key_get_hash()
149 hash = jhash(key, key_len, hash_rnd); in rht_key_get_hash()
159 unsigned int hash = rht_key_get_hash(ht, key, params, tbl->hash_rnd); in rht_key_hashfn()
173 tbl->hash_rnd)) : in rht_head_hashfn()
/kernel/linux/common_modules/newip/third_party/linux-5.10/include/net/
Dnndisc.h41 __u32 *hash_rnd) in nndisc_hashfn() argument
/kernel/linux/linux-5.10/net/netfilter/
Dxt_recent.c109 static u_int32_t hash_rnd __read_mostly;
113 return jhash_1word((__force u32)addr->ip, hash_rnd) & in recent_entry_hash4()
119 return jhash2((u32 *)addr->ip6, ARRAY_SIZE(addr->ip6), hash_rnd) & in recent_entry_hash6()
346 net_get_random_once(&hash_rnd, sizeof(hash_rnd)); in recent_mt_check()
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Dnndisc.c81 const struct net_device *dev, __u32 *hash_rnd);
171 const struct net_device *dev, __u32 *hash_rnd) in nndisc_hash() argument
173 return nndisc_hashfn(pkey, dev, hash_rnd); in nndisc_hash()
/kernel/linux/linux-5.10/net/ipv4/
Darp.c122 static u32 arp_hash(const void *pkey, const struct net_device *dev, __u32 *hash_rnd);
212 __u32 *hash_rnd) in arp_hash() argument
214 return arp_hashfn(pkey, dev, hash_rnd); in arp_hash()
/kernel/linux/linux-5.10/net/ipv6/
Dndisc.c74 __u32 *hash_rnd);
316 __u32 *hash_rnd) in ndisc_hash() argument
318 return ndisc_hashfn(pkey, dev, hash_rnd); in ndisc_hash()
/kernel/linux/linux-5.10/net/core/
Dneighbour.c212 hash_val = tbl->hash(pkey, ndel->dev, nht->hash_rnd); in neigh_remove_one()
492 neigh_get_hash_rnd(&ret->hash_rnd[i]); in neigh_hash_alloc()
535 new_nht->hash_rnd); in neigh_hash_grow()
625 hash_val = tbl->hash(n->primary_key, dev, nht->hash_rnd) >> (32 - nht->hash_shift); in ___neigh_create()
2084 ndc.ndtc_hash_rnd = nht->hash_rnd[0]; in neightbl_fill_info()
/kernel/linux/linux-5.10/lib/
Drhashtable.c203 tbl->hash_rnd = get_random_u32(); in bucket_table_alloc()