ip_tunnel: Move stats update to iptunnel_xmit()
[deliverable/linux.git] / net / ipv4 / ip_tunnel.c
index cbb51f3fac06c66e76204957b3243f50a58384b4..c7bd72e9b544848d10a490b010e0a30c4d5e4c21 100644 (file)
@@ -30,7 +30,6 @@
 #include <linux/tcp.h>
 #include <linux/udp.h>
 #include <linux/if_arp.h>
-#include <linux/mroute.h>
 #include <linux/init.h>
 #include <linux/in6.h>
 #include <linux/inetdevice.h>
@@ -657,7 +656,6 @@ void ip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev,
        struct rtable *rt;              /* Route to the other host */
        unsigned int max_headroom;      /* The extra header space needed */
        __be32 dst;
-       int err;
        bool connected;
 
        inner_iph = (const struct iphdr *)skb_inner_network_header(skb);
@@ -795,10 +793,8 @@ void ip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev,
                return;
        }
 
-       err = iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol,
-                           tos, ttl, df, !net_eq(tunnel->net, dev_net(dev)));
-       iptunnel_xmit_stats(err, &dev->stats, dev->tstats);
-
+       iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, protocol, tos, ttl,
+                     df, !net_eq(tunnel->net, dev_net(dev)));
        return;
 
 #if IS_ENABLED(CONFIG_IPV6)
This page took 0.031296 seconds and 5 git commands to generate.