macvlan: replace kfree_skb by consume_skb for drop profiles
authorYang Wei <yang.wei9@zte.com.cn>
Thu, 17 Jan 2019 15:30:03 +0000 (23:30 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jan 2019 06:09:09 +0000 (22:09 -0800)
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>
drivers/net/macvlan.c

index fc726ce4c164efaa30e713529f217a40c548a9ec..6d067176320fe845e5ef5804044c55614b5392fd 100644 (file)
@@ -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);
        }
 }