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:
96d2650
)
net: smsc: epic100: replace dev_kfree_skb_irq by dev_consume_skb_irq for drop profiles
author
Yang Wei
<yang.wei9@zte.com.cn>
Tue, 5 Feb 2019 16:09:41 +0000
(
00:09
+0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 7 Feb 2019 01:38:15 +0000
(17:38 -0800)
dev_consume_skb_irq() should be called in epic_tx() 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/smsc/epic100.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/smsc/epic100.c
b/drivers/net/ethernet/smsc/epic100.c
index 15c62c160953308b3f4018e8bd7973dee9fa59cd..be47d864f8b9b045ef5b0f7a9e68d097bae15c1c 100644
(file)
--- a/
drivers/net/ethernet/smsc/epic100.c
+++ b/
drivers/net/ethernet/smsc/epic100.c
@@
-1037,7
+1037,7
@@
static void epic_tx(struct net_device *dev, struct epic_private *ep)
skb = ep->tx_skbuff[entry];
pci_unmap_single(ep->pci_dev, ep->tx_ring[entry].bufaddr,
skb->len, PCI_DMA_TODEVICE);
- dev_
kfre
e_skb_irq(skb);
+ dev_
consum
e_skb_irq(skb);
ep->tx_skbuff[entry] = NULL;
}