net: alteon: replace dev_kfree_skb_irq by dev_consume_skb_irq
authorYang Wei <albin_yang@163.com>
Sun, 27 Jan 2019 15:56:34 +0000 (23:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Jan 2019 07:09:19 +0000 (23:09 -0800)
dev_consume_skb_irq() should be called in ace_tx_int() when xmit
done. It makes drop profiles more friendly.

Signed-off-by: Yang Wei <yang.wei9@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/alteon/acenic.c

index 4f11f98347edecd95632b3bc875f8c7df51685c9..1827ef1f6d5580c76ea31124ef9bb4102ad46248 100644 (file)
@@ -2059,7 +2059,7 @@ static inline void ace_tx_int(struct net_device *dev,
                if (skb) {
                        dev->stats.tx_packets++;
                        dev->stats.tx_bytes += skb->len;
-                       dev_kfree_skb_irq(skb);
+                       dev_consume_skb_irq(skb);
                        info->skb = NULL;
                }