From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DEAFBC433EF for ; Sat, 19 Feb 2022 14:02:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231447AbiBSODQ (ORCPT ); Sat, 19 Feb 2022 09:03:16 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:54960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229626AbiBSODP (ORCPT ); Sat, 19 Feb 2022 09:03:15 -0500 Received: from orbyte.nwl.cc (orbyte.nwl.cc [IPv6:2001:41d0:e:133a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62FE75AEF5 for ; Sat, 19 Feb 2022 06:02:56 -0800 (PST) Received: from n0-1 by orbyte.nwl.cc with local (Exim 4.94.2) (envelope-from ) id 1nLQK6-0002z7-7Y; Sat, 19 Feb 2022 15:02:54 +0100 Date: Sat, 19 Feb 2022 15:02:54 +0100 From: Phil Sutter To: Florian Westphal Cc: Pablo Neira Ayuso , netfilter-devel@vger.kernel.org Subject: Re: [nf-next PATCH] netfilter: conntrack: Relax helper auto-assignment warning for nftables Message-ID: Mail-Followup-To: Phil Sutter , Florian Westphal , Pablo Neira Ayuso , netfilter-devel@vger.kernel.org References: <20220219132024.29328-1-phil@nwl.cc> <20220219132547.GA27537@breakpoint.cc> <20220219134159.GB27537@breakpoint.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220219134159.GB27537@breakpoint.cc> Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org On Sat, Feb 19, 2022 at 02:41:59PM +0100, Florian Westphal wrote: > Phil Sutter wrote: > > I tried, but nf_ct_pernet() is not usable from module context, or > > actually symbol nf_conntrack_net_id. So I had to introduce a routine to > > set the value. On the other hand I didn't like the fact that it would > > permanently disable the warning even after 'nft flush ruleset' > > (nit-picking). > > I can recover that approach and send a v2 if you think (re-)using refcnt > > is a bad idea here. > > I think its a good idea to add a helper function disable the warning. > > We can also call it from xt_CT.c. OK, I'll prepare a v2. Thanks!