aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/tc-testing
diff options
context:
space:
mode:
authorKeara Leibovitz <kleib@mojatatu.com>2018-06-26 10:16:28 -0400
committerDavid S. Miller <davem@davemloft.net>2018-06-28 01:23:57 -0400
commit5092ad4dd52dddc9957ebb8adde99f7a22c29f6a (patch)
tree02fca2b7202dbc706e72e6090ae0e36efd99d432 /tools/testing/selftests/tc-testing
parent30d6f790b29fddd8427c4e99668a1a665164a383 (diff)
tc-tests: add an extreme-case csum action test
Added an extreme-case test for all 7 csum action headers. Signed-off-by: Keara Leibovitz <kleib@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/tc-testing')
-rw-r--r--tools/testing/selftests/tc-testing/tc-tests/actions/csum.json24
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/testing/selftests/tc-testing/tc-tests/actions/csum.json b/tools/testing/selftests/tc-testing/tc-tests/actions/csum.json
index 3a2f51fc7fd4..a022792d392a 100644
--- a/tools/testing/selftests/tc-testing/tc-tests/actions/csum.json
+++ b/tools/testing/selftests/tc-testing/tc-tests/actions/csum.json
@@ -336,6 +336,30 @@
336 ] 336 ]
337 }, 337 },
338 { 338 {
339 "id": "b10b",
340 "name": "Add all 7 csum actions",
341 "category": [
342 "actions",
343 "csum"
344 ],
345 "setup": [
346 [
347 "$TC actions flush action csum",
348 0,
349 1,
350 255
351 ]
352 ],
353 "cmdUnderTest": "$TC actions add action csum icmp ip4h sctp igmp udplite udp tcp index 7",
354 "expExitCode": "0",
355 "verifyCmd": "$TC actions get action csum index 7",
356 "matchPattern": "action order [0-9]*: csum \\(iph, icmp, igmp, tcp, udp, udplite, sctp\\).*index 7 ref",
357 "matchCount": "1",
358 "teardown": [
359 "$TC actions flush action csum"
360 ]
361 },
362 {
339 "id": "ce92", 363 "id": "ce92",
340 "name": "Add csum udp action with cookie", 364 "name": "Add csum udp action with cookie",
341 "category": [ 365 "category": [