diff options
author | Florian Westphal <fw@strlen.de> | 2021-06-16 18:45:56 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2021-06-21 14:44:58 +0200 |
commit | f8bf621362cc7fa45731c87ef485f7fb298e1e13 (patch) | |
tree | 39fc3feaf84797be04381133ff9fb066bc39a307 /doc | |
parent | e4c9023c3c3964edc8ca33ebfef7da46ab8c2c7f (diff) |
src: queue: allow use of MAP statement for queue number retrieval
This allows to chose a queue number at run time using map statements,
e.g.:
queue flags bypass to ip saddr map { 192.168.7/24 : 0, 192.168.0/24 : 1 }
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/statements.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/statements.txt b/doc/statements.txt index c2a61659..097cf2e0 100644 --- a/doc/statements.txt +++ b/doc/statements.txt @@ -595,11 +595,13 @@ ____ 'QUEUE_FLAGS' := 'QUEUE_FLAG' [*,* 'QUEUE_FLAGS'] 'QUEUE_FLAG' := *bypass* | *fanout* -'QUEUE_EXPRESSION' := *numgen* | *hash* | *symhash* +'QUEUE_EXPRESSION' := *numgen* | *hash* | *symhash* | *MAP STATEMENT* ____ QUEUE_EXPRESSION can be used to compute a queue number -at run-time with the hash or numgen expressions. +at run-time with the hash or numgen expressions. It also +allows to use the map statement to assign fixed queue numbers +based on external inputs such as the source ip address or interface names. .queue statement values [options="header"] |