All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: Yi-Hung Wei <yihung.wei@gmail.com>
Cc: Florian Westphal <fw@strlen.de>, netfilter-devel@vger.kernel.org
Subject: Re: [PATCH v3 nf-next] netfilter: connlimit: split xt_connlimit into front/backend
Date: Fri, 8 Dec 2017 07:40:50 +0100	[thread overview]
Message-ID: <20171208064050.GF24449@breakpoint.cc> (raw)
In-Reply-To: <CAG1aQh+TyBTXsCO0Whtfs12=tpnc8n4kBkVDMGcu0wWbfnt31g@mail.gmail.com>

Yi-Hung Wei <yihung.wei@gmail.com> wrote:
> On Wed, Dec 6, 2017 at 4:41 AM, Florian Westphal <fw@strlen.de> wrote:
> > +static int __init nf_conncount_modinit(void)
> > +{
> > +       int ret, i;
> > +
> > +       BUILD_BUG_ON(CONNCOUNT_LOCK_SLOTS > CONNCOUNT_SLOTS);
> > +       BUILD_BUG_ON((CONNCOUNT_SLOTS % CONNCOUNT_LOCK_SLOTS) != 0);
> > +
> > +       return ret;
> I test it with iptables -m connlimit, and nf_conncount may fail to
> load sometimes.
> 
> It turns out that it is because ret is not used in this function.
> Shall we get rid of ret, and return 0 here?

Yes.

      reply	other threads:[~2017-12-08  6:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-06 12:41 [PATCH v3 nf-next] netfilter: connlimit: split xt_connlimit into front/backend Florian Westphal
2017-12-08  6:06 ` Yi-Hung Wei
2017-12-08  6:40   ` Florian Westphal [this message]

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=20171208064050.GF24449@breakpoint.cc \
    --to=fw@strlen.de \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=yihung.wei@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.