From: Jiri Kosina <jikos@kernel.org>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
Florian Westphal <fw@strlen.de>,
NetFilter <netfilter-devel@vger.kernel.org>,
coreteam@netfilter.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
info@jablonka.cz, eric@regit.org
Subject: Re: [PATCH v2] netfilter: nf_ct_helper: warn when not applying default helper assignment
Date: Wed, 1 Feb 2017 20:43:51 +0100 (CET) [thread overview]
Message-ID: <alpine.LSU.2.20.1702012036110.4763@cbobk.fhfr.pm> (raw)
In-Reply-To: <20170201162704.GA3880@salvia>
On Wed, 1 Feb 2017, Pablo Neira Ayuso wrote:
> > +{
> > + struct nf_conntrack_helper *ret;
> > +
> > + if (!net->ct.sysctl_auto_assign_helper) {
> > + if (net->ct.auto_assign_helper_warned)
> > + return NULL;
> > + if (!find_auto_helper(ct))
>
> This fits in one line, so I think no need for find_auto_helper(), look:
It does, but OTOH we're calling the lookup more than once, and that for me
justifies extra function (with a descriptive name), so that we don't have
to change multiple places in case the data structure changes in the
future.
But I don't have a strong preference either way, so I'll change it.
> > + if (!ret || net->ct.auto_assign_helper_warned)
> > + return ret;
> > + pr_info("nf_conntrack: automatic helper assignment is deprecated and it will "
> > + "be removed soon. Use the iptables CT target to attach helpers "
> > + " instead.\n");
>
> You can probably remove this older message now if you prefer the new
> one you wrote, actually it's a bit redundant IMO.
Fair enough; we'll be issuing the warning in cases where actual "harm"
would be caused, and that should be enough.
I'll trim down the CC list a little bit and submit v3 shortly.
Thanks,
--
Jiri Kosina
SUSE Labs
next prev parent reply other threads:[~2017-02-01 19:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-24 0:06 [RFC PATCH 0/2] restore original default of nf_conntrack_helper sysctl Jiri Kosina
2017-01-24 1:09 ` Linus Torvalds
2017-01-24 1:28 ` Pablo Neira Ayuso
2017-01-24 7:40 ` [PATCH] netfilter: nf_ct_helper: warn when not applying default helper assignment (was Re: [RFC PATCH 0/2] restore original default of nf_conntrack_helper sysctl) Jiri Kosina
2017-01-24 10:17 ` [PATCH v2] netfilter: nf_ct_helper: warn when not applying default helper assignment Jiri Kosina
2017-01-25 19:13 ` Linus Torvalds
2017-01-25 20:43 ` Jiri Kosina
2017-01-26 5:40 ` Joe Perches
2017-02-01 16:27 ` Pablo Neira Ayuso
2017-02-01 19:43 ` Jiri Kosina [this message]
2017-02-01 20:01 ` [PATCH v3] " Jiri Kosina
2017-02-02 13:26 ` Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LSU.2.20.1702012036110.4763@cbobk.fhfr.pm \
--to=jikos@kernel.org \
--cc=coreteam@netfilter.org \
--cc=eric@regit.org \
--cc=fw@strlen.de \
--cc=info@jablonka.cz \
--cc=kadlec@blackhole.kfki.hu \
--cc=linux-kernel@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®