diff options
author | Yang Wei <yang.wei9@zte.com.cn> | 2019-02-06 00:09:41 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-06 17:38:15 -0800 |
commit | bb6a702c6d512b16a7c16a38468a14eda72f44b5 (patch) | |
tree | 67beba1311fe970f641f9837556580dbdc3c2d00 /drivers | |
parent | 96d26503e1deba5d12e0e4b473336479cc0965af (diff) | |
download | talos-op-linux-bb6a702c6d512b16a7c16a38468a14eda72f44b5.tar.gz talos-op-linux-bb6a702c6d512b16a7c16a38468a14eda72f44b5.zip |
net: smsc: epic100: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called in epic_tx() 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/smsc/epic100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/smsc/epic100.c b/drivers/net/ethernet/smsc/epic100.c index 15c62c160953..be47d864f8b9 100644 --- a/drivers/net/ethernet/smsc/epic100.c +++ b/drivers/net/ethernet/smsc/epic100.c @@ -1037,7 +1037,7 @@ static void epic_tx(struct net_device *dev, struct epic_private *ep) skb = ep->tx_skbuff[entry]; pci_unmap_single(ep->pci_dev, ep->tx_ring[entry].bufaddr, skb->len, PCI_DMA_TODEVICE); - dev_kfree_skb_irq(skb); + dev_consume_skb_irq(skb); ep->tx_skbuff[entry] = NULL; } |