From: Andrei Vagin <[email protected]> Date: Mon, 24 Oct 2016 19:09:53 -0700
> No one can see these events, because a network namespace can not be > destroyed, if it has sockets. > > Unlike other devices, uevent-s for network devices are generated > only inside their network namespaces. They are filtered in > kobj_bcast_filter() > > My experiments shows that net namespaces are destroyed more 30% faster > with this optimization. > > Here is a perf output for destroying network namespaces without this > patch. ... > It's very critical to optimize the exit path for network namespaces, > because they are destroyed under net_mutex and many namespaces can be > destroyed for one iteration. > > v2: use dev_set_uevent_suppress() > > Cc: Cong Wang <[email protected]> > Cc: "David S. Miller" <[email protected]> > Cc: Eric W. Biederman <[email protected]> > Signed-off-by: Andrei Vagin <[email protected]> Applied to net-next, thanks.

