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:
edc307b
)
net:dl2k: Replace dev_kfree_skb_irq by dev_consume_skb_irq
author
Huang Zijiang
<huang.zijiang@zte.com.cn>
Thu, 14 Feb 2019 06:40:56 +0000
(14:40 +0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 14 Feb 2019 17:25:24 +0000
(12:25 -0500)
dev_consume_skb_irq() should be called when skb xmit
done.It makes drop profiles more friendly.
Signed-off-by: Huang Zijiang <huang.zijiang@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/dlink/dl2k.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/dlink/dl2k.c
b/drivers/net/ethernet/dlink/dl2k.c
index
d4ab63f
..
cfcdfee
100644
(file)
--- a/
drivers/net/ethernet/dlink/dl2k.c
+++ b/
drivers/net/ethernet/dlink/dl2k.c
@@
-843,7
+843,7
@@
rio_free_tx (struct net_device *dev, int irq)
desc_to_dma(&np->tx_ring[entry]),
skb->len, PCI_DMA_TODEVICE);
if (irq)
- dev_
kfre
e_skb_irq(skb);
+ dev_
consum
e_skb_irq(skb);
else
dev_kfree_skb(skb);