]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Pass flowi_oif or l3mdev as oif to xfrm_dst_lookup
authorDavid Ahern <dsahern@kernel.org>
Fri, 1 Apr 2022 18:58:37 +0000 (12:58 -0600)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 4 Apr 2022 11:32:56 +0000 (13:32 +0200)
commita31e2e12d99e64af4113cd8ec8ec7e08b88366ae
tree98a3a330a6c1470045b8b7d6478a49cdfcc25972
parent0ccc341f8b76c8bc66ae8e142dd66d48d0cb3e04
xfrm: Pass flowi_oif or l3mdev as oif to xfrm_dst_lookup

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: 67bf7ede1f3e ("net: Add l3mdev index to flow struct and avoid oif reset for port devices")
Reported-by: kernel test robot <oliver.sang@intel.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_policy.c