Skip to content

Commit bf97403

Browse files
Yang Weidavem330
authored andcommitted
macvlan: replace kfree_skb by consume_skb for drop profiles
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 87fff3c commit bf97403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/macvlan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ static void macvlan_process_broadcast(struct work_struct *w)
337337

338338
if (src)
339339
dev_put(src->dev);
340-
kfree_skb(skb);
340+
consume_skb(skb);
341341
}
342342
}
343343

0 commit comments

Comments
 (0)