diff options
author | Yang Wei <yang.wei9@zte.com.cn> | 2019-01-17 23:11:30 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-17 22:08:14 -0800 |
commit | 87fff3cacd0112bcaf42f932c1e44ae32b42f1fb (patch) | |
tree | e5b493e48cbfe56f55f2db00fa581f41430c13b9 /net/core/neighbour.c | |
parent | 5ab3121beeb76aa6090195b67d237115860dd9ec (diff) | |
download | linux-87fff3cacd0112bcaf42f932c1e44ae32b42f1fb.tar.bz2 |
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.c | 2 |
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. */ |