Skip to content

Commit

Permalink
neighbour: Do not perturb drop profiles when neigh_probe
Browse files Browse the repository at this point in the history
Replace the kfree_skb() by consume_skb() to be drop monitor(dropwatch,
perf) friendly.

Signed-off-by: Yang Wei <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Yang Wei authored and davem330 committed Jan 18, 2019
1 parent 5ab3121 commit 87fff3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/neighbour.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 87fff3c

Please sign in to comment.