[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1550071089-4776-1-git-send-email-albin_yang@163.com>
Date: Wed, 13 Feb 2019 23:18:09 +0800
From: Yang Wei <albin_yang@....com>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, yang.wei9@....com.cn, albin_yang@....com
Subject: [PATCH net] net: micrel: ks8695net: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
From: Yang Wei <yang.wei9@....com.cn>
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@....com.cn>
---
drivers/net/ethernet/micrel/ks8695net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/micrel/ks8695net.c b/drivers/net/ethernet/micrel/ks8695net.c
index b881f5d..6006d47 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--;
}
--
2.7.4
Powered by blists - more mailing lists