Skip to contentSkip to conversation

net: i825xx: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles

PATCH Applied Yang Wei 2 participants 2 messages Feb 14, 2019

Subsystems (2)
lore
Share & tools
lore

Yang Wei

author
#0 lore raw

PATCH 1/1 net: i825xx: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles

From: Yang Wei <[email protected]>

dev_consume_skb_irq() should be called in i596_interrupt() when skb xmit done. It makes drop profiles(dropwatch, perf) more friendly.

---
 drivers/net/ethernet/i825xx/lib82596.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/i825xx/lib82596.c +1 -1
index 2f7ae11..1274ad2 100644
@@ -1194,7 +1194,7 @@ static irqreturn_t i596_interrupt(int irq, void *dev_id)
 				dma_unmap_single(dev->dev.parent,
 						 tx_cmd->dma_addr,
 						 skb->len, DMA_TO_DEVICE);
-				dev_kfree_skb_irq(skb);
+				dev_consume_skb_irq(skb);
 
 				tx_cmd->cmd.command = 0; /* Mark free */
 				break;
Signature · 1 line
2.7.4