datapath: Prevent linker error of unknown symbol.
[cascardo/ovs.git] / datapath / linux / compat / net_namespace.c
index 1fba3b1..4a9b1d6 100644 (file)
@@ -5,7 +5,7 @@
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
 
-int compat_init_net(struct net *net, struct rpl_pernet_operations *pnet)
+int ovs_compat_init_net(struct net *net, struct rpl_pernet_operations *pnet)
 {
        int err;
        void *ovs_net = kzalloc(pnet->size, GFP_KERNEL);
@@ -28,8 +28,9 @@ err:
        kfree(ovs_net);
        return err;
 }
+EXPORT_SYMBOL_GPL(ovs_compat_init_net);
 
-void compat_exit_net(struct net *net, struct rpl_pernet_operations *pnet)
+void ovs_compat_exit_net(struct net *net, struct rpl_pernet_operations *pnet)
 {
        void *ovs_net = net_generic(net, *pnet->id);
 
@@ -37,4 +38,6 @@ void compat_exit_net(struct net *net, struct rpl_pernet_operations *pnet)
                pnet->exit(net);
        kfree(ovs_net);
 }
+EXPORT_SYMBOL_GPL(ovs_compat_exit_net);
+
 #endif