]> git.baikalelectronics.ru Git - kernel.git/commit
netns: Delete virtual interfaces during namespace cleanup
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 5 Nov 2008 23:59:38 +0000 (15:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Nov 2008 23:59:38 +0000 (15:59 -0800)
commitfd0bb7c5220f2ef180da86a06e45fbb2b66cb39c
treea101a51c9158e4ed4ce335e6c68a555e631280f6
parent510139e34b63aab16b628b7fa67d32e5e3f8b788
netns: Delete virtual interfaces during namespace cleanup

When physical devices are inside of network namespace and that
network namespace terminates we can not make them go away.  We
have to keep them and moving them to the initial network namespace
is the best we can do.

For virtual devices left in a network namespace that is exiting
we have no need to preserve them and we now have the infrastructure
that allows us to delete them.  So delete virtual devices when we
exit a network namespace.  Keeping the necessary user space clean up
after a network namespace exits much more tractable.

Acked-by: Daniel Lezcano <dlezcano@fr.ibm.com>
Acked-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c