Skip to content

Commit

Permalink
macvlan: replace kfree_skb by consume_skb for drop profiles
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 87fff3c commit bf97403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/macvlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ static void macvlan_process_broadcast(struct work_struct *w)

if (src)
dev_put(src->dev);
kfree_skb(skb);
consume_skb(skb);
}
}

Expand Down

0 comments on commit bf97403

Please sign in to comment.