Commit 642c8eff authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso

netfilter: nf_tables: add NFT_REG32_NUM

Add a definition including the maximum number of 32-bits registers that
are used a scratchpad memory area to store data.
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 2c865a8a
...@@ -105,6 +105,8 @@ struct nft_data { ...@@ -105,6 +105,8 @@ struct nft_data {
}; };
} __attribute__((aligned(__alignof__(u64)))); } __attribute__((aligned(__alignof__(u64))));
#define NFT_REG32_NUM 20
/** /**
* struct nft_regs - nf_tables register set * struct nft_regs - nf_tables register set
* *
...@@ -115,7 +117,7 @@ struct nft_data { ...@@ -115,7 +117,7 @@ struct nft_data {
*/ */
struct nft_regs { struct nft_regs {
union { union {
u32 data[20]; u32 data[NFT_REG32_NUM];
struct nft_verdict verdict; struct nft_verdict verdict;
}; };
}; };
......
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