hc
2024-05-10 ee930fffee469d076998274a2ca55e13dc1efb67
kernel/include/net/neighbour.h
....@@ -268,11 +268,6 @@
268268
269269 extern const struct nla_policy nda_policy[];
270270
271
-static inline bool neigh_key_eq16(const struct neighbour *n, const void *pkey)
272
-{
273
- return *(const u16 *)n->primary_key == *(const u16 *)pkey;
274
-}
275
-
276271 static inline bool neigh_key_eq32(const struct neighbour *n, const void *pkey)
277272 {
278273 return *(const u32 *)n->primary_key == *(const u32 *)pkey;
....@@ -322,8 +317,6 @@
322317 int neigh_table_clear(int index, struct neigh_table *tbl);
323318 struct neighbour *neigh_lookup(struct neigh_table *tbl, const void *pkey,
324319 struct net_device *dev);
325
-struct neighbour *neigh_lookup_nodev(struct neigh_table *tbl, struct net *net,
326
- const void *pkey);
327320 struct neighbour *__neigh_create(struct neigh_table *tbl, const void *pkey,
328321 struct net_device *dev, bool want_ref);
329322 static inline struct neighbour *neigh_create(struct neigh_table *tbl,