summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cadence
diff options
context:
space:
mode:
authorYang Wei <yang.wei9@zte.com.cn>2019-02-13 00:00:02 +0800
committerDavid S. Miller <davem@davemloft.net>2019-02-13 20:50:54 -0800
commitb9560a22a440a8813e613226c730d38cbbdb39eb (patch)
tree523a0f4900e545d59670f7284f494c26579cb1f7 /drivers/net/ethernet/cadence
parente78042eb6e2d831f9e616d7cfa1dce3021504b5d (diff)
downloadlinux-b9560a22a440a8813e613226c730d38cbbdb39eb.tar.gz
linux-b9560a22a440a8813e613226c730d38cbbdb39eb.tar.bz2
linux-b9560a22a440a8813e613226c730d38cbbdb39eb.zip
net: macb: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
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 <yang.wei9@zte.com.cn> Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence')
-rw-r--r--drivers/net/ethernet/cadence/macb_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
index 4d1509f431d7..0d6288dd609a 100644
--- a/drivers/net/ethernet/cadence/macb_main.c
+++ b/drivers/net/ethernet/cadence/macb_main.c
@@ -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);