Skip to content

Commit

Permalink
net: fsl_ucc_hdlc: replace dev_kfree_skb_irq by dev_consume_skb_irq f…
Browse files Browse the repository at this point in the history
…or 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>
  • Loading branch information
Yang Wei authored and David S. Miller committed Feb 7, 2019
1 parent c50e964 commit 7c3850a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wan/fsl_ucc_hdlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 7c3850a

Please sign in to comment.