Re: [PATCH] net: skip genenerating uevents for network namespaces that are exiting

From: David Miller
Date: Sat Oct 22 2016 - 17:00:37 EST


From: Andrei Vagin <avagin@xxxxxxxxxx>
Date: Thu, 20 Oct 2016 19:46:26 -0700

> @@ -1525,6 +1530,9 @@ void netdev_unregister_kobject(struct net_device *ndev)
> {
> struct device *dev = &(ndev->dev);
>
> + if (!list_empty(&dev_net(ndev)->exit_list))
> + dev->kobj.uevent_suppress = 1;
> +

Please use "dev_set_uevent_suppress(dev, 1);"