diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2016-09-10 12:09:55 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-10 23:12:52 -0700 |
commit | ebfc102c566d0d9c174ff9b721fd35ebda01f7eb (patch) | |
tree | 0d58c1c839e0c121754c5058f6fd64b89fee30b6 /net/ipv4 | |
parent | 5f02ce24c2696fec33f2a5dfcf753996f5fdd211 (diff) | |
download | linux-ebfc102c566d0d9c174ff9b721fd35ebda01f7eb.tar.bz2 |
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>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/route.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index f49b2c534e92..ad83f85fb240 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -2246,10 +2246,6 @@ struct rtable *__ip_route_output_key_hash(struct net *net, struct flowi4 *fl4, fl4->saddr = inet_select_addr(dev_out, 0, RT_SCOPE_HOST); } - - rth = l3mdev_get_rtable(dev_out, fl4); - if (rth) - goto out; } if (!fl4->daddr) { |