aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h1
-rw-r--r--include/net/neighbour.h4
2 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index f84dfd25c431..52c4e3835aa6 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -254,7 +254,6 @@ struct netdev_hw_addr_list {
254struct hh_cache { 254struct hh_cache {
255 u16 hh_len; 255 u16 hh_len;
256 u16 __pad; 256 u16 __pad;
257 int (*hh_output)(struct sk_buff *skb);
258 seqlock_t hh_lock; 257 seqlock_t hh_lock;
259 258
260 /* cached hardware header; allow for machine alignment needs. */ 259 /* cached hardware header; allow for machine alignment needs. */
diff --git a/include/net/neighbour.h b/include/net/neighbour.h
index 97990ddca66c..60bac8112d86 100644
--- a/include/net/neighbour.h
+++ b/include/net/neighbour.h
@@ -340,13 +340,13 @@ static inline int neigh_hh_output(struct hh_cache *hh, struct sk_buff *skb)
340 } while (read_seqretry(&hh->hh_lock, seq)); 340 } while (read_seqretry(&hh->hh_lock, seq));
341 341
342 skb_push(skb, hh_len); 342 skb_push(skb, hh_len);
343 return hh->hh_output(skb); 343 return dev_queue_xmit(skb);
344} 344}
345 345
346static inline int neigh_output(struct neighbour *n, struct sk_buff *skb) 346static inline int neigh_output(struct neighbour *n, struct sk_buff *skb)
347{ 347{
348 struct hh_cache *hh = &n->hh; 348 struct hh_cache *hh = &n->hh;
349 if (hh->hh_len) 349 if ((n->nud_state & NUD_CONNECTED) && hh->hh_len)
350 return neigh_hh_output(hh, skb); 350 return neigh_hh_output(hh, skb);
351 else 351 else
352 return n->output(skb); 352 return n->output(skb);