Re: [PATCH v2] IPv6: sr: Fix End.X nexthop to use oif.
From: Reji Thomas
Date: Tue Oct 20 2020 - 08:25:36 EST
On Mon, Oct 19, 2020 at 9:47 PM Jakub Kicinski <kuba@xxxxxxxxxx> wrote:
>
> If we can save the device lookup and still be semantically correct,
> that's probably better.
I am afraid we need to do a device lookup if I am looking up the
neighbor. neigh_lookup
apis expect dev to be passed. If I go through the current lookup ie
ip6_pol_route() I can
drop the dev lookup at risk of returning a non neighbor route as it
exists today.