net: vrf: Flip IPv4 output path from FIB lookup hook to out hook
authorDavid Ahern <dsa@cumulusnetworks.com>
Sat, 10 Sep 2016 19:09:55 +0000 (12:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Sep 2016 06:12:52 +0000 (23:12 -0700)
commitebfc102c566d0d9c174ff9b721fd35ebda01f7eb
tree0d58c1c839e0c121754c5058f6fd64b89fee30b6
parent5f02ce24c2696fec33f2a5dfcf753996f5fdd211
net: vrf: Flip IPv4 output path from FIB lookup hook to out hook

Flip the IPv4 output path to use the l3mdev tx out hook. The VRF dst
is not returned on the first FIB lookup. Instead, the dst on the
skb is switched at the beginning of the IPv4 output processing to
send the packet to the VRF driver on xmit.

Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c
net/ipv4/route.c