mirror of
https://github.com/torvalds/linux.git
synced 2024-12-01 00:21:32 +00:00
net: moxa: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
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 <yang.wei9@zte.com.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5f5a8c75da
commit
412261d5c9
@ -300,7 +300,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);
|
||||
|
Loading…
Reference in New Issue
Block a user