From 161beaeacd2e5218d66febc3db825bf6a27119c5 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 15 Aug 2024 12:34:08 +0200 Subject: [PATCH] cache: rule by index requires full cache In preparation for on-demand cache population with errors, set on NFT_CACHE_FULL if rule index is used since this requires a full cache with rules. This is not a fix, index is already fetching a full cache before this patch. But follow up patches relax cache requirements, so add this patch in first place to make sure index does not break. Tested-by: Eric Garver Signed-off-by: Pablo Neira Ayuso --- src/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache.c b/src/cache.c index e88cbae2..42e60dfa 100644 --- a/src/cache.c +++ b/src/cache.c @@ -68,7 +68,7 @@ static unsigned int evaluate_cache_add(struct cmd *cmd, unsigned int flags) if (cmd->handle.index.id || cmd->handle.position.id) - flags |= NFT_CACHE_RULE | NFT_CACHE_UPDATE; + flags |= NFT_CACHE_FULL | NFT_CACHE_UPDATE; break; default: break; -- 2.47.3