diff options
author | Yang Wei <albin_yang@163.com> | 2019-01-27 18:58:25 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-29 10:09:19 +0300 |
commit | 3afa73dd7c8b586d9d01a96063d537e1550d1287 (patch) | |
tree | 4a7c4de382ddcf0689abd22d3edf9104d75809af /drivers/net | |
parent | f48af114895b2f9cdc218ed75666ade83380255b (diff) | |
download | linux-3afa73dd7c8b586d9d01a96063d537e1550d1287.tar.xz |
net: amd8111e: replace dev_kfree_skb_irq by dev_consume_skb_irq
dev_consume_skb_irq() should be called in amd8111e_tx() when xmit
done. It makes drop profiles 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')
-rw-r--r-- | drivers/net/ethernet/amd/amd8111e.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/amd8111e.c b/drivers/net/ethernet/amd/amd8111e.c index a90080f12e67..e548c0ae2e00 100644 --- a/drivers/net/ethernet/amd/amd8111e.c +++ b/drivers/net/ethernet/amd/amd8111e.c @@ -666,7 +666,7 @@ static int amd8111e_tx(struct net_device *dev) pci_unmap_single(lp->pci_dev, lp->tx_dma_addr[tx_index], lp->tx_skbuff[tx_index]->len, PCI_DMA_TODEVICE); - dev_kfree_skb_irq (lp->tx_skbuff[tx_index]); + dev_consume_skb_irq(lp->tx_skbuff[tx_index]); lp->tx_skbuff[tx_index] = NULL; lp->tx_dma_addr[tx_index] = 0; } |