Skip to content

Commit 11dc980

Browse files
Yang Weidavem330
authored andcommitted
net: wan: cosa: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called in cosa_net_tx_done() when skb xmit done. It makes drop profiles(dropwatch, perf) more friendly. Signed-off-by: Yang Wei <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 153d96b commit 11dc980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wan/cosa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ static int cosa_net_tx_done(struct channel_data *chan, int size)
769769
chan->netdev->stats.tx_aborted_errors++;
770770
return 1;
771771
}
772-
dev_kfree_skb_irq(chan->tx_skb);
772+
dev_consume_skb_irq(chan->tx_skb);
773773
chan->tx_skb = NULL;
774774
chan->netdev->stats.tx_packets++;
775775
chan->netdev->stats.tx_bytes += size;

0 commit comments

Comments
 (0)