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:
5f5a8c7
)
net: moxa: 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:56:00 +0000
(23:56 +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 moxart_tx_finished() 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/moxa/moxart_ether.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/moxa/moxart_ether.c
b/drivers/net/ethernet/moxa/moxart_ether.c
index 00dec0ffb11b25e51cb389edbacf080dd4096b18..e1651756bf9da181a089caccc7011c33fd9f4267 100644
(file)
--- a/
drivers/net/ethernet/moxa/moxart_ether.c
+++ b/
drivers/net/ethernet/moxa/moxart_ether.c
@@
-300,7
+300,7
@@
static void moxart_tx_finished(struct net_device *ndev)
ndev->stats.tx_packets++;
ndev->stats.tx_bytes += priv->tx_skb[tx_tail]->len;
- dev_
kfre
e_skb_irq(priv->tx_skb[tx_tail]);
+ dev_
consum
e_skb_irq(priv->tx_skb[tx_tail]);
priv->tx_skb[tx_tail] = NULL;
tx_tail = TX_NEXT(tx_tail);