summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuang Zijiang <huang.zijiang@zte.com.cn>2019-02-14 14:40:56 +0800
committerDavid S. Miller <davem@davemloft.net>2019-02-14 12:25:24 -0500
commit62f2589883405081f3e0a4aae69f3fe8932348a3 (patch)
treede1f5a41013c388a4143d55c7b5b631f729fd985
parentedc307bb7e4897df53248bd92f94221371c596ac (diff)
net:dl2k: Replace dev_kfree_skb_irq by dev_consume_skb_irq
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>
-rw-r--r--drivers/net/ethernet/dlink/dl2k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/dlink/dl2k.c b/drivers/net/ethernet/dlink/dl2k.c
index d4ab63f07aef..cfcdfee718b0 100644
--- a/drivers/net/ethernet/dlink/dl2k.c
+++ b/drivers/net/ethernet/dlink/dl2k.c
@@ -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);