OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4ad1a6
)
net: via-velocity: 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:22:54 +0000
(
00:22
+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 velocity_free_tx_buf()
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/via/via-velocity.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/via/via-velocity.c
b/drivers/net/ethernet/via/via-velocity.c
index
8241269
..
27f6cf1
100644
(file)
--- a/
drivers/net/ethernet/via/via-velocity.c
+++ b/
drivers/net/ethernet/via/via-velocity.c
@@
-1740,7
+1740,7
@@
static void velocity_free_tx_buf(struct velocity_info *vptr,
dma_unmap_single(vptr->dev, tdinfo->skb_dma[i],
le16_to_cpu(pktlen), DMA_TO_DEVICE);
}
- dev_
kfre
e_skb_irq(skb);
+ dev_
consum
e_skb_irq(skb);
tdinfo->skb = NULL;
}