Skip to content

Commit b84caee

Browse files
Yang Weidavem330
authored andcommitted
net: lmc: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called in lmc_interrupt() when skb xmit done. It makes drop profiles(dropwatch, perf) more friendly. Delete a redundant comment line in lmc_interrupt(). Signed-off-by: Yang Wei <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c9d0c6e commit b84caee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/wan/lmc/lmc_main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,8 +1320,7 @@ static irqreturn_t lmc_interrupt (int irq, void *dev_instance) /*fold00*/
13201320
sc->lmc_device->stats.tx_packets++;
13211321
}
13221322

1323-
// dev_kfree_skb(sc->lmc_txq[i]);
1324-
dev_kfree_skb_irq(sc->lmc_txq[i]);
1323+
dev_consume_skb_irq(sc->lmc_txq[i]);
13251324
sc->lmc_txq[i] = NULL;
13261325

13271326
badtx++;

0 commit comments

Comments
 (0)