net: wan: z85230: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
authorYang Wei <yang.wei9@zte.com.cn>
Mon, 25 Feb 2019 15:06:24 +0000 (23:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2019 22:36:15 +0000 (14:36 -0800)
dev_consume_skb_irq() should be called in z8530_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>
drivers/net/wan/z85230.c

index deea41e96f0183e7d6d1b10ee029e1aa0f50c523..0e56ab0aed9a9d209f21d4e57ff83a7de3e9b53d 100644 (file)
@@ -1536,7 +1536,7 @@ static void z8530_tx_done(struct z8530_channel *c)
        z8530_tx_begin(c);
        c->netdevice->stats.tx_packets++;
        c->netdevice->stats.tx_bytes += skb->len;
-       dev_kfree_skb_irq(skb);
+       dev_consume_skb_irq(skb);
 }
 
 /**