net: Add support for batching network namespace cleanups
[firefly-linux-kernel-4.4.55.git] / include / net / net_namespace.h
index 24a8c5591f633c8ff505c46d980b3fdab3776db2..f307e133d14c77567306dc7089630b75d9edb743 100644 (file)
@@ -43,6 +43,7 @@ struct net {
 #endif
        struct list_head        list;           /* list of network namespaces */
        struct list_head        cleanup_list;   /* namespaces on death row */
+       struct list_head        exit_list;      /* Use only net_mutex */
 
        struct proc_dir_entry   *proc_net;
        struct proc_dir_entry   *proc_net_stat;
@@ -236,6 +237,7 @@ struct pernet_operations {
        struct list_head list;
        int (*init)(struct net *net);
        void (*exit)(struct net *net);
+       void (*exit_batch)(struct list_head *net_exit_list);
        int *id;
        size_t size;
 };