diff options
author | Yang Wei <yang.wei9@zte.com.cn> | 2019-02-13 18:19:14 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-14 19:56:36 +0300 |
commit | 380ab7e3d59d790e05d39f3c1d4a6039ef0e3901 (patch) | |
tree | d41bf6c7a648b540efda046764cfc2443439dd4a /drivers/net/ethernet/natsemi/ns83820.c | |
parent | 105cfb064bcd60fdd74ac29a02f09efbc6a303d8 (diff) | |
download | linux-380ab7e3d59d790e05d39f3c1d4a6039ef0e3901.tar.xz |
net: natsemi: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called 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/net/ethernet/natsemi/ns83820.c')
-rw-r--r-- | drivers/net/ethernet/natsemi/ns83820.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/natsemi/ns83820.c b/drivers/net/ethernet/natsemi/ns83820.c index 958fced4dacf..000009e18ff8 100644 --- a/drivers/net/ethernet/natsemi/ns83820.c +++ b/drivers/net/ethernet/natsemi/ns83820.c @@ -1003,7 +1003,7 @@ static void do_tx_done(struct net_device *ndev) addr, len, PCI_DMA_TODEVICE); - dev_kfree_skb_irq(skb); + dev_consume_skb_irq(skb); atomic_dec(&dev->nr_tx_skbs); } else pci_unmap_page(dev->pci_dev, |