diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-01-09 17:11:20 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-01-09 23:35:17 +0100 |
commit | 642c8eff5c6099dfde386ca3906fa55dc98f9ade (patch) | |
tree | 04c4d006e6ea50658340e035e6e17eaae052a9fd /include | |
parent | netfilter: nf_tables: add rule blob layout (diff) | |
download | linux-642c8eff5c6099dfde386ca3906fa55dc98f9ade.tar.xz linux-642c8eff5c6099dfde386ca3906fa55dc98f9ade.zip |
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: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/netfilter/nf_tables.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h index 5a046b01bdab..515e5db97e01 100644 --- a/include/net/netfilter/nf_tables.h +++ b/include/net/netfilter/nf_tables.h @@ -105,6 +105,8 @@ struct nft_data { }; } __attribute__((aligned(__alignof__(u64)))); +#define NFT_REG32_NUM 20 + /** * struct nft_regs - nf_tables register set * @@ -115,7 +117,7 @@ struct nft_data { */ struct nft_regs { union { - u32 data[20]; + u32 data[NFT_REG32_NUM]; struct nft_verdict verdict; }; }; |