Skip to content

Commit

Permalink
net: fec_mpc52xx: replace dev_kfree_skb_irq by dev_consume_skb_irq fo…
Browse files Browse the repository at this point in the history
…r drop profiles

dev_consume_skb_irq() should be called in mpc52xx_fec_tx_interrupt()
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>
  • Loading branch information
Yang Wei authored and David S. Miller committed Feb 7, 2019
1 parent bb6a702 commit c50e964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/freescale/fec_mpc52xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ static irqreturn_t mpc52xx_fec_tx_interrupt(int irq, void *dev_id)
dma_unmap_single(dev->dev.parent, bd->skb_pa, skb->len,
DMA_TO_DEVICE);

dev_kfree_skb_irq(skb);
dev_consume_skb_irq(skb);
}
spin_unlock(&priv->lock);

Expand Down

0 comments on commit c50e964

Please sign in to comment.