Commit 4a2f965c authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Patrick McHardy

netfilter: x_tables: change elements in x_tables

Change to proper type on private pointer rather than anonymous void.
Keep active elements on same cache line.
Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent fecea3a3
...@@ -349,9 +349,6 @@ struct xt_table ...@@ -349,9 +349,6 @@ struct xt_table
{ {
struct list_head list; struct list_head list;
/* A unique name... */
const char name[XT_TABLE_MAXNAMELEN];
/* What hooks you will enter on */ /* What hooks you will enter on */
unsigned int valid_hooks; unsigned int valid_hooks;
...@@ -359,13 +356,15 @@ struct xt_table ...@@ -359,13 +356,15 @@ struct xt_table
rwlock_t lock; rwlock_t lock;
/* Man behind the curtain... */ /* Man behind the curtain... */
//struct ip6t_table_info *private; struct xt_table_info *private;
void *private;
/* Set this to THIS_MODULE if you are a module, otherwise NULL */ /* Set this to THIS_MODULE if you are a module, otherwise NULL */
struct module *me; struct module *me;
u_int8_t af; /* address/protocol family */ u_int8_t af; /* address/protocol family */
/* A unique name... */
const char name[XT_TABLE_MAXNAMELEN];
}; };
#include <linux/netfilter_ipv4.h> #include <linux/netfilter_ipv4.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment