vrf: Fix IPv6 with qdisc and xfrm
commitabc103cd536817a9c525175e561d9bbe2d610968
authorDavid Ahern <dsahern@gmail.com>
Tue, 21 Apr 2020 23:48:27 +0000 (21 17:48 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:31:22 +0000 (29 16:31 +0200)
tree084990904692ff3f51317496e72332046b818433
parentefa7382a0f04d6679d5ceb4f1bbf306d0f6fd95c
vrf: Fix IPv6 with qdisc and xfrm

[ Upstream commit a53c102872ad6e34e1518e25899dc9498c27f8b1 ]

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: 35402e313663 ("net: Add IPv6 support to VRF device")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/vrf.c