net: moxa: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
authorYang Wei <yang.wei9@zte.com.cn>
Tue, 12 Feb 2019 15:56:00 +0000 (23:56 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 04:50:42 +0000 (20:50 -0800)
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>
drivers/net/ethernet/moxa/moxart_ether.c

index 00dec0ffb11b25e51cb389edbacf080dd4096b18..e1651756bf9da181a089caccc7011c33fd9f4267 100644 (file)
@@ -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);