netfilter: conntrack: Add and use nf_ct_set_auto_assign_helper_warned()
authorPhil Sutter <phil@nwl.cc>
Wed, 2 Mar 2022 21:02:55 +0000 (22:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:42 +0000 (14:23 +0200)
commit0ee072f91326d4a616098fb55c9e0e8e6a399642
treef97b39500864629ded249b32503e166526bdd270
parent9b2bbf36b9cff18c4469c0f016b023adc27904d8
netfilter: conntrack: Add and use nf_ct_set_auto_assign_helper_warned()

[ Upstream commit 31d0bb9763efad30377505f3467f958d1ebe1e3d ]

The function sets the pernet boolean to avoid the spurious warning from
nf_ct_lookup_helper() when assigning conntrack helpers via nftables.

Fixes: 1a64edf54f55 ("netfilter: nft_ct: add helper set support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/net/netfilter/nf_conntrack_helper.h
net/netfilter/nf_conntrack_helper.c
net/netfilter/nft_ct.c