]> git.ipfire.org Git - thirdparty/nftables.git/commit
cache: do not populate cache if it is going to be flushed
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 9 Nov 2021 09:44:46 +0000 (10:44 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 11 Nov 2021 09:55:29 +0000 (10:55 +0100)
commitdffc0e109ed4780c6d79c52fb5be8cda2d63fc6b
tree6e70f590d1b7d6b4606e9b11e0254743a0c0235e
parent88e53b5dac2b55905dbf86d7def2fee51bf2a8dd
cache: do not populate cache if it is going to be flushed

Skip set element netlink dump if set is flushed, this speeds up
set flush + add element operation in a batch file for an existing set.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/cache.h
src/cache.c
src/libnftables.c