]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/net/net_namespace.h
netns: add and use net_ns_barrier
[mirror_ubuntu-artful-kernel.git] / include / net / net_namespace.h
index fe80bb48ab1f0c7b1665a10a9bf2388b32eb5013..a24a57593202456dd3e25ce1891f70c33ccd7ffe 100644 (file)
@@ -158,6 +158,7 @@ extern struct net init_net;
 struct net *copy_net_ns(unsigned long flags, struct user_namespace *user_ns,
                        struct net *old_net);
 
+void net_ns_barrier(void);
 #else /* CONFIG_NET_NS */
 #include <linux/sched.h>
 #include <linux/nsproxy.h>
@@ -168,6 +169,8 @@ static inline struct net *copy_net_ns(unsigned long flags,
                return ERR_PTR(-EINVAL);
        return old_net;
 }
+
+static inline void net_ns_barrier(void) {}
 #endif /* CONFIG_NET_NS */