netfilter: nf_tables: compact chain+ft transaction objects

Cover holes to reduce both structures by 8 byte.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
Florian Westphal 2024-05-13 15:00:43 +02:00 committed by Pablo Neira Ayuso
parent 17d8f3ad36
commit b3f4c216f7

View File

@ -1687,10 +1687,10 @@ struct nft_trans_set {
struct nft_trans_chain {
struct nft_trans_binding nft_trans_binding;
struct nft_chain *chain;
bool update;
char *name;
struct nft_stats __percpu *stats;
u8 policy;
bool update;
bool bound;
u32 chain_id;
struct nft_base_chain *basechain;
@ -1763,9 +1763,9 @@ struct nft_trans_obj {
struct nft_trans_flowtable {
struct nft_trans nft_trans;
struct nft_flowtable *flowtable;
bool update;
struct list_head hook_list;
u32 flags;
bool update;
};
#define nft_trans_container_flowtable(t) \