Skip to content

Commit

Permalink
net: nuvoton: w90p910_ether: replace dev_kfree_skb_irq by dev_consume…
Browse files Browse the repository at this point in the history
…_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>
  • Loading branch information
Yang Wei authored and David S. Miller committed Feb 14, 2019
1 parent 380ab7e commit ae6279e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/nuvoton/w90p910_ether.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ae6279e

Please sign in to comment.