summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/tc-testing/tc-tests/actions/mirred.json
diff options
context:
space:
mode:
authorRoman Mashak <mrv@mojatatu.com>2018-05-15 14:31:14 -0400
committerDavid S. Miller <davem@davemloft.net>2018-05-16 14:03:15 -0400
commit55df3e9754531060b07eb32a2ca5a981c0fd4b3d (patch)
treed7cd8e645fb988b287d180d21583d317269fb71b /tools/testing/selftests/tc-testing/tc-tests/actions/mirred.json
parent2f42a12832813519974ac814f5308f7a706b7ed0 (diff)
downloadop-kernel-dev-55df3e9754531060b07eb32a2ca5a981c0fd4b3d.zip
op-kernel-dev-55df3e9754531060b07eb32a2ca5a981c0fd4b3d.tar.gz
tc-testing: updated mirred and vlan with more tests
Added extra test cases for different control actions (reclassify, pipe etc.), cookies, max values & exceeding maximum, and replace existing actions unit tests. Signed-off-by: Roman Mashak <mrv@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/tc-testing/tc-tests/actions/mirred.json')
-rw-r--r--tools/testing/selftests/tc-testing/tc-tests/actions/mirred.json24
1 files changed, 23 insertions, 1 deletions
diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/mirred.json b/tools/testing/selftests/tc-testing/tc-tests/actions/mirred.json
index 443c9b3..6e4edfa 100644
--- a/tools/testing/selftests/tc-testing/tc-tests/actions/mirred.json
+++ b/tools/testing/selftests/tc-testing/tc-tests/actions/mirred.json
@@ -340,7 +340,7 @@
},
{
"id": "8b69",
- "name": "Add mirred mirror action with maximum index",
+ "name": "Add mirred mirror action with index at 32-bit maximum",
"category": [
"actions",
"mirred"
@@ -363,6 +363,28 @@
]
},
{
+ "id": "3f66",
+ "name": "Add mirred mirror action with index exceeding 32-bit maximum",
+ "category": [
+ "actions",
+ "mirred"
+ ],
+ "setup": [
+ [
+ "$TC actions flush action mirred",
+ 0,
+ 1,
+ 255
+ ]
+ ],
+ "cmdUnderTest": "$TC actions add action mirred ingress mirror dev lo pipe index 429496729555",
+ "expExitCode": "255",
+ "verifyCmd": "$TC actions get action mirred index 429496729555",
+ "matchPattern": "action order [0-9]*: mirred \\(Ingress Mirror to device lo\\) pipe.*index 429496729555",
+ "matchCount": "0",
+ "teardown": []
+ },
+ {
"id": "a70e",
"name": "Delete mirred mirror action",
"category": [
OpenPOWER on IntegriCloud