]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbde87b84119d40ddb2100c14052f9197f3354297
tree0d58c1c839e0c121754c5058f6fd64b89fee30b6
parent97e09483faff0688b2dabe41183c80fd91d61e70
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