diff options
author | Yang Wei <yang.wei9@zte.com.cn> | 2019-02-13 18:18:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-14 19:56:36 +0300 |
commit | 105cfb064bcd60fdd74ac29a02f09efbc6a303d8 (patch) | |
tree | 62fda4fed0f4c7c7d57996a828fe5aa2c03e8d11 /drivers/net/ethernet/micrel/ks8695net.c | |
parent | d1a096c2c72d605ddcbb53a5f71f96cf9c6d384c (diff) | |
download | linux-105cfb064bcd60fdd74ac29a02f09efbc6a303d8.tar.xz |
net: micrel: ks8695net: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called in ks8695_tx_irq() when skb
xmit done. It makes drop profiles(dropwatch, perf) more friendly.
Signed-off-by: Yang Wei <yang.wei9@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/micrel/ks8695net.c')
-rw-r--r-- | drivers/net/ethernet/micrel/ks8695net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/micrel/ks8695net.c b/drivers/net/ethernet/micrel/ks8695net.c index b881f5d4a7f9..6006d47707cb 100644 --- a/drivers/net/ethernet/micrel/ks8695net.c +++ b/drivers/net/ethernet/micrel/ks8695net.c @@ -391,7 +391,7 @@ ks8695_tx_irq(int irq, void *dev_id) ksp->tx_buffers[buff_n].dma_ptr, ksp->tx_buffers[buff_n].length, DMA_TO_DEVICE); - dev_kfree_skb_irq(ksp->tx_buffers[buff_n].skb); + dev_consume_skb_irq(ksp->tx_buffers[buff_n].skb); ksp->tx_buffers[buff_n].skb = NULL; ksp->tx_ring_used--; } |