ipv4: Make neigh lookups directly in output packet path.
Do not use the dst cached neigh, we'll be getting rid of that. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -202,9 +202,16 @@ extern struct neighbour * neigh_lookup(struct neigh_table *tbl,
|
||||
extern struct neighbour * neigh_lookup_nodev(struct neigh_table *tbl,
|
||||
struct net *net,
|
||||
const void *pkey);
|
||||
extern struct neighbour * neigh_create(struct neigh_table *tbl,
|
||||
extern struct neighbour * __neigh_create(struct neigh_table *tbl,
|
||||
const void *pkey,
|
||||
struct net_device *dev,
|
||||
bool want_ref);
|
||||
static inline struct neighbour *neigh_create(struct neigh_table *tbl,
|
||||
const void *pkey,
|
||||
struct net_device *dev);
|
||||
struct net_device *dev)
|
||||
{
|
||||
return __neigh_create(tbl, pkey, dev, true);
|
||||
}
|
||||
extern void neigh_destroy(struct neighbour *neigh);
|
||||
extern int __neigh_event_send(struct neighbour *neigh, struct sk_buff *skb);
|
||||
extern int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new,
|
||||
|
Reference in New Issue
Block a user