diff options
author | Huang Zijiang <huang.zijiang@zte.com.cn> | 2019-02-14 07:40:56 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-14 18:25:24 +0100 |
commit | 62f2589883405081f3e0a4aae69f3fe8932348a3 (patch) | |
tree | de1f5a41013c388a4143d55c7b5b631f729fd985 /drivers/net/ethernet/dlink | |
parent | net:dl2k: Modify the code style escaping the warning (diff) | |
download | linux-62f2589883405081f3e0a4aae69f3fe8932348a3.tar.xz linux-62f2589883405081f3e0a4aae69f3fe8932348a3.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/dlink')
-rw-r--r-- | drivers/net/ethernet/dlink/dl2k.c | 2 |
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); |