diff options
author | Phil Sutter <phil@nwl.cc> | 2020-04-07 13:47:54 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2020-05-11 14:28:28 +0200 |
commit | b301f2ed198804015c4434f925c75e0bd224c4ef (patch) | |
tree | a7759ad8abf9f4c35e892f06d587c561f72fe0b3 /iptables/xtables-restore.c | |
parent | c63b7643bb433abdb55d934029eaa51451cb1b8c (diff) |
nft: cache: Improve fake cache integration
With NFT_CL_FAKE being highest cache level while at the same time
__nft_build_cache() treating it equal to NFT_CL_TABLES, no special
handling for fake cache is required anymore.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'iptables/xtables-restore.c')
-rw-r--r-- | iptables/xtables-restore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c index 0b0febdf..28ef366c 100644 --- a/iptables/xtables-restore.c +++ b/iptables/xtables-restore.c @@ -261,7 +261,7 @@ void xtables_restore_parse(struct nft_handle *h, char buffer[10240] = {}; if (!h->noflush) - nft_fake_cache(h); + nft_cache_level_set(h, NFT_CL_FAKE); line = 0; while (fgets(buffer, sizeof(buffer), p->in)) { |