diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-10-07 16:48:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-08 04:27:02 -0700 |
commit | 33224b16ffccb49cf798317670389e0bfba0024c (patch) | |
tree | 25a11f38cf0da4331c558a06d4f3a5ccaabf12fa /drivers/net/vrf.c | |
parent | cf91a99daa4651d0c1f52b8c3d813fd44b43cada (diff) | |
download | linux-33224b16ffccb49cf798317670389e0bfba0024c.tar.gz linux-33224b16ffccb49cf798317670389e0bfba0024c.tar.bz2 linux-33224b16ffccb49cf798317670389e0bfba0024c.zip |
ipv4, ipv6: Pass net into ip_local_out and ip6_local_out
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vrf.c')
-rw-r--r-- | drivers/net/vrf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c index b27dc11cd3f2..21bb7deb6d58 100644 --- a/drivers/net/vrf.c +++ b/drivers/net/vrf.c @@ -76,7 +76,7 @@ static struct dst_entry *vrf_ip_check(struct dst_entry *dst, u32 cookie) static int vrf_ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) { - return ip_local_out(sk, skb); + return ip_local_out(net, sk, skb); } static unsigned int vrf_v4_mtu(const struct dst_entry *dst) @@ -222,7 +222,7 @@ static netdev_tx_t vrf_process_v4_outbound(struct sk_buff *skb, RT_SCOPE_LINK); } - ret = ip_local_out(skb->sk, skb); + ret = ip_local_out(dev_net(skb_dst(skb)->dev), skb->sk, skb); if (unlikely(net_xmit_eval(ret))) vrf_dev->stats.tx_errors++; else |