From dd05c561a02e2de3bf7bda8d51c8777cb7564ff1 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Fri, 20 Aug 2021 12:43:50 +0200 Subject: src: queue: consolidate queue statement syntax Print queue statement using the 'queue ... to' syntax to consolidate the syntax around Florian's proposal introduced in 6cf0f2c17bfb ("src: queue: allow use of arbitrary queue expressions"). Retain backward compatibility, 'queue num' syntax is still allowed. Update and add new tests. Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/nft-f/dumps/0012different_defines_0.nft | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/shell/testcases') diff --git a/tests/shell/testcases/nft-f/dumps/0012different_defines_0.nft b/tests/shell/testcases/nft-f/dumps/0012different_defines_0.nft index e690f322..4734b2fd 100644 --- a/tests/shell/testcases/nft-f/dumps/0012different_defines_0.nft +++ b/tests/shell/testcases/nft-f/dumps/0012different_defines_0.nft @@ -12,9 +12,9 @@ table inet t { ip daddr . iif vmap { 10.0.0.0 . "lo" : accept } tcp dport 100-222 udp dport vmap { 100-222 : accept } - tcp sport 1 tcp dport 1 oifname "foobar" queue flags bypass num 0 - tcp sport 1 tcp dport 1 oifname "foobar" queue num 1-42 - tcp sport 1 tcp dport 1 oifname "foobar" queue flags bypass,fanout num 1-42 + tcp sport 1 tcp dport 1 oifname "foobar" queue flags bypass to 0 + tcp sport 1 tcp dport 1 oifname "foobar" queue to 1-42 + tcp sport 1 tcp dport 1 oifname "foobar" queue flags bypass,fanout to 1-42 tcp sport 1 tcp dport 1 oifname "foobar" queue to symhash mod 2 tcp sport 1 tcp dport 1 oifname "foobar" queue flags bypass to jhash tcp dport . tcp sport mod 4 } -- cgit v1.2.3