Re: [PATCH net-next 11/18] ipv4: Add helpers for neigh lookup for nexthop

2019-04-05 Thread Ido Schimmel
On Thu, Apr 04, 2019 at 10:50:00AM -0700, David Ahern wrote: > From: David Ahern > > A common them in the output path is looking up a neigh entry for a s/them/theme/ > nexthop, either the gateway in an rtable or a fallback to the daddr > in the skb: > > nexthop = (__force u32)rt_nextho

[PATCH net-next 11/18] ipv4: Add helpers for neigh lookup for nexthop

2019-04-04 Thread David Ahern
From: David Ahern A common them in the output path is looking up a neigh entry for a nexthop, either the gateway in an rtable or a fallback to the daddr in the skb: nexthop = (__force u32)rt_nexthop(rt, ip_hdr(skb)->daddr); neigh = __ipv4_neigh_lookup_noref(dev, nexthop);