]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: nftables: add loop check helper function
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 27 Apr 2021 16:05:41 +0000 (18:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Jan 2024 17:48:04 +0000 (18:48 +0100)
commitcf3c516dec827f72e014c1011238a4a1f030dd11
tree9c684a236280161db54630f628f9441a4ee57297
parent4366b7e1f541153c87110a6d43d9276a8470cfa3
netfilter: nftables: add loop check helper function

[ Upstream commit 6387aa6e59be8d1158c5703f34553c93d7743d8c ]

This patch adds nft_check_loops() to reuse it in the new catch-all
element codebase.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Stable-dep-of: b29be0ca8e81 ("netfilter: nft_immediate: drop chain reference counter on error")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nf_tables_api.c