aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan
diff options
context:
space:
mode:
authorYang Wei <yang.wei9@zte.com.cn>2019-02-25 23:05:41 +0800
committerDavid S. Miller <davem@davemloft.net>2019-02-25 14:36:15 -0800
commit11dc98064c91b90c65210686fc744a03ad525cea (patch)
tree06eb854f04bf50e893f507bf10f5be977d9d8f8d /drivers/net/wan
parentnet: wan: sbni: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles (diff)
downloadlinux-dev-11dc98064c91b90c65210686fc744a03ad525cea.tar.xz
linux-dev-11dc98064c91b90c65210686fc744a03ad525cea.zip
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 <yang.wei9@zte.com.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r--drivers/net/wan/cosa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c
index f6b000ddcd15..55f76e422fa0 100644
--- a/drivers/net/wan/cosa.c
+++ b/drivers/net/wan/cosa.c
@@ -769,7 +769,7 @@ static int cosa_net_tx_done(struct channel_data *chan, int size)
chan->netdev->stats.tx_aborted_errors++;
return 1;
}
- dev_kfree_skb_irq(chan->tx_skb);
+ dev_consume_skb_irq(chan->tx_skb);
chan->tx_skb = NULL;
chan->netdev->stats.tx_packets++;
chan->netdev->stats.tx_bytes += size;