Phil Sutter <phil@xxxxxx> wrote: > Unless --noflush was given, xtables-restore merely needs the list of > tables to decide whether to delete it or not. Introduce nft_fake_cache() > function which populates table list, initializes chain lists (so > nft_chain_list_get() returns an empty list instead of NULL) and sets > 'have_cache' to turn any later calls to nft_build_cache() into nops. > > If --noflush was given, call nft_build_cache() just once instead of for > each table line in input. LGTM. Acked-by: Florian Westphal <fw@xxxxxxxxx>