Skip to content

Commit 87fff3c

Browse files
Yang Weidavem330
authored andcommitted
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>
1 parent 5ab3121 commit 87fff3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/neighbour.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ static void neigh_probe(struct neighbour *neigh)
10071007
if (neigh->ops->solicit)
10081008
neigh->ops->solicit(neigh, skb);
10091009
atomic_inc(&neigh->probes);
1010-
kfree_skb(skb);
1010+
consume_skb(skb);
10111011
}
10121012

10131013
/* Called when a timer expires for a neighbour entry. */

0 commit comments

Comments
 (0)