netfilter: x_tables: change elements in x_tables
authorStephen Hemminger <shemminger@vyatta.com>
Wed, 18 Feb 2009 15:29:44 +0000 (16:29 +0100)
committerPatrick McHardy <kaber@trash.net>
Wed, 18 Feb 2009 15:29:44 +0000 (16:29 +0100)
Change to proper type on private pointer rather than anonymous void.
Keep active elements on same cache line.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/netfilter/x_tables.h

index c7ee8744d26bb11567d4b789ca0221dc99985c7c..9fac88fc0e7206e68147a3ebd09cce0bfc7d14f7 100644 (file)
@@ -349,9 +349,6 @@ struct xt_table
 {
        struct list_head list;
 
-       /* A unique name... */
-       const char name[XT_TABLE_MAXNAMELEN];
-
        /* What hooks you will enter on */
        unsigned int valid_hooks;
 
@@ -359,13 +356,15 @@ struct xt_table
        rwlock_t lock;
 
        /* Man behind the curtain... */
-       //struct ip6t_table_info *private;
-       void *private;
+       struct xt_table_info *private;
 
        /* Set this to THIS_MODULE if you are a module, otherwise NULL */
        struct module *me;
 
        u_int8_t af;            /* address/protocol family */
+
+       /* A unique name... */
+       const char name[XT_TABLE_MAXNAMELEN];
 };
 
 #include <linux/netfilter_ipv4.h>