geneve: Fix IPv6 xmit stats update.
authorPravin B Shelar <pshelar@nicira.com>
Tue, 8 Dec 2015 03:17:30 +0000 (19:17 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Dec 2015 03:39:03 +0000 (22:39 -0500)
Call to iptunnel_xmit_stats() is not required after udp-tunnel6-xmit.
By calling iptunnel_xmit_stats() results in incorrect device stats.
Following patch drops this call.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c

index de5c30c9f059203040cc47e83cce76ae9e5bfde6..c2b79f5d1c89b6b5872c8197fde3eb2d806d4f36 100644 (file)
@@ -967,8 +967,6 @@ static netdev_tx_t geneve6_xmit_skb(struct sk_buff *skb, struct net_device *dev,
        err = udp_tunnel6_xmit_skb(dst, gs6->sock->sk, skb, dev,
                                   &fl6.saddr, &fl6.daddr, prio, ttl,
                                   sport, geneve->dst_port, !udp_csum);
-
-       iptunnel_xmit_stats(err, &dev->stats, dev->tstats);
        return NETDEV_TX_OK;
 
 tx_error: