From: Yang Wei Date: Thu, 17 Jan 2019 15:30:03 +0000 (+0800) Subject: macvlan: replace kfree_skb by consume_skb for drop profiles X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bf97403ac4bfbc9f9f92f47e737aee983d9191f5;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index fc726ce4c164..6d067176320f 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c @@ -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); } }