Skip to content

Commit f5c511c

Browse files
author
Jan Engelhardt
committed
netfilter: xtables: reduce holes in struct xt_target
This will save one full padding chunk (8 bytes on x86_64) per target. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
1 parent 4f948db commit f5c511c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/netfilter/x_tables.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ struct xt_target {
331331
struct list_head list;
332332

333333
const char name[XT_FUNCTION_MAXNAMELEN-1];
334+
u_int8_t revision;
334335

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

365366
unsigned short family;
366-
u_int8_t revision;
367367
};
368368

369369
/* Furniture shopping... */

0 commit comments

Comments
 (0)