Subject: Re: [PATCH net] xfrm: Pass flowi_oif or l3mdev as oif to xfrm_dst_lookup

From: Jakub Kicinski <[email-masked]>
Date: Fri, 1 Apr 2022 11:50:05 -0700

On Thu, 31 Mar 2022 19:53:34 -0600 David Ahern wrote:
> To: [email-masked],  [email-masked],  [email-masked],  [email-masked]
> Cc: [email-masked],  David Ahern <[email-masked]>
> Subject: [PATCH net] xfrm: Pass flowi_oif or l3mdev as oif to xfrm_dst_lookup

This needs Steffen and Herbert on CC. I'd just CC them in but
patch was marked as Awaiting upstream in our PW already, so
repost would be better. Regardless which tree it ends up getting
applied to.

> The commit referenced in the Fixes tag no longer changes the
> flow oif to the l3mdev ifindex. A xfrm use case was expecting
> the flowi_oif to be the VRF if relevant and the change broke
> that test. Update xfrm_bundle_create to pass oif if set and any
> potential flowi_l3mdev if oif is not set.
> 
> Fixes: 40867d74c374 ("net: Add l3mdev index to flow struct and avoid oif reset for port devices")
> Reported-by: kernel test robot <[email-masked]>
> Signed-off-by: David Ahern <[email-masked]>