diff options
Diffstat (limited to 'net/core/neighbour.c')
-rw-r--r-- | net/core/neighbour.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 96b1a749abb..b142a0d7607 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c | |||
@@ -1210,7 +1210,9 @@ int neigh_resolve_output(struct sk_buff *skb) | |||
1210 | if (!neigh_event_send(neigh, skb)) { | 1210 | if (!neigh_event_send(neigh, skb)) { |
1211 | int err; | 1211 | int err; |
1212 | struct net_device *dev = neigh->dev; | 1212 | struct net_device *dev = neigh->dev; |
1213 | if (dev->header_ops->cache && !dst->hh) { | 1213 | if (dev->header_ops->cache && |
1214 | !dst->hh && | ||
1215 | !(dst->flags & DST_NOCACHE)) { | ||
1214 | write_lock_bh(&neigh->lock); | 1216 | write_lock_bh(&neigh->lock); |
1215 | if (!dst->hh) | 1217 | if (!dst->hh) |
1216 | neigh_hh_init(neigh, dst, dst->ops->protocol); | 1218 | neigh_hh_init(neigh, dst, dst->ops->protocol); |