neighbour: Do not perturb drop profiles when neigh_probe
authorYang Wei <yang.wei9@zte.com.cn>
Thu, 17 Jan 2019 15:11:30 +0000 (23:11 +0800)
committerDavid 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

index 96fdc91347266e23290775fa8fbe0524fd3192fd..4230400b9a309fb7c317d7ec7230a0db17f4ac3d 100644 (file)
@@ -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. */