net: moxa: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
Subsystems (2)
PATCH 1/1 net: moxa: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
From: Yang Wei <[email protected]>
dev_consume_skb_irq() should be called in moxart_tx_finished() when skb xmit done. It makes drop profiles(dropwatch, perf) more friendly.
Signed-off-by Yang Wei <[email protected]>
--- drivers/net/ethernet/moxa/moxart_ether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/moxa/moxart_ether.c +1 -1
@@ -298,7 +298,7 @@ static void moxart_tx_finished(struct net_device *ndev) ndev->stats.tx_packets++; ndev->stats.tx_bytes += priv->tx_skb[tx_tail]->len; -dev_kfree_skb_irq (priv->tx_skb[tx_tail]); +dev_consume_skb_irq (priv->tx_skb[tx_tail]); priv->tx_skb[tx_tail] =NULL ; tx_tail =TX_NEXT (tx_tail);
Signature · 1 line
2.7.4
From: Yang Wei <[email protected]>
Date: Tue, 12 Feb 2019 23:56:00 +0800
Quoted 6 lines
From: Yang Wei <[email protected]>
dev_consume_skb_irq()should be called inmoxart_tx_finished()when skb xmit done. It makes dropprofiles(dropwatch, perf)more friendly.Signed-off-by Yang Wei <[email protected]>
Applied, thanks.