Phil Sutter <p...@nwl.cc> 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 <f...@strlen.de>

Reply via email to