]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
cache: remove full cache requirement when echo flag is set on
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 29 Aug 2024 10:42:12 +0000 (12:42 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 30 Aug 2024 10:30:32 +0000 (12:30 +0200)
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 <eric@garver.life>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/cache.c

index bed98bb71655034b57221a7bf679a3782720c224..fce71eed3452f4789ed4aa3d47c04b19cb1dcea5 100644 (file)
@@ -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;