Searched refs:hash_rnd (Results 1 – 7 of 7) sorted by relevance
| /linux/include/net/ |
| H A D | arp.h | 13 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()
|
| /linux/include/linux/ |
| H A D | rhashtable.h | 80 u32 hash_rnd; member 128 unsigned int hash_rnd) in rht_key_get_hash() argument 134 hash = ht->p.hashfn(key, ht->key_len, hash_rnd); in rht_key_get_hash() 139 hash = params.hashfn(key, key_len, hash_rnd); in rht_key_get_hash() 141 hash = jhash(key, key_len, hash_rnd); in rht_key_get_hash() 143 hash = jhash2(key, key_len / sizeof(u32), hash_rnd); in rht_key_get_hash() 153 unsigned int hash = rht_key_get_hash(ht, key, params, tbl->hash_rnd); in rht_key_hashfn() 167 tbl->hash_rnd)) : in rht_head_hashfn()
|
| /linux/net/netfilter/ |
| H A D | xt_recent.c | 109 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()
|
| /linux/net/ipv4/ |
| H A D | arp.c | 122 static u32 arp_hash(const void *pkey, const struct net_device *dev, __u32 *hash_rnd); 213 __u32 *hash_rnd) in arp_hash() argument 215 return arp_hashfn(pkey, dev, hash_rnd); in arp_hash()
|
| /linux/net/ipv6/ |
| H A D | ndisc.c | 74 __u32 *hash_rnd); 315 __u32 *hash_rnd) in ndisc_hash() argument 317 return ndisc_hashfn(pkey, dev, hash_rnd); in ndisc_hash()
|
| /linux/net/core/ |
| H A D | neighbour.c | 577 neigh_get_hash_rnd(&ret->hash_rnd[i]); in neigh_hash_alloc() 611 new_nht->hash_rnd); in neigh_hash_grow() 696 hash_val = tbl->hash(n->primary_key, dev, nht->hash_rnd) >> (32 - nht->hash_shift); in ___neigh_create() 2284 ndc.ndtc_hash_rnd = nht->hash_rnd[0]; in neightbl_fill_info()
|
| /linux/lib/ |
| H A D | rhashtable.c | 207 tbl->hash_rnd = get_random_u32(); in bucket_table_alloc()
|