mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 16:53:54 +08:00
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>
This commit is contained in:
parent
2c865a8a28
commit
642c8eff5c
@ -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;
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user