Skip to content

Commit

Permalink
netfilter: xtables: reduce holes in struct xt_target
Browse files Browse the repository at this point in the history
This will save one full padding chunk (8 bytes on x86_64) per target.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
  • Loading branch information
Jan Engelhardt committed Mar 18, 2010
1 parent 4f948db commit f5c511c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/netfilter/x_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ struct xt_target {
struct list_head list;

const char name[XT_FUNCTION_MAXNAMELEN-1];
u_int8_t revision;

/* Returns verdict. Argument order changed since 2.6.9, as this
must now handle non-linear skbs, using skb_copy_bits and
Expand Down Expand Up @@ -363,7 +364,6 @@ struct xt_target {
unsigned short proto;

unsigned short family;
u_int8_t revision;
};

/* Furniture shopping... */
Expand Down

0 comments on commit f5c511c

Please sign in to comment.