projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
153d96b
)
net: wan: cosa: 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 15:05:41 +0000
(23:05 +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 cosa_net_tx_done() 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/wan/cosa.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wan/cosa.c
b/drivers/net/wan/cosa.c
index f6b000ddcd151da8b433cda58ed2daa27e544974..55f76e422fa025d80ee81ccd59e2269d498fbceb 100644
(file)
--- a/
drivers/net/wan/cosa.c
+++ b/
drivers/net/wan/cosa.c
@@
-769,7
+769,7
@@
static int cosa_net_tx_done(struct channel_data *chan, int size)
chan->netdev->stats.tx_aborted_errors++;
return 1;
}
- dev_
kfre
e_skb_irq(chan->tx_skb);
+ dev_
consum
e_skb_irq(chan->tx_skb);
chan->tx_skb = NULL;
chan->netdev->stats.tx_packets++;
chan->netdev->stats.tx_bytes += size;