diff options
Diffstat (limited to 'net/ipv4/ipip.c')
-rw-r--r-- | net/ipv4/ipip.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c index 08ccd344de7a..6a5539236ab3 100644 --- a/net/ipv4/ipip.c +++ b/net/ipv4/ipip.c | |||
@@ -390,7 +390,8 @@ static int ipip_rcv(struct sk_buff *skb) | |||
390 | static netdev_tx_t ipip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev) | 390 | static netdev_tx_t ipip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev) |
391 | { | 391 | { |
392 | struct ip_tunnel *tunnel = netdev_priv(dev); | 392 | struct ip_tunnel *tunnel = netdev_priv(dev); |
393 | struct net_device_stats *stats = &tunnel->dev->stats; | 393 | struct net_device_stats *stats = &dev->stats; |
394 | struct netdev_queue *txq = netdev_get_tx_queue(dev, 0); | ||
394 | struct iphdr *tiph = &tunnel->parms.iph; | 395 | struct iphdr *tiph = &tunnel->parms.iph; |
395 | u8 tos = tunnel->parms.iph.tos; | 396 | u8 tos = tunnel->parms.iph.tos; |
396 | __be16 df = tiph->frag_off; | 397 | __be16 df = tiph->frag_off; |
@@ -478,7 +479,7 @@ static netdev_tx_t ipip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev) | |||
478 | struct sk_buff *new_skb = skb_realloc_headroom(skb, max_headroom); | 479 | struct sk_buff *new_skb = skb_realloc_headroom(skb, max_headroom); |
479 | if (!new_skb) { | 480 | if (!new_skb) { |
480 | ip_rt_put(rt); | 481 | ip_rt_put(rt); |
481 | stats->tx_dropped++; | 482 | txq->tx_dropped++; |
482 | dev_kfree_skb(skb); | 483 | dev_kfree_skb(skb); |
483 | return NETDEV_TX_OK; | 484 | return NETDEV_TX_OK; |
484 | } | 485 | } |