Lines Matching defs:pkey
214 __u32 (*hash)(const void *pkey,
217 bool (*key_eq)(const struct neighbour *, const void *pkey);
222 int (*is_multicast)(const void *pkey);
289 static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey)
291 return *(const u32 *)n->primary_key == *(const u32 *)pkey;
294 static inline bool neigh_key_eq128(const struct neighbour *n, const void *pkey)
297 const u32 *p32 = pkey;
305 bool (*key_eq)(const struct neighbour *n, const void *pkey),
306 __u32 (*hash)(const void *pkey,
309 const void *pkey,
316 hash_val = hash(pkey, dev, nht->hash_rnd) >> (32 - nht->hash_shift);
318 if (n->dev == dev && key_eq(n, pkey))
325 const void *pkey,
328 return ___neigh_lookup_noref(tbl, tbl->key_eq, tbl->hash, pkey, dev);
344 struct neighbour *neigh_lookup(struct neigh_table *tbl, const void *pkey,
346 struct neighbour *__neigh_create(struct neigh_table *tbl, const void *pkey,
349 const void *pkey,
352 return __neigh_create(tbl, pkey, dev, true);
560 __neigh_lookup(struct neigh_table *tbl, const void *pkey, struct net_device *dev, int creat)
562 struct neighbour *n = neigh_lookup(tbl, pkey, dev);
567 n = neigh_create(tbl, pkey, dev);
572 __neigh_lookup_errno(struct neigh_table *tbl, const void *pkey,
575 struct neighbour *n = neigh_lookup(tbl, pkey, dev);
580 return neigh_create(tbl, pkey, dev);