]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: nf_tables: place base_seq in struct net
authorFlorian Westphal <fw@strlen.de>
Wed, 10 Sep 2025 08:02:20 +0000 (10:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Sep 2025 14:37:37 +0000 (16:37 +0200)
commitd68ec0dfc30b38a22379209167a279d5eeca3860
treeefea9aab0bde706eb7698ed23735c85892c6ea63
parent3bc63fbb4151c7a2389823c1c3e87ba24e39dd57
netfilter: nf_tables: place base_seq in struct net

[ Upstream commit 64102d9bbc3d41dac5188b8fba75b1344c438970 ]

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>
Stable-dep-of: b2f742c846ca ("netfilter: nf_tables: restart set lookup on base_seq change")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/netfilter/nf_tables.h
include/net/netns/nftables.h
net/netfilter/nf_tables_api.c