projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1000911
)
net: ti: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
author
Yang Wei
<yang.wei9@zte.com.cn>
Mon, 28 Jan 2019 23:40:10 +0000
(07:40 +0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 29 Jan 2019 07:09:19 +0000
(23:09 -0800)
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>
drivers/net/ethernet/ti/cpmac.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/ti/cpmac.c
b/drivers/net/ethernet/ti/cpmac.c
index 810dfc7de1f9125763af49ad0a2c6070901f7313..e2d47b24a86922284ab508af8eb4bebfde2893e4 100644
(file)
--- a/
drivers/net/ethernet/ti/cpmac.c
+++ b/
drivers/net/ethernet/ti/cpmac.c
@@
-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_
kfre
e_skb_irq(desc->skb);
+ dev_
consum
e_skb_irq(desc->skb);
desc->skb = NULL;
if (__netif_subqueue_stopped(dev, queue))
netif_wake_subqueue(dev, queue);