net: nuvoton: w90p910_ether: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
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>
This commit is contained in:
parent
380ab7e3d5
commit
ae6279ecb7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue