]> git.baikalelectronics.ru Git - kernel.git/commit
vrf: Fix IPv6 with qdisc and xfrm
authorDavid Ahern <dsahern@gmail.com>
Tue, 21 Apr 2020 23:48:27 +0000 (17:48 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Apr 2020 02:30:38 +0000 (19:30 -0700)
commit9d26438be54f5d9b179384be8870a62504d20e25
tree9099bbd0906f4f6c49da0ca03fcb655413e69c8c
parent1e9667555ac87bcd844e6f0e10b6427e35e719c8
vrf: Fix IPv6 with qdisc and xfrm

When a qdisc is attached to the VRF device, the packet goes down the ndo
xmit function which is setup to send the packet back to the VRF driver
which does a lookup to send the packet out. The lookup in the VRF driver
is not considering xfrm policies. Change it to use ip6_dst_lookup_flow
rather than ip6_route_output.

Fixes: cd662513e003 ("net: Add IPv6 support to VRF device")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c