Skip to content

Commit fec8292

Browse files
committed
ipv4: Use calculated 'neigh' instead of re-evaluating dst->neighbour
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent faa2831 commit fec8292

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/ipv4/ip_output.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ static inline int ip_finish_output2(struct sk_buff *skb)
210210
if (hh->hh_len)
211211
return neigh_hh_output(hh, skb);
212212
else
213-
return dst->neighbour->output(skb);
213+
return neigh->output(skb);
214214
}
215215
if (net_ratelimit())
216216
printk(KERN_DEBUG "ip_finish_output2: No header cache and no neighbour!\n");

0 commit comments

Comments
 (0)