All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH nft] doc: fix inconsistency in set statement documentation.
@ 2019-11-25 20:54 Jeremy Sowden
  2019-11-25 21:30 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 3+ messages in thread
From: Jeremy Sowden @ 2019-11-25 20:54 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: Netfilter Devel

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.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
---
 doc/statements.txt | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/doc/statements.txt b/doc/statements.txt
index e17068a8a04b..847656ac7601 100644
--- a/doc/statements.txt
+++ b/doc/statements.txt
@@ -669,10 +669,9 @@ SET STATEMENT
 ~~~~~~~~~~~~~
 The set statement is used to dynamically add or update elements in a set from
 the packet path. The set setname must already exist in the given table and must
-have been created with the dynamic flag. Furthermore, these sets must specify
-both a maximum set size (to prevent memory exhaustion) and a timeout (so that
-number of entries in set will not grow indefinitely). The set statement can be
-used to e.g. create dynamic blacklists.
+specify both a maximum set size (to prevent memory exhaustion) and a timeout (so
+that number of entries in set will not grow indefinitely). The set statement can
+be used to e.g. create dynamic blacklists.
 
 [verse]
 {*add* | *update*} *@*'setname' *{* 'expression' [*timeout* 'timeout'] [*comment* 'string'] *}*
-- 
2.24.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-28 20:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.