summaryrefslogtreecommitdiff
path: root/net/core/neighbour.c
diff options
context:
space:
mode:
authorYang Wei <yang.wei9@zte.com.cn>2019-01-17 18:11:30 +0300
committerDavid S. Miller <davem@davemloft.net>2019-01-18 09:08:14 +0300
commit87fff3cacd0112bcaf42f932c1e44ae32b42f1fb (patch)
treee5b493e48cbfe56f55f2db00fa581f41430c13b9 /net/core/neighbour.c
parent5ab3121beeb76aa6090195b67d237115860dd9ec (diff)
downloadlinux-87fff3cacd0112bcaf42f932c1e44ae32b42f1fb.tar.xz
neighbour: Do not perturb drop profiles when neigh_probe
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>
Diffstat (limited to 'net/core/neighbour.c')
-rw-r--r--net/core/neighbour.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index 96fdc9134726..4230400b9a30 100644
--- 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);
- kfree_skb(skb);
+ consume_skb(skb);
}
/* Called when a timer expires for a neighbour entry. */