summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorYang Wei <yang.wei9@zte.com.cn>2019-02-05 17:07:03 +0100
committerDavid S. Miller <davem@davemloft.net>2019-02-07 02:38:15 +0100
commit96d26503e1deba5d12e0e4b473336479cc0965af (patch)
tree146f025079d993a03501f97f309cc7891a516073 /drivers/net
parentnet: tulip: de2104x: replace dev_kfree_skb_irq by dev_consume_skb_irq for dro... (diff)
downloadlinux-96d26503e1deba5d12e0e4b473336479cc0965af.tar.xz
linux-96d26503e1deba5d12e0e4b473336479cc0965af.zip
net: dscc4: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called in dscc4_tx_irq() 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')
-rw-r--r--drivers/net/wan/dscc4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wan/dscc4.c b/drivers/net/wan/dscc4.c
index c0b0f525c87c..27decf8ae840 100644
--- a/drivers/net/wan/dscc4.c
+++ b/drivers/net/wan/dscc4.c
@@ -1575,7 +1575,7 @@ try:
dev->stats.tx_packets++;
dev->stats.tx_bytes += skb->len;
}
- dev_kfree_skb_irq(skb);
+ dev_consume_skb_irq(skb);
dpriv->tx_skbuff[cur] = NULL;
++dpriv->tx_dirty;
} else {