]> 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>
Thu, 23 Jan 2025 00:35:37 +0000 (01:35 +0100)
commit 53a503ad4a1abfa0374b3d12e884b69dc6df4b4f upstream.

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 de5728e5317ccd990602b89a6ade5a43296998a4..207ed514cb3103e9175f58dcf55e20d910c3e3ea 100644 (file)
@@ -385,8 +385,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;