Commit a2928297 authored by David S. Miller's avatar David S. Miller

ipv6: Use calculated 'neigh' instead of re-evaluating dst->neighbour

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fec8292d
...@@ -141,7 +141,7 @@ static int ip6_finish_output2(struct sk_buff *skb) ...@@ -141,7 +141,7 @@ static int ip6_finish_output2(struct sk_buff *skb)
if (hh->hh_len) if (hh->hh_len)
return neigh_hh_output(hh, skb); return neigh_hh_output(hh, skb);
else else
return dst->neighbour->output(skb); return neigh->output(skb);
} }
IP6_INC_STATS_BH(dev_net(dst->dev), IP6_INC_STATS_BH(dev_net(dst->dev),
ip6_dst_idev(dst), IPSTATS_MIB_OUTNOROUTES); ip6_dst_idev(dst), IPSTATS_MIB_OUTNOROUTES);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment