|
@@ -390,7 +390,8 @@ static int ipip_rcv(struct sk_buff *skb)
|
|
static netdev_tx_t ipip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev)
|
|
static netdev_tx_t ipip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev)
|
|
{
|
|
{
|
|
struct ip_tunnel *tunnel = netdev_priv(dev);
|
|
struct ip_tunnel *tunnel = netdev_priv(dev);
|
|
- struct net_device_stats *stats = &tunnel->dev->stats;
|
|
|
|
|
|
+ struct net_device_stats *stats = &dev->stats;
|
|
|
|
+ struct netdev_queue *txq = netdev_get_tx_queue(dev, 0);
|
|
struct iphdr *tiph = &tunnel->parms.iph;
|
|
struct iphdr *tiph = &tunnel->parms.iph;
|
|
u8 tos = tunnel->parms.iph.tos;
|
|
u8 tos = tunnel->parms.iph.tos;
|
|
__be16 df = tiph->frag_off;
|
|
__be16 df = tiph->frag_off;
|
|
@@ -478,7 +479,7 @@ static netdev_tx_t ipip_tunnel_xmit(struct sk_buff *skb, struct net_device *dev)
|
|
struct sk_buff *new_skb = skb_realloc_headroom(skb, max_headroom);
|
|
struct sk_buff *new_skb = skb_realloc_headroom(skb, max_headroom);
|
|
if (!new_skb) {
|
|
if (!new_skb) {
|
|
ip_rt_put(rt);
|
|
ip_rt_put(rt);
|
|
- stats->tx_dropped++;
|
|
|
|
|
|
+ txq->tx_dropped++;
|
|
dev_kfree_skb(skb);
|
|
dev_kfree_skb(skb);
|
|
return NETDEV_TX_OK;
|
|
return NETDEV_TX_OK;
|
|
}
|
|
}
|