Commit 17181325 authored by Roman Mashak's avatar Roman Mashak Committed by David S. Miller

tc-tests: updated skbedit tests

- Added index upper bound test case
- Added mark upper bound test case
- Re-worded descriptions to few cases for clarity
Signed-off-by: default avatarRoman Mashak <mrv@mojatatu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 92c1a19e
...@@ -23,9 +23,33 @@ ...@@ -23,9 +23,33 @@
"$TC actions flush action skbedit" "$TC actions flush action skbedit"
] ]
}, },
{
"id": "c8cf",
"name": "Add skbedit action with 32-bit maximum mark",
"category": [
"actions",
"skbedit"
],
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit mark 4294967295 pipe index 1",
"expExitCode": "0",
"verifyCmd": "$TC actions get action skbedit index 1",
"matchPattern": "action order [0-9]*: skbedit mark 4294967295.*pipe.*index 1",
"matchCount": "1",
"teardown": [
"$TC actions flush action skbedit"
]
},
{ {
"id": "407b", "id": "407b",
"name": "Add skbedit action with invalid mark", "name": "Add skbedit action with mark exceeding 32-bit maximum",
"category": [ "category": [
"actions", "actions",
"skbedit" "skbedit"
...@@ -43,9 +67,7 @@ ...@@ -43,9 +67,7 @@
"verifyCmd": "$TC actions list action skbedit", "verifyCmd": "$TC actions list action skbedit",
"matchPattern": "action order [0-9]*: skbedit mark", "matchPattern": "action order [0-9]*: skbedit mark",
"matchCount": "0", "matchCount": "0",
"teardown": [ "teardown": []
"$TC actions flush action skbedit"
]
}, },
{ {
"id": "081d", "id": "081d",
...@@ -121,7 +143,7 @@ ...@@ -121,7 +143,7 @@
}, },
{ {
"id": "985c", "id": "985c",
"name": "Add skbedit action with invalid queue_mapping", "name": "Add skbedit action with queue_mapping exceeding 16-bit maximum",
"category": [ "category": [
"actions", "actions",
"skbedit" "skbedit"
...@@ -413,7 +435,7 @@ ...@@ -413,7 +435,7 @@
}, },
{ {
"id": "a6d6", "id": "a6d6",
"name": "Add skbedit action with index", "name": "Add skbedit action with index at 32-bit maximum",
"category": [ "category": [
"actions", "actions",
"skbedit" "skbedit"
...@@ -426,15 +448,37 @@ ...@@ -426,15 +448,37 @@
255 255
] ]
], ],
"cmdUnderTest": "$TC actions add action skbedit mark 808 index 4040404040", "cmdUnderTest": "$TC actions add action skbedit mark 808 index 4294967295",
"expExitCode": "0", "expExitCode": "0",
"verifyCmd": "$TC actions list action skbedit", "verifyCmd": "$TC actions get action skbedit index 4294967295",
"matchPattern": "index 4040404040", "matchPattern": "action order [0-9]*: skbedit mark 808.*index 4294967295",
"matchCount": "1", "matchCount": "1",
"teardown": [ "teardown": [
"$TC actions flush action skbedit" "$TC actions flush action skbedit"
] ]
}, },
{
"id": "f0f4",
"name": "Add skbedit action with index exceeding 32-bit maximum",
"category": [
"actions",
"skbedit"
],
"setup": [
[
"$TC actions flush action skbedit",
0,
1,
255
]
],
"cmdUnderTest": "$TC actions add action skbedit mark 808 pass index 4294967297",
"expExitCode": "255",
"verifyCmd": "$TC actions get action skbedit index 4294967297",
"matchPattern": "action order [0-9]*:.*skbedit.*mark 808.*pass.*index 4294967297",
"matchCount": "0",
"teardown": []
},
{ {
"id": "38f3", "id": "38f3",
"name": "Delete skbedit action", "name": "Delete skbedit action",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment