diff options
Diffstat (limited to 'net/ipv4/ip_gre.c')
-rw-r--r-- | net/ipv4/ip_gre.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index 41ada9904d31..89ff9d5b1500 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c | |||
@@ -662,7 +662,8 @@ drop_nolock: | |||
662 | static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev) | 662 | static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev) |
663 | { | 663 | { |
664 | struct ip_tunnel *tunnel = netdev_priv(dev); | 664 | struct ip_tunnel *tunnel = netdev_priv(dev); |
665 | struct net_device_stats *stats = &tunnel->dev->stats; | 665 | struct net_device_stats *stats = &dev->stats; |
666 | struct netdev_queue *txq = netdev_get_tx_queue(dev, 0); | ||
666 | struct iphdr *old_iph = ip_hdr(skb); | 667 | struct iphdr *old_iph = ip_hdr(skb); |
667 | struct iphdr *tiph; | 668 | struct iphdr *tiph; |
668 | u8 tos; | 669 | u8 tos; |
@@ -810,7 +811,7 @@ static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev | |||
810 | struct sk_buff *new_skb = skb_realloc_headroom(skb, max_headroom); | 811 | struct sk_buff *new_skb = skb_realloc_headroom(skb, max_headroom); |
811 | if (!new_skb) { | 812 | if (!new_skb) { |
812 | ip_rt_put(rt); | 813 | ip_rt_put(rt); |
813 | stats->tx_dropped++; | 814 | txq->tx_dropped++; |
814 | dev_kfree_skb(skb); | 815 | dev_kfree_skb(skb); |
815 | return NETDEV_TX_OK; | 816 | return NETDEV_TX_OK; |
816 | } | 817 | } |