diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2022-05-30 18:40:06 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-14 18:32:39 +0200 |
commit | 7a248f9c74f9f62799718c12efd9e9e391d60b6f (patch) | |
tree | 93367d0cae68df943a45ea98af01f48989a589d3 /include | |
parent | 9edafbc7ec29a36655df43349c2ec569902261f0 (diff) | |
download | linux-stable-7a248f9c74f9f62799718c12efd9e9e391d60b6f.tar.gz linux-stable-7a248f9c74f9f62799718c12efd9e9e391d60b6f.tar.bz2 linux-stable-7a248f9c74f9f62799718c12efd9e9e391d60b6f.zip |
netfilter: nf_tables: delete flowtable hooks via transaction list
[ Upstream commit b6d9014a3335194590abdd2a2471ef5147a67645 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/netfilter/nf_tables.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h index 76bfb6cd5815..b7907385a02f 100644 --- a/include/net/netfilter/nf_tables.h +++ b/include/net/netfilter/nf_tables.h @@ -1013,7 +1013,6 @@ struct nft_stats { struct nft_hook { struct list_head list; - bool inactive; struct nf_hook_ops ops; struct rcu_head rcu; }; |