summaryrefslogtreecommitdiffstats
path: root/drivers/net/wan
diff options
context:
space:
mode:
authorYang Wei <yang.wei9@zte.com.cn>2019-02-05 17:14:51 +0100
committerDavid S. Miller <davem@davemloft.net>2019-02-07 02:38:15 +0100
commit7c3850adbcccc2c6c9e7ab23a7dcbc4926ee5b96 (patch)
treece442918cdb169bdad8e320a762bfba98b087a46 /drivers/net/wan
parentnet: fec_mpc52xx: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop p... (diff)
downloadlinux-7c3850adbcccc2c6c9e7ab23a7dcbc4926ee5b96.tar.xz
linux-7c3850adbcccc2c6c9e7ab23a7dcbc4926ee5b96.zip
net: fsl_ucc_hdlc: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called in hdlc_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/fsl_ucc_hdlc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c
index 66d889d54e58..a08f04c3f644 100644
--- a/drivers/net/wan/fsl_ucc_hdlc.c
+++ b/drivers/net/wan/fsl_ucc_hdlc.c
@@ -482,7 +482,7 @@ static int hdlc_tx_done(struct ucc_hdlc_private *priv)
memset(priv->tx_buffer +
(be32_to_cpu(bd->buf) - priv->dma_tx_addr),
0, skb->len);
- dev_kfree_skb_irq(skb);
+ dev_consume_skb_irq(skb);
priv->tx_skbuff[priv->skb_dirtytx] = NULL;
priv->skb_dirtytx =