aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip6_tunnel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/ip6_tunnel.h')
-rw-r--r--include/net/ip6_tunnel.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/net/ip6_tunnel.h b/include/net/ip6_tunnel.h
index 1668be5937e6..b8529aa1dae7 100644
--- a/include/net/ip6_tunnel.h
+++ b/include/net/ip6_tunnel.h
@@ -73,13 +73,14 @@ __u32 ip6_tnl_get_cap(struct ip6_tnl *t, const struct in6_addr *laddr,
73struct net *ip6_tnl_get_link_net(const struct net_device *dev); 73struct net *ip6_tnl_get_link_net(const struct net_device *dev);
74int ip6_tnl_get_iflink(const struct net_device *dev); 74int ip6_tnl_get_iflink(const struct net_device *dev);
75 75
76static inline void ip6tunnel_xmit(struct sk_buff *skb, struct net_device *dev) 76static inline void ip6tunnel_xmit(struct sock *sk, struct sk_buff *skb,
77 struct net_device *dev)
77{ 78{
78 struct net_device_stats *stats = &dev->stats; 79 struct net_device_stats *stats = &dev->stats;
79 int pkt_len, err; 80 int pkt_len, err;
80 81
81 pkt_len = skb->len; 82 pkt_len = skb->len;
82 err = ip6_local_out(skb); 83 err = ip6_local_out_sk(sk, skb);
83 84
84 if (net_xmit_eval(err) == 0) { 85 if (net_xmit_eval(err) == 0) {
85 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats); 86 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats);