Skip to content

Commit

Permalink
net:dl2k: Replace dev_kfree_skb_irq by dev_consume_skb_irq
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Huang Zijiang authored and David S. Miller committed Feb 14, 2019
1 parent edc307b commit 62f2589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/dlink/dl2k.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 62f2589

Please sign in to comment.