Linux Netfilter development
 help / color / mirror / Atom feed
From: Jeremy Sowden <jeremy@azazel.net>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: Netfilter Devel <netfilter-devel@vger.kernel.org>
Subject: Re: [PATCH nft] doc: fix inconsistency in set statement documentation.
Date: Thu, 28 Nov 2019 20:32:49 +0000	[thread overview]
Message-ID: <20191128203249.GA9566@azazel.net> (raw)
In-Reply-To: <20191125213043.zkkwfg6m7rned6v2@salvia>

[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]

On 2019-11-25, at 22:30:43 +0100, Pablo Neira Ayuso wrote:
> On Mon, Nov 25, 2019 at 08:54:50PM +0000, Jeremy Sowden wrote:
> > The description of the set statement asserts that the set must have
> > been created with the "dynamic" flag.  However, this is not in fact
> > the case, and the assertion is contradicted by the following
> > example, in which the set is created with just the "timeout" flag
> > (which suffices to ensure that the kernel will create a set which
> > can be updated).  Remove the assertion.
>
> The timeout implies dynamic.
>
> Without the timeout flag, you need the dynamic flag.
>
> Do you want to keep supporting this scenario or probably this should
> disallow set updates from the packet path with no timeout.

Having gone back and had another look at the code, I see that I missed
(or forgot) the fact one can include stateful expressions in set state-
ments, and without the "dnyamic" flag these will not work.  Thus drop-
ping the reference to it from the documentation is the wrong thing to
do.

I'll redo the patch.

J.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

      reply	other threads:[~2019-11-28 20:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-25 20:54 [PATCH nft] doc: fix inconsistency in set statement documentation Jeremy Sowden
2019-11-25 21:30 ` Pablo Neira Ayuso
2019-11-28 20:32   ` Jeremy Sowden [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=20191128203249.GA9566@azazel.net \
    --to=jeremy@azazel.net \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.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