net: apple: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called in bmac_txdma_intr() 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
3afa73dd7c
commit
100091156c
@ -777,7 +777,7 @@ static irqreturn_t bmac_txdma_intr(int irq, void *dev_id)
|
||||
|
||||
if (bp->tx_bufs[bp->tx_empty]) {
|
||||
++dev->stats.tx_packets;
|
||||
dev_kfree_skb_irq(bp->tx_bufs[bp->tx_empty]);
|
||||
dev_consume_skb_irq(bp->tx_bufs[bp->tx_empty]);
|
||||
}
|
||||
bp->tx_bufs[bp->tx_empty] = NULL;
|
||||
bp->tx_fullup = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user