|
@@ -63,10 +63,6 @@ out_undo:
|
|
|
goto out;
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_NET_NS
|
|
|
-static struct kmem_cache *net_cachep;
|
|
|
-static struct workqueue_struct *netns_wq;
|
|
|
-
|
|
|
static struct net_generic *net_alloc_generic(void)
|
|
|
{
|
|
|
struct net_generic *ng;
|
|
@@ -80,6 +76,10 @@ static struct net_generic *net_alloc_generic(void)
|
|
|
return ng;
|
|
|
}
|
|
|
|
|
|
+#ifdef CONFIG_NET_NS
|
|
|
+static struct kmem_cache *net_cachep;
|
|
|
+static struct workqueue_struct *netns_wq;
|
|
|
+
|
|
|
static struct net *net_alloc(void)
|
|
|
{
|
|
|
struct net *net = NULL;
|