Commit 87fff3ca authored by Yang Wei's avatar Yang Wei Committed by David S. Miller
Browse files

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: default avatarYang Wei <yang.wei9@zte.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5ab3121b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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. */