mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 09:31:26 +00:00
net: micrel: ks8695net: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called in ks8695_tx_irq() 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>
This commit is contained in:
parent
d1a096c2c7
commit
105cfb064b
@ -391,7 +391,7 @@ ks8695_tx_irq(int irq, void *dev_id)
|
||||
ksp->tx_buffers[buff_n].dma_ptr,
|
||||
ksp->tx_buffers[buff_n].length,
|
||||
DMA_TO_DEVICE);
|
||||
dev_kfree_skb_irq(ksp->tx_buffers[buff_n].skb);
|
||||
dev_consume_skb_irq(ksp->tx_buffers[buff_n].skb);
|
||||
ksp->tx_buffers[buff_n].skb = NULL;
|
||||
ksp->tx_ring_used--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user