datapath: remove net namespace
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Thu, 21 Jul 2016 18:14:14 +0000 (11:14 -0700)
committerPravin B Shelar <pshelar@ovn.org>
Tue, 26 Jul 2016 03:58:12 +0000 (20:58 -0700)
The code that used that module was already removed when some support for Linux
older than 3.10 was removed.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
datapath/linux/Modules.mk
datapath/linux/compat/net_namespace.c [deleted file]

index 8f30fe1..b0e4618 100644 (file)
@@ -15,7 +15,6 @@ openvswitch_sources += \
        linux/compat/ip6_output.c \
        linux/compat/lisp.c \
        linux/compat/netdevice.c \
-       linux/compat/net_namespace.c \
        linux/compat/nf_conntrack_core.c \
        linux/compat/nf_conntrack_reasm.c \
        linux/compat/reassembly.c \
diff --git a/datapath/linux/compat/net_namespace.c b/datapath/linux/compat/net_namespace.c
deleted file mode 100644 (file)
index 4a9b1d6..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#include <linux/if_vlan.h>
-#include <linux/netdevice.h>
-#include <net/net_namespace.h>
-#include <net/netns/generic.h>
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
-
-int ovs_compat_init_net(struct net *net, struct rpl_pernet_operations *pnet)
-{
-       int err;
-       void *ovs_net = kzalloc(pnet->size, GFP_KERNEL);
-
-       if (!ovs_net)
-               return -ENOMEM;
-
-       err = net_assign_generic(net, *pnet->id, ovs_net);
-       if (err)
-               goto err;
-
-       if (pnet->init) {
-               err = pnet->init(net);
-               if (err)
-                       goto err;
-       }
-
-       return 0;
-err:
-       kfree(ovs_net);
-       return err;
-}
-EXPORT_SYMBOL_GPL(ovs_compat_init_net);
-
-void ovs_compat_exit_net(struct net *net, struct rpl_pernet_operations *pnet)
-{
-       void *ovs_net = net_generic(net, *pnet->id);
-
-       if (pnet->exit)
-               pnet->exit(net);
-       kfree(ovs_net);
-}
-EXPORT_SYMBOL_GPL(ovs_compat_exit_net);
-
-#endif