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:
5ab3121
)
neighbour: Do not perturb drop profiles when neigh_probe
author
Yang Wei
<yang.wei9@zte.com.cn>
Thu, 17 Jan 2019 15:11:30 +0000
(23:11 +0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 18 Jan 2019 06:08:14 +0000
(22:08 -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>
net/core/neighbour.c
patch
|
blob
|
history
diff --git
a/net/core/neighbour.c
b/net/core/neighbour.c
index 96fdc91347266e23290775fa8fbe0524fd3192fd..4230400b9a309fb7c317d7ec7230a0db17f4ac3d 100644
(file)
--- a/
net/core/neighbour.c
+++ b/
net/core/neighbour.c
@@
-1007,7
+1007,7
@@
static void neigh_probe(struct neighbour *neigh)
if (neigh->ops->solicit)
neigh->ops->solicit(neigh, skb);
atomic_inc(&neigh->probes);
-
kfre
e_skb(skb);
+
consum
e_skb(skb);
}
/* Called when a timer expires for a neighbour entry. */