projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3afa73d
)
net: apple: 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:39:13 +0000
(07:39 +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 bmac_txdma_intr() 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/apple/bmac.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/apple/bmac.c
b/drivers/net/ethernet/apple/bmac.c
index 6a8e2567f2bdef5e4a7fa3685de97354c67ed280..4d3855ceb50051a74f7668c0913b1ff8e562880a 100644
(file)
--- a/
drivers/net/ethernet/apple/bmac.c
+++ b/
drivers/net/ethernet/apple/bmac.c
@@
-777,7
+777,7
@@
static irqreturn_t bmac_txdma_intr(int irq, void *dev_id)
if (bp->tx_bufs[bp->tx_empty]) {
++dev->stats.tx_packets;
- dev_
kfre
e_skb_irq(bp->tx_bufs[bp->tx_empty]);
+ dev_
consum
e_skb_irq(bp->tx_bufs[bp->tx_empty]);
}
bp->tx_bufs[bp->tx_empty] = NULL;
bp->tx_fullup = 0;