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

David Miller davem at davemloft.net
Sat Oct 22 21:00:04 UTC 2016


From: Andrei Vagin <avagin at openvz.org>
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);"


More information about the Containers mailing list