mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 17:23:55 +08:00
net: ti: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
dev_consume_skb_irq() should be called in cpmac_end_xmit() when xmit done. It makes drop profiles 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
100091156c
commit
b3379a424d
@ -608,7 +608,7 @@ static void cpmac_end_xmit(struct net_device *dev, int queue)
|
||||
netdev_dbg(dev, "sent 0x%p, len=%d\n",
|
||||
desc->skb, desc->skb->len);
|
||||
|
||||
dev_kfree_skb_irq(desc->skb);
|
||||
dev_consume_skb_irq(desc->skb);
|
||||
desc->skb = NULL;
|
||||
if (__netif_subqueue_stopped(dev, queue))
|
||||
netif_wake_subqueue(dev, queue);
|
||||
|
Loading…
Reference in New Issue
Block a user