Skip to content

netfilter: conntrack: Add and use nf_ct_set_auto_assign_helper_warned()

Phil Sutter requested to merge psutter1/centos-stream-9:rhel9/bz2069114 into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2069114 Upstream Status: commit 31d0bb9763efa Conflicts: Context change in nf_conntrack_helper.c due to missing commit 1015c3de23eed ("netfilter: conntrack: remove extension register api"). Build Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=44185838 Tested: In netns using BZ instructions: nft ruleset loads nf_conntrack_ftp, no warning in dmesg.

commit 31d0bb9763efad30377505f3467f958d1ebe1e3d Author: Phil Sutter phil@nwl.cc Date: Wed Mar 2 22:02:55 2022 +0100

netfilter: conntrack: Add and use nf_ct_set_auto_assign_helper_warned()

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: Phil Sutter psutter@redhat.com

Merge request reports