diff options
author | Florian Westphal <fw@strlen.de> | 2021-06-15 23:03:57 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2021-06-21 14:44:58 +0200 |
commit | e4c9023c3c3964edc8ca33ebfef7da46ab8c2c7f (patch) | |
tree | 9aab3bcb35eb67d65dedff310db25c18683f5920 /tests/py/any/queue.t.payload | |
parent | 6cf0f2c17bfb96c05dd0c03e0b91a75d732917cf (diff) |
tests: extend queue testcases for new sreg support
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/py/any/queue.t.payload')
-rw-r--r-- | tests/py/any/queue.t.payload | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/py/any/queue.t.payload b/tests/py/any/queue.t.payload index 78d939c6..35e757ee 100644 --- a/tests/py/any/queue.t.payload +++ b/tests/py/any/queue.t.payload @@ -30,3 +30,19 @@ ip test-ip4 output ip test-ip4 output [ queue num 4-5 bypass ] +# queue to symhash mod 65536 +ip + [ hash reg 1 = symhash() % mod 65536 ] + [ queue sreg_qnum 1 ] + +# queue to jhash oif . meta mark mod 32 +ip + [ meta load oif => reg 2 ] + [ meta load mark => reg 13 ] + [ hash reg 1 = jhash(reg 2, 8, 0x0) % mod 32 ] + [ queue sreg_qnum 1 ] + +# queue flags bypass to numgen inc mod 65536 +ip + [ numgen reg 1 = inc mod 65536 ] + [ queue sreg_qnum 1 bypass ] |