diff options
author | David S. Miller <davem@davemloft.net> | 2012-07-02 05:02:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-05 04:02:12 -0400 |
commit | a263b3093641fb1ec377582c90986a7fd0625184 (patch) | |
tree | 691fdb4703bb88611272bf958d9de1a461f1492a /include/net/neighbour.h | |
parent | 11604721a3c4bea60e2ddd9e4e30d741ecdba7b0 (diff) |
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>
Diffstat (limited to 'include/net/neighbour.h')
-rw-r--r-- | include/net/neighbour.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/net/neighbour.h b/include/net/neighbour.h index 6cdfeedb650b..e1d18bdeebb8 100644 --- a/include/net/neighbour.h +++ b/include/net/neighbour.h | |||
@@ -202,9 +202,16 @@ extern struct neighbour * neigh_lookup(struct neigh_table *tbl, | |||
202 | extern struct neighbour * neigh_lookup_nodev(struct neigh_table *tbl, | 202 | extern struct neighbour * neigh_lookup_nodev(struct neigh_table *tbl, |
203 | struct net *net, | 203 | struct net *net, |
204 | const void *pkey); | 204 | const void *pkey); |
205 | extern struct neighbour * neigh_create(struct neigh_table *tbl, | 205 | extern struct neighbour * __neigh_create(struct neigh_table *tbl, |
206 | const void *pkey, | ||
207 | struct net_device *dev, | ||
208 | bool want_ref); | ||
209 | static inline struct neighbour *neigh_create(struct neigh_table *tbl, | ||
206 | const void *pkey, | 210 | const void *pkey, |
207 | struct net_device *dev); | 211 | struct net_device *dev) |
212 | { | ||
213 | return __neigh_create(tbl, pkey, dev, true); | ||
214 | } | ||
208 | extern void neigh_destroy(struct neighbour *neigh); | 215 | extern void neigh_destroy(struct neighbour *neigh); |
209 | extern int __neigh_event_send(struct neighbour *neigh, struct sk_buff *skb); | 216 | extern int __neigh_event_send(struct neighbour *neigh, struct sk_buff *skb); |
210 | extern int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, | 217 | extern int neigh_update(struct neighbour *neigh, const u8 *lladdr, u8 new, |