Skip to contentSkip to conversation

net: apple: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles

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

Subsystems (2)
lore
Share & tools
lore

Yang Wei

author
#0 lore raw

PATCH 1/1 net: apple: 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 mace_interrupt() when skb xmit done. It makes drop profiles(dropwatch, perf) more friendly.

---
 drivers/net/ethernet/apple/mace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/apple/mace.c +1 -1
index 68b9ee4..4d9819d 100644
@@ -764,7 +764,7 @@ static irqreturn_t mace_interrupt(int irq, void *dev_id)
 	    dev->stats.tx_bytes += mp->tx_bufs[i]->len;
 	    ++dev->stats.tx_packets;
 	}
-	dev_kfree_skb_irq(mp->tx_bufs[i]);
+	dev_consume_skb_irq(mp->tx_bufs[i]);
 	--mp->tx_active;
 	if (++i >= N_TX_RING)
 	    i = 0;
Signature · 1 line
2.7.4