]> Git Repo - linux.git/commitdiff
net: macb: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
authorYang Wei <[email protected]>
Tue, 12 Feb 2019 16:00:02 +0000 (00:00 +0800)
committerDavid S. Miller <[email protected]>
Thu, 14 Feb 2019 04:50:54 +0000 (20:50 -0800)
dev_consume_skb_irq() should be called in at91ether_interrupt() when
skb xmit done. It makes drop profiles(dropwatch, perf) more friendly.

Signed-off-by: Yang Wei <[email protected]>
Reviewed-by: Claudiu Beznea <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/cadence/macb_main.c

index 4d1509f431d77df550a863308531a6424b67be44..0d6288dd609a3b055ee300789e44cd6d4a1cdd4b 100644 (file)
@@ -3763,7 +3763,7 @@ static irqreturn_t at91ether_interrupt(int irq, void *dev_id)
                        dev->stats.tx_errors++;
 
                if (lp->skb) {
-                       dev_kfree_skb_irq(lp->skb);
+                       dev_consume_skb_irq(lp->skb);
                        lp->skb = NULL;
                        dma_unmap_single(&lp->pdev->dev, lp->skb_physaddr,
                                         lp->skb_length, DMA_TO_DEVICE);
This page took 0.061781 seconds and 4 git commands to generate.