diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-08-29 12:42:17 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2024-08-30 12:34:17 +0200 |
commit | d414f756af9d638fe0c0002b2df31c8c17a15002 (patch) | |
tree | 7d60d32ea8920ab79b56431523cf9e26f47e748d | |
parent | 4984da8cc427974ea63796fa60a791b714a71440 (diff) |
cache: position does not require full cache
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>
-rw-r--r-- | src/cache.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cache.c b/src/cache.c index b738a633..c8ef1603 100644 --- a/src/cache.c +++ b/src/cache.c @@ -58,8 +58,7 @@ static unsigned int evaluate_cache_add(struct cmd *cmd, unsigned int flags) flags |= NFT_CACHE_TABLE | NFT_CACHE_SET; - if (cmd->handle.index.id || - cmd->handle.position.id) + if (cmd->handle.index.id) flags |= NFT_CACHE_FULL | NFT_CACHE_UPDATE; break; default: |