netns: Use net_eq() to compare net-namespaces for optimization.
[pandora-kernel.git] / net / ipx / sysctl_net_ipx.c
index fa57473..92fef86 100644 (file)
@@ -28,31 +28,17 @@ static struct ctl_table ipx_table[] = {
        { 0 },
 };
 
-static struct ctl_table ipx_dir_table[] = {
-       {
-               .ctl_name       = NET_IPX,
-               .procname       = "ipx",
-               .mode           = 0555,
-               .child          = ipx_table,
-               },
-       { 0 },
-};
-
-static struct ctl_table ipx_root_table[] = {
-       {
-               .ctl_name       = CTL_NET,
-               .procname       = "net",
-               .mode           = 0555,
-               .child          = ipx_dir_table,
-       },
-       { 0 },
+static struct ctl_path ipx_path[] = {
+       { .procname = "net", .ctl_name = CTL_NET, },
+       { .procname = "ipx", .ctl_name = NET_IPX, },
+       { }
 };
 
 static struct ctl_table_header *ipx_table_header;
 
 void ipx_register_sysctl(void)
 {
-       ipx_table_header = register_sysctl_table(ipx_root_table, 1);
+       ipx_table_header = register_sysctl_paths(ipx_path, ipx_table);
 }
 
 void ipx_unregister_sysctl(void)