projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c865a8
)
netfilter: nf_tables: add NFT_REG32_NUM
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Sun, 9 Jan 2022 16:11:20 +0000
(17:11 +0100)
committer
Pablo Neira Ayuso
<pablo@netfilter.org>
Sun, 9 Jan 2022 22:35:17 +0000
(23:35 +0100)
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>
include/net/netfilter/nf_tables.h
patch
|
blob
|
history
diff --git
a/include/net/netfilter/nf_tables.h
b/include/net/netfilter/nf_tables.h
index
5a046b0
..
515e5db
100644
(file)
--- 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;
};
};