net:dl2k: Replace dev_kfree_skb_irq by dev_consume_skb_irq
authorHuang Zijiang <huang.zijiang@zte.com.cn>
Thu, 14 Feb 2019 06:40:56 +0000 (14:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 17:25:24 +0000 (12:25 -0500)
dev_consume_skb_irq() should be called when skb xmit
done.It makes drop profiles more friendly.

Signed-off-by: Huang Zijiang <huang.zijiang@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dlink/dl2k.c

index d4ab63f..cfcdfee 100644 (file)
@@ -843,7 +843,7 @@ rio_free_tx (struct net_device *dev, int irq)
                                  desc_to_dma(&np->tx_ring[entry]),
                                  skb->len, PCI_DMA_TODEVICE);
                if (irq)
-                       dev_kfree_skb_irq(skb);
+                       dev_consume_skb_irq(skb);
                else
                        dev_kfree_skb(skb);