]> git.baikalelectronics.ru Git - kernel.git/commit
net: Add support for batching network namespace cleanups
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 3 Dec 2009 02:29:03 +0000 (02:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2009 20:22:01 +0000 (12:22 -0800)
commitcf86ca59d01c3193b26aa33c90803be4a6d67440
treeac81af750df170a46ed001fb5647b83dc20f8422
parentcf15cb33980398556d641d5b225600344e83a8b8
net: Add support for batching network namespace cleanups

- Add exit_list to struct net to support building lists of network
  namespaces to cleanup.

- Add exit_batch to pernet_operations to allow running operations only
  once during a network namespace exit.  Instead of once per network
  namespace.

- Factor opt ops_exit_list and ops_exit_free so the logic with cleanup
  up a network namespace does not need to be duplicated.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/net_namespace.h
net/core/net_namespace.c