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:
d1a096c
)
net: micrel: ks8695net: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop...
author
Yang Wei
<yang.wei9@zte.com.cn>
Wed, 13 Feb 2019 15:18:09 +0000
(23:18 +0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 14 Feb 2019 16:56:36 +0000
(11:56 -0500)
dev_consume_skb_irq() should be called in ks8695_tx_irq() 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>
drivers/net/ethernet/micrel/ks8695net.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/micrel/ks8695net.c
b/drivers/net/ethernet/micrel/ks8695net.c
index
b881f5d
..
6006d47
100644
(file)
--- a/
drivers/net/ethernet/micrel/ks8695net.c
+++ b/
drivers/net/ethernet/micrel/ks8695net.c
@@
-391,7
+391,7
@@
ks8695_tx_irq(int irq, void *dev_id)
ksp->tx_buffers[buff_n].dma_ptr,
ksp->tx_buffers[buff_n].length,
DMA_TO_DEVICE);
- dev_
kfre
e_skb_irq(ksp->tx_buffers[buff_n].skb);
+ dev_
consum
e_skb_irq(ksp->tx_buffers[buff_n].skb);
ksp->tx_buffers[buff_n].skb = NULL;
ksp->tx_ring_used--;
}