hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/testing/selftests/tc-testing/tc-tests/actions/csum.json
....@@ -469,7 +469,7 @@
469469 255
470470 ]
471471 ],
472
- "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action csum tcp continue index \\$i cookie aaabbbcccdddeee \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"",
472
+ "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action csum tcp continue index \\$i cookie 123456789abcde \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"",
473473 "expExitCode": "0",
474474 "verifyCmd": "$TC actions ls action csum",
475475 "matchPattern": "^[ \t]+index [0-9]* ref",
....@@ -492,7 +492,7 @@
492492 1,
493493 255
494494 ],
495
- "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action csum tcp continue index \\$i cookie aaabbbcccdddeee \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\""
495
+ "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action csum tcp continue index \\$i cookie 123456789abcde \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\""
496496 ],
497497 "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action csum index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions del \\$args\"",
498498 "expExitCode": "0",
....@@ -500,5 +500,54 @@
500500 "matchPattern": "^[ \t]+index [0-9]+ ref",
501501 "matchCount": "0",
502502 "teardown": []
503
+ },
504
+ {
505
+ "id": "d128",
506
+ "name": "Replace csum action with invalid goto chain control",
507
+ "category": [
508
+ "actions",
509
+ "csum"
510
+ ],
511
+ "setup": [
512
+ [
513
+ "$TC actions flush action csum",
514
+ 0,
515
+ 1,
516
+ 255
517
+ ],
518
+ "$TC actions add action csum iph index 90"
519
+ ],
520
+ "cmdUnderTest": "$TC actions replace action csum iph goto chain 42 index 90 cookie c1a0c1a0",
521
+ "expExitCode": "255",
522
+ "verifyCmd": "$TC actions get action csum index 90",
523
+ "matchPattern": "action order [0-9]*: csum \\(iph\\) action pass.*index 90 ref",
524
+ "matchCount": "1",
525
+ "teardown": [
526
+ "$TC actions flush action csum"
527
+ ]
528
+ },
529
+ {
530
+ "id": "eaf0",
531
+ "name": "Add csum iph action with no_percpu flag",
532
+ "category": [
533
+ "actions",
534
+ "csum"
535
+ ],
536
+ "setup": [
537
+ [
538
+ "$TC actions flush action csum",
539
+ 0,
540
+ 1,
541
+ 255
542
+ ]
543
+ ],
544
+ "cmdUnderTest": "$TC actions add action csum iph no_percpu",
545
+ "expExitCode": "0",
546
+ "verifyCmd": "$TC actions list action csum",
547
+ "matchPattern": "action order [0-9]*: csum \\(iph\\) action pass.*no_percpu",
548
+ "matchCount": "1",
549
+ "teardown": [
550
+ "$TC actions flush action csum"
551
+ ]
503552 }
504553 ]