xfrm: Use VRF master index if output device is enslaved
authorDavid Ahern <dsa@cumulusnetworks.com>
Thu, 20 Aug 2015 22:06:30 +0000 (15:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2015 18:25:09 +0000 (11:25 -0700)
commit4ec3b28c2763e11a423d03810ff0be65f02e635e
tree125ee8d822d2ad0b32f371228cceeedcf281e53b
parent6f021c62d64f38092bc2a0c5fe7b81d5e5b21a00
xfrm: Use VRF master index if output device is enslaved

Directs route lookups to VRF table. Compiles out if NET_VRF is not
enabled. With this patch able to successfully bring up ipsec tunnels
in VRFs, even with duplicate network configuration.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Acked-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/xfrm4_policy.c
net/ipv6/xfrm6_policy.c