aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/neighbour.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-07-16 20:45:02 -0400
committerDavid S. Miller <davem@davemloft.net>2011-07-16 20:45:02 -0400
commitb23b5455b6458920179a1f27513ce42e70d11f37 (patch)
treed7bd2c13199485c2504d6b315d451cebba6978ae /include/net/neighbour.h
parent47ec132a40d788d45e2f088545dea68798034dab (diff)
neigh: Kill hh_cache->hh_output
It's just taking on one of two possible values, either neigh_ops->output or dev_queue_xmit(). And this is purely depending upon whether nud_state has NUD_CONNECTED set or not. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/neighbour.h')
-rw-r--r--include/net/neighbour.h4
1 files changed, 2 insertions, 2 deletions
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);