]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: return immediately on empty commit
authorFlorian Westphal <fw@strlen.de>
Thu, 7 Mar 2019 22:20:11 +0000 (23:20 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 11 Mar 2019 19:01:20 +0000 (20:01 +0100)
commite6d261bf943a5886df579c26a93821735e580a55
tree16094d0c30d365c1ef5a93e6ecc4139b9510b319
parentf71d621a3eb34ec7390f619438b7e471b0549c5e
netfilter: nf_tables: return immediately on empty commit

When running 'nft flush ruleset' while no rules exist, we will increment
the generation counter and announce a new genid to userspace, yet
nothing had changed in the first place.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c