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>
This commit is contained in:
parent
f48af11489
commit
3afa73dd7c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue