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:
d270f67
)
net: apple: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
author
Yang Wei
<yang.wei9@zte.com.cn>
Tue, 12 Feb 2019 15:52:53 +0000
(23:52 +0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 14 Feb 2019 04:50:42 +0000
(20:50 -0800)
dev_consume_skb_irq() should be called in mace_interrupt() 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/apple/mace.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/apple/mace.c
b/drivers/net/ethernet/apple/mace.c
index 68b9ee4894892f96f82453cd657d7aa4875b467b..4d9819d2894d256973b26602292aceed43b7e25c 100644
(file)
--- a/
drivers/net/ethernet/apple/mace.c
+++ b/
drivers/net/ethernet/apple/mace.c
@@
-764,7
+764,7
@@
static irqreturn_t mace_interrupt(int irq, void *dev_id)
dev->stats.tx_bytes += mp->tx_bufs[i]->len;
++dev->stats.tx_packets;
}
- dev_
kfre
e_skb_irq(mp->tx_bufs[i]);
+ dev_
consum
e_skb_irq(mp->tx_bufs[i]);
--mp->tx_active;
if (++i >= N_TX_RING)
i = 0;