netfilter: nf_tables: delete flowtable hooks via transaction list
authorPablo Neira Ayuso <pablo@netfilter.org>
Mon, 30 May 2022 16:40:06 +0000 (18:40 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 2 Jun 2022 07:49:49 +0000 (09:49 +0200)
commitb6d9014a3335194590abdd2a2471ef5147a67645
tree81fdc2ff0e670755b9cf091f4f00ecdaecb80ed4
parentab5e5c062f67c5ae8cd07f0632ffa62dc0e7d169
netfilter: nf_tables: delete flowtable hooks via transaction list

Remove inactive bool field in nft_hook object that was introduced in
abadb2f865d7 ("netfilter: nf_tables: delete devices from flowtable").
Move stale flowtable hooks to transaction list instead.

Deleting twice the same device does not result in ENOENT.

Fixes: abadb2f865d7 ("netfilter: nf_tables: delete devices from flowtable")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c