hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/testing/selftests/tc-testing/tc-tests/actions/skbmod.json
....@@ -392,5 +392,30 @@
392392 "teardown": [
393393 "$TC actions flush action skbmod"
394394 ]
395
+ },
396
+ {
397
+ "id": "b651",
398
+ "name": "Replace skbmod action with invalid goto_chain control",
399
+ "category": [
400
+ "actions",
401
+ "skbmod"
402
+ ],
403
+ "setup": [
404
+ [
405
+ "$TC actions flush action skbmod",
406
+ 0,
407
+ 1,
408
+ 255
409
+ ],
410
+ "$TC actions add action skbmod set etype 0x1111 pass index 90"
411
+ ],
412
+ "cmdUnderTest": "$TC actions replace action skbmod set etype 0x1111 goto chain 42 index 90 cookie c1a0c1a0",
413
+ "expExitCode": "255",
414
+ "verifyCmd": "$TC actions ls action skbmod",
415
+ "matchPattern": "action order [0-9]*: skbmod pass set etype 0x1111\\s+index 90 ref",
416
+ "matchCount": "1",
417
+ "teardown": [
418
+ "$TC actions flush action skbmod"
419
+ ]
395420 }
396421 ]