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

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