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:
87fff3c
)
macvlan: replace kfree_skb by consume_skb for drop profiles
author
Yang Wei
<yang.wei9@zte.com.cn>
Thu, 17 Jan 2019 15:30:03 +0000
(23:30 +0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 18 Jan 2019 06:09:09 +0000
(22:09 -0800)
Replace the kfree_skb() by consume_skb() to be drop monitor(dropwatch,
perf) friendly.
Signed-off-by: Yang Wei <yang.wei9@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c
patch
|
blob
|
history
diff --git
a/drivers/net/macvlan.c
b/drivers/net/macvlan.c
index
fc726ce
..
6d06717
100644
(file)
--- a/
drivers/net/macvlan.c
+++ b/
drivers/net/macvlan.c
@@
-337,7
+337,7
@@
static void macvlan_process_broadcast(struct work_struct *w)
if (src)
dev_put(src->dev);
-
kfre
e_skb(skb);
+
consum
e_skb(skb);
}
}