diff options
author | Roman Mashak <mrv@mojatatu.com> | 2018-03-25 17:20:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-25 20:41:46 -0400 |
commit | 808679e7fa8018321ccfb227628175b84d2a5ff9 (patch) | |
tree | 99e189a788b0f6c15f252544e05f53b25132129a /tools/testing/selftests/tc-testing/tc-tests/actions/skbmod.json | |
parent | 9e09686850478eb70fb93a32678da924742ccd36 (diff) | |
download | talos-op-linux-808679e7fa8018321ccfb227628175b84d2a5ff9.tar.gz talos-op-linux-808679e7fa8018321ccfb227628175b84d2a5ff9.zip |
tc-testing: updated police, mirred, skbedit and skbmod with more tests
Added extra test cases for control actions (reclassify, pipe etc.),
cookies, max index value and police args sanity check.
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/skbmod.json')
-rw-r--r-- | tools/testing/selftests/tc-testing/tc-tests/actions/skbmod.json | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/skbmod.json b/tools/testing/selftests/tc-testing/tc-tests/actions/skbmod.json index 90bba48c3f07..fe3326e939c1 100644 --- a/tools/testing/selftests/tc-testing/tc-tests/actions/skbmod.json +++ b/tools/testing/selftests/tc-testing/tc-tests/actions/skbmod.json @@ -264,6 +264,30 @@ ] }, { + "id": "6046", + "name": "Add skbmod action with control reclassify and cookie", + "category": [ + "actions", + "skbmod" + ], + "setup": [ + [ + "$TC actions flush action skbmod", + 0, + 1, + 255 + ] + ], + "cmdUnderTest": "$TC actions add action skbmod set smac 00:01:02:03:04:01 reclassify index 1 cookie ddeeffaabb11cc22", + "expExitCode": "0", + "verifyCmd": "$TC actions get action skbmod index 1", + "matchPattern": "action order [0-9]*: skbmod reclassify set smac 00:01:02:03:04:01.*index 1 ref.*cookie ddeeffaabb11cc22", + "matchCount": "1", + "teardown": [ + "$TC actions flush action skbmod" + ] + }, + { "id": "58cb", "name": "List skbmod actions", "category": [ |