]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:16 +0000 (18:36 +0200)
commitbed71150aaf692e5afe44dbbc2c36ebd1c3096dd
treef56085499132e0ecf9e26c786c0fa12075167cc9
parentc536389dda6c34b44c38473c3aacf359b80282a1
netfilter: nf_tables: delete flowtable hooks via transaction list

[ Upstream commit bae64cf41cddcf2805d7c41ef7bdf9245006c9b5 ]

Remove inactive bool field in nft_hook object that was introduced in
6a32264e7707 ("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: 6a32264e7707 ("netfilter: nf_tables: delete devices from flowtable")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/netfilter/nf_tables.h
net/netfilter/nf_tables_api.c