OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9d0c6e
)
net: lmc: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
author
Yang Wei
<yang.wei9@zte.com.cn>
Mon, 25 Feb 2019 14:57:40 +0000
(22:57 +0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 25 Feb 2019 22:36:15 +0000
(14:36 -0800)
dev_consume_skb_irq() should be called in lmc_interrupt() when skb
xmit done. It makes drop profiles(dropwatch, perf) more friendly.
Delete a redundant comment line in lmc_interrupt().
Signed-off-by: Yang Wei <yang.wei9@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/lmc/lmc_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wan/lmc/lmc_main.c
b/drivers/net/wan/lmc/lmc_main.c
index
4907453
..
22b065f
100644
(file)
--- a/
drivers/net/wan/lmc/lmc_main.c
+++ b/
drivers/net/wan/lmc/lmc_main.c
@@
-1320,8
+1320,7
@@
static irqreturn_t lmc_interrupt (int irq, void *dev_instance) /*fold00*/
sc->lmc_device->stats.tx_packets++;
}
- // dev_kfree_skb(sc->lmc_txq[i]);
- dev_kfree_skb_irq(sc->lmc_txq[i]);
+ dev_consume_skb_irq(sc->lmc_txq[i]);
sc->lmc_txq[i] = NULL;
badtx++;