Searched refs:pkey (Results 1 – 6 of 6) sorted by relevance
/net/core/ |
D | neighbour.c | 400 struct neighbour *neigh_lookup(struct neigh_table *tbl, const void *pkey, in neigh_lookup() argument 408 n = __neigh_lookup_noref(tbl, pkey, dev); in neigh_lookup() 421 const void *pkey) in neigh_lookup_nodev() argument 432 hash_val = tbl->hash(pkey, NULL, nht->hash_rnd) >> (32 - nht->hash_shift); in neigh_lookup_nodev() 437 if (!memcmp(n->primary_key, pkey, key_len) && in neigh_lookup_nodev() 451 struct neighbour *__neigh_create(struct neigh_table *tbl, const void *pkey, in __neigh_create() argument 465 memcpy(n->primary_key, pkey, key_len); in __neigh_create() 539 static u32 pneigh_hash(const void *pkey, int key_len) in pneigh_hash() argument 541 u32 hash_val = *(u32 *)(pkey + key_len - 4); in pneigh_hash() 551 const void *pkey, in __pneigh_lookup_1() argument [all …]
|
/net/decnet/ |
D | dn_neigh.c | 65 static u32 dn_neigh_hash(const void *pkey, in dn_neigh_hash() argument 69 return jhash_2words(*(__u16 *)pkey, 0, hash_rnd[0]); in dn_neigh_hash() 72 static bool dn_key_eq(const struct neighbour *neigh, const void *pkey) in dn_key_eq() argument 74 return neigh_key_eq16(neigh, pkey); in dn_key_eq()
|
/net/ipv4/ |
D | fib_trie.c | 1385 t_key pkey = pn->key; in fib_table_lookup() local 1398 cindex = get_index(pkey, pn); in fib_table_lookup() 1614 t_key pkey = pn->key; in leaf_walk_rcu() local 1617 cindex = get_index(pkey, pn) + 1; in leaf_walk_rcu() 1656 t_key pkey = pn->key; in fib_trie_free() local 1668 cindex = get_index(pkey, pn); in fib_trie_free() 1774 t_key pkey = pn->key; in fib_table_flush_external() local 1786 cindex = get_index(pkey, pn); in fib_table_flush_external() 1844 t_key pkey = pn->key; in fib_table_flush() local 1856 cindex = get_index(pkey, pn); in fib_table_flush() [all …]
|
D | arp.c | 126 static u32 arp_hash(const void *pkey, const struct net_device *dev, __u32 *hash_rnd); 127 static bool arp_key_eq(const struct neighbour *n, const void *pkey); 212 static u32 arp_hash(const void *pkey, in arp_hash() argument 216 return arp_hashfn(pkey, dev, hash_rnd); in arp_hash() 219 static bool arp_key_eq(const struct neighbour *neigh, const void *pkey) in arp_key_eq() argument 221 return neigh_key_eq32(neigh, pkey); in arp_key_eq()
|
D | route.c | 451 const __be32 *pkey = daddr; in ipv4_neigh_lookup() local 457 pkey = (const __be32 *) &rt->rt_gateway; in ipv4_neigh_lookup() 459 pkey = &ip_hdr(skb)->daddr; in ipv4_neigh_lookup() 461 n = __ipv4_neigh_lookup(dev, *(__force u32 *)pkey); in ipv4_neigh_lookup() 464 return neigh_create(&arp_tbl, pkey, dev); in ipv4_neigh_lookup()
|
/net/ipv6/ |
D | ndisc.c | 75 static u32 ndisc_hash(const void *pkey, 78 static bool ndisc_key_eq(const struct neighbour *neigh, const void *pkey); 308 static u32 ndisc_hash(const void *pkey, in ndisc_hash() argument 312 return ndisc_hashfn(pkey, dev, hash_rnd); in ndisc_hash() 315 static bool ndisc_key_eq(const struct neighbour *n, const void *pkey) in ndisc_key_eq() argument 317 return neigh_key_eq128(n, pkey); in ndisc_key_eq() 705 static int pndisc_is_router(const void *pkey, in pndisc_is_router() argument 712 n = __pneigh_lookup(&nd_tbl, dev_net(dev), pkey, dev); in pndisc_is_router()
|