Skip to contentSkip to conversation

doc: remove queue from verdict list

PATCH In review Florian Westphal 2 participants 2 messages Oct 26, 2025 – Oct 27, 2025 netfilter

lore
Share & tools
lore

Florian Westphal

author maintainer
#0 lore raw

PATCH 1/1 doc: remove queue from verdict list

While its correct that the queue statement is internally implemented via the queue verdict, this is an implementation detail. We don't list "stolen" as a verdict either.

nft ... queue will always use the nft_queue statement, so move the reinject detail from statements to queue statement and remove this.

---
 doc/statements.txt | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)
doc/statements.txt +5 -9
index e275ee39dc4e..0633d023f2c0 100644
@@ -4,7 +4,7 @@ The verdict statement alters control flow in the ruleset and issues policy decis
 
 [verse]
 ____
-{*accept* | *drop* | *queue* | *continue* | *return*}
+{*accept* | *drop* | *continue* | *return*}
 {*jump* | *goto*} 'CHAIN'
 
 'CHAIN' := 'chain_name' | *{* 'statement' ... *}*
@@ -22,11 +22,6 @@ afterwards in the processing pipeline.
 The drop occurs instantly, no further chains or hooks are evaluated.
 It is not possible to accept the packet in a later chain again, as those
 are not evaluated anymore for the packet.
-*queue*:: Terminate ruleset evaluation and queue the packet to userspace.
-Userspace must provide a drop or accept verdict.  In case of accept, processing
-resumes with the next base chain hook, not the rule following the queue verdict.
-*continue*:: Continue evaluation with the next rule. This
- is the default behaviour in case a rule issues no verdict.
 *return*:: Return from the current chain and continue evaluation at the
  next rule in the last chain. If issued in a base chain, it is equivalent to the
  base chain policy.
@@ -741,9 +736,10 @@ QUEUE STATEMENT
 ~~~~~~~~~~~~~~~
 This statement passes the packet to userspace using the nfnetlink_queue handler.
 The packet is put into the queue identified by its 16-bit queue number.
-Userspace can inspect and modify the packet if desired. Userspace must then drop
-or re-inject the packet into the kernel. See libnetfilter_queue documentation
-for details.
+Userspace can inspect and optionally modify the packet if desired.
+Userspace must provide a drop or accept verdict.  In case of accept, processing
+resumes with the next base chain hook, not the rule following the queue verdict.
+See libnetfilter_queue documentation for details.
 
 [verse]
 ____
Signature · 1 line
2.51.0
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Florian Westphal

While its correct that the queue statement is internally implemented via the queue verdict, this is an implementation detail. We don't list "stolen" as a verdict either.

nft ... queue will always use the nft_queue statement, so move the reinject detail from statements to queue statement and remove this.

Quoted 47 lines
---
 doc/statements.txt | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)
doc/statements.txt +5 -9
index e275ee39dc4e..0633d023f2c0 100644
@@ -4,7 +4,7 @@ The verdict statement alters control flow in the ruleset and issues policy decis
 
 [verse]
 ____
-{*accept* | *drop* | *queue* | *continue* | *return*}
+{*accept* | *drop* | *continue* | *return*}
 {*jump* | *goto*} 'CHAIN'
 
 'CHAIN' := 'chain_name' | *{* 'statement' ... *}*
@@ -22,11 +22,6 @@ afterwards in the processing pipeline.
 The drop occurs instantly, no further chains or hooks are evaluated.
 It is not possible to accept the packet in a later chain again, as those
 are not evaluated anymore for the packet.
-*queue*:: Terminate ruleset evaluation and queue the packet to userspace.
-Userspace must provide a drop or accept verdict.  In case of accept, processing
-resumes with the next base chain hook, not the rule following the queue verdict.
-*continue*:: Continue evaluation with the next rule. This
- is the default behaviour in case a rule issues no verdict.
 *return*:: Return from the current chain and continue evaluation at the
  next rule in the last chain. If issued in a base chain, it is equivalent to the
  base chain policy.
@@ -741,9 +736,10 @@ QUEUE STATEMENT
 ~~~~~~~~~~~~~~~
 This statement passes the packet to userspace using the nfnetlink_queue handler.
 The packet is put into the queue identified by its 16-bit queue number.
-Userspace can inspect and modify the packet if desired. Userspace must then drop
-or re-inject the packet into the kernel. See libnetfilter_queue documentation
-for details.
+Userspace can inspect and optionally modify the packet if desired.
+Userspace must provide a drop or accept verdict.  In case of accept, processing
+resumes with the next base chain hook, not the rule following the queue verdict.
+See libnetfilter_queue documentation for details.
 
 [verse]
 ____
Signature · 1 line
2.51.0