net: nuvoton: w90p910_ether: replace dev_kfree_skb_irq by dev_consume_skb_irq for...
authorYang Wei <yang.wei9@zte.com.cn>
Wed, 13 Feb 2019 15:21:02 +0000 (23:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2019 16:56:36 +0000 (11:56 -0500)
dev_consume_skb_irq() should be called in w90p910_ether_start_xmit()
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/ethernet/nuvoton/w90p910_ether.c

index c662c6f5bee340f4a0b73e09ae36c7eb4bc878d3..67bf02b0763ab6f52a2df4fe95ecc2608ca66770 100644 (file)
@@ -630,7 +630,7 @@ static int w90p910_ether_start_xmit(struct sk_buff *skb, struct net_device *dev)
 
        if (!(w90p910_send_frame(dev, skb->data, skb->len))) {
                ether->skb = skb;
-               dev_kfree_skb_irq(skb);
+               dev_consume_skb_irq(skb);
                return 0;
        }
        return -EAGAIN;