diff options
author | Yang Wei <yang.wei9@zte.com.cn> | 2019-02-12 18:56:00 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-14 07:50:42 +0300 |
commit | 412261d5c901472b025c8dcea173997209f28ab2 (patch) | |
tree | 761d6d6ce836be9320cc4ad13aae1f5efb7c1d92 /drivers | |
parent | 5f5a8c75daed965a3631ab98a783846260d2729d (diff) | |
download | linux-412261d5c901472b025c8dcea173997209f28ab2.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/moxa/moxart_ether.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drivers/net/ethernet/moxa/moxart_ether.c index 00dec0ffb11b..e1651756bf9d 100644 --- a/drivers/net/ethernet/moxa/moxart_ether.c +++ b/drivers/net/ethernet/moxa/moxart_ether.c @@ -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); |