[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20161022.170004.211874574494014545.davem@davemloft.net>
Date: Sat, 22 Oct 2016 17:00:04 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: avagin@...nvz.org
Cc: ebiederm@...ssion.com, containers@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH] net: skip genenerating uevents for network namespaces
that are exiting
From: Andrei Vagin <avagin@...nvz.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);"
Powered by blists - more mailing lists