diff options
| author | Florian Westphal <fw@strlen.de> | 2025-09-10 10:02:20 +0200 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2025-09-10 20:30:37 +0200 |
| commit | 64102d9bbc3d41dac5188b8fba75b1344c438970 (patch) | |
| tree | e1c1220fac3cb3e11ebb5fcd65b729346c9c3242 /include/net/netns/nftables.h | |
| parent | a60f7bf4a1524d8896b76ba89623080aebf44272 (diff) | |
netfilter: nf_tables: place base_seq in struct net
This will soon be read from packet path around same time as the gencursor.
Both gencursor and base_seq get incremented almost at the same time, so
it makes sense to place them in the same structure.
This doesn't increase struct net size on 64bit due to padding.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include/net/netns/nftables.h')
| -rw-r--r-- | include/net/netns/nftables.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/netns/nftables.h b/include/net/netns/nftables.h index cc8060c017d5..99dd166c5d07 100644 --- a/include/net/netns/nftables.h +++ b/include/net/netns/nftables.h @@ -3,6 +3,7 @@ #define _NETNS_NFTABLES_H_ struct netns_nftables { + unsigned int base_seq; u8 gencursor; }; |