From: Pablo Neira Ayuso Date: Thu, 29 Aug 2024 10:42:12 +0000 (+0200) Subject: cache: remove full cache requirement when echo flag is set on X-Git-Tag: v1.1.1~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=53a503ad4a1abfa0374b3d12e884b69dc6df4b4f;p=thirdparty%2Fnftables.git cache: remove full cache requirement when echo flag is set on The echo flag does not use the cache infrastructure yet, it relies on the monitor cache which follows the netlink_echo_callback() path. Fixes: 01e5c6f0ed03 ("src: add cache level flags") Tested-by: Eric Garver Signed-off-by: Pablo Neira Ayuso --- diff --git a/src/cache.c b/src/cache.c index bed98bb7..fce71eed 100644 --- a/src/cache.c +++ b/src/cache.c @@ -493,8 +493,6 @@ int nft_cache_evaluate(struct nft_ctx *nft, struct list_head *cmds, case CMD_INSERT: case CMD_CREATE: flags = evaluate_cache_add(cmd, flags); - if (nft_output_echo(&nft->output)) - flags |= NFT_CACHE_FULL; break; case CMD_REPLACE: flags = NFT_CACHE_FULL;