From f8bf621362cc7fa45731c87ef485f7fb298e1e13 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 16 Jun 2021 18:45:56 +0200 Subject: 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 --- doc/statements.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc') 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"] -- cgit v1.2.3