Add a definition including the maximum number of 32-bits registers that are used a scratchpad memory area to store data.
Showing the changes to include (1 of 1 file). Show all
Unified · Split
| @@ -105,6 +105,8 @@ struct nft_data { · 104 unmodified lines | ||
| 105 | 105 | }; |
| 106 | 106 | } __attribute__((aligned(__alignof__(u64)))); |
| 107 | 107 | |
| 108 | +#define NFT_REG32_NUM 20 | |
| 109 | + | |
| 108 | 110 | /** |
| 109 | 111 | * struct nft_regs - nf_tables register set |
| 110 | 112 | * |
| @@ -115,7 +117,7 @@ struct nft_data { · 4 unmodified lines | ||
| 115 | 117 | */ |
| 116 | 118 | struct nft_regs { |
| 117 | 119 | union { |
| 118 | − u32 data[20]; | |
| 120 | + u32 data[NFT_REG32_NUM]; | |
| 119 | 121 | struct nft_verdict verdict; |
| 120 | 122 | }; |
| 121 | 123 | }; |