Searched refs:addr_hash (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.4/drivers/net/ |
D | gtp.c | 76 struct hlist_head *addr_hash; member 143 head = >p->addr_hash[ipv4_hashfn(ms_addr) % gtp->hash_size]; in ipv4_pdp_find() 753 gtp->addr_hash = kmalloc_array(hsize, sizeof(struct hlist_head), in gtp_hashtable_new() 755 if (gtp->addr_hash == NULL) in gtp_hashtable_new() 766 INIT_HLIST_HEAD(>p->addr_hash[i]); in gtp_hashtable_new() 771 kfree(gtp->addr_hash); in gtp_hashtable_new() 785 kfree(gtp->addr_hash); in gtp_hashtable_free() 941 hlist_for_each_entry_rcu(pctx, >p->addr_hash[hash_ms], hlist_addr) { in ipv4_pdp_add() 991 hlist_add_head_rcu(&pctx->hlist_addr, >p->addr_hash[hash_ms]); in ipv4_pdp_add()
|
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4/ |
D | l2t.c | 104 static unsigned int addr_hash(struct l2t_data *d, const u32 *addr, in addr_hash() function 429 int hash = addr_hash(d, addr, addr_len, ifidx); in cxgb4_l2t_get() 542 int hash = addr_hash(d, addr, addr_len, ifidx); in t4_l2t_update()
|