Skip to content

Commit

Permalink
ipv4: Use calculated 'neigh' instead of re-evaluating dst->neighbour
Browse files Browse the repository at this point in the history
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 16, 2011
1 parent faa2831 commit fec8292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/ip_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ static inline int ip_finish_output2(struct sk_buff *skb)
if (hh->hh_len)
return neigh_hh_output(hh, skb);
else
return dst->neighbour->output(skb);
return neigh->output(skb);
}
if (net_ratelimit())
printk(KERN_DEBUG "ip_finish_output2: No header cache and no neighbour!\n");
Expand Down

0 comments on commit fec8292

Please sign in to comment.