diff options
author | Yang Wei <yang.wei9@zte.com.cn> | 2019-02-13 16:21:02 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-14 17:56:36 +0100 |
commit | ae6279ecb786d9132da0315700580dc23f939986 (patch) | |
tree | fd67443b0e151fc12b27f7c1553116c021032c1d /drivers/net/ethernet/nuvoton/w90p910_ether.c | |
parent | net: natsemi: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles (diff) | |
download | linux-ae6279ecb786d9132da0315700580dc23f939986.tar.xz linux-ae6279ecb786d9132da0315700580dc23f939986.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/nuvoton/w90p910_ether.c')
-rw-r--r-- | drivers/net/ethernet/nuvoton/w90p910_ether.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/nuvoton/w90p910_ether.c b/drivers/net/ethernet/nuvoton/w90p910_ether.c index c662c6f5bee3..67bf02b0763a 100644 --- a/drivers/net/ethernet/nuvoton/w90p910_ether.c +++ b/drivers/net/ethernet/nuvoton/w90p910_ether.c @@ -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; |