]> git.ipfire.org Git - thirdparty/nftables.git/commit
cache: position does not require full cache
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 29 Aug 2024 10:42:17 +0000 (12:42 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 23 Jan 2025 00:35:37 +0000 (01:35 +0100)
commit2f32341221d34ff05eeb9c9ca289388646aece70
treecb40b3e3bc5e805ed5a65b89dfda471c3a0efff8
parentb3c2df6432592fabe793cad5119cb590f370f717
cache: position does not require full cache

commit d414f756af9d638fe0c0002b2df31c8c17a15002 upstream.

position refers to the rule handle, it has similar cache requirements as
replace rule command, relax cache requirements.

Commit e5382c0d08e3 ("src: Support intra-transaction rule references")
uses position.id for index support which requires a full cache, but
only in such case.

Fixes: 01e5c6f0ed03 ("src: add cache level flags")
Tested-by: Eric Garver <eric@garver.life>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/cache.c