18c2ecf20Sopenharmony_ci[ 28c2ecf20Sopenharmony_ci { 38c2ecf20Sopenharmony_ci "id": "6236", 48c2ecf20Sopenharmony_ci "name": "Add skbedit action with valid mark", 58c2ecf20Sopenharmony_ci "category": [ 68c2ecf20Sopenharmony_ci "actions", 78c2ecf20Sopenharmony_ci "skbedit" 88c2ecf20Sopenharmony_ci ], 98c2ecf20Sopenharmony_ci "setup": [ 108c2ecf20Sopenharmony_ci [ 118c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 128c2ecf20Sopenharmony_ci 0, 138c2ecf20Sopenharmony_ci 1, 148c2ecf20Sopenharmony_ci 255 158c2ecf20Sopenharmony_ci ] 168c2ecf20Sopenharmony_ci ], 178c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit mark 1", 188c2ecf20Sopenharmony_ci "expExitCode": "0", 198c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 208c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit mark 1", 218c2ecf20Sopenharmony_ci "matchCount": "1", 228c2ecf20Sopenharmony_ci "teardown": [ 238c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 248c2ecf20Sopenharmony_ci ] 258c2ecf20Sopenharmony_ci }, 268c2ecf20Sopenharmony_ci { 278c2ecf20Sopenharmony_ci "id": "c8cf", 288c2ecf20Sopenharmony_ci "name": "Add skbedit action with 32-bit maximum mark", 298c2ecf20Sopenharmony_ci "category": [ 308c2ecf20Sopenharmony_ci "actions", 318c2ecf20Sopenharmony_ci "skbedit" 328c2ecf20Sopenharmony_ci ], 338c2ecf20Sopenharmony_ci "setup": [ 348c2ecf20Sopenharmony_ci [ 358c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 368c2ecf20Sopenharmony_ci 0, 378c2ecf20Sopenharmony_ci 1, 388c2ecf20Sopenharmony_ci 255 398c2ecf20Sopenharmony_ci ] 408c2ecf20Sopenharmony_ci ], 418c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit mark 4294967295 pipe index 1", 428c2ecf20Sopenharmony_ci "expExitCode": "0", 438c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions get action skbedit index 1", 448c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit mark 4294967295.*pipe.*index 1", 458c2ecf20Sopenharmony_ci "matchCount": "1", 468c2ecf20Sopenharmony_ci "teardown": [ 478c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 488c2ecf20Sopenharmony_ci ] 498c2ecf20Sopenharmony_ci }, 508c2ecf20Sopenharmony_ci { 518c2ecf20Sopenharmony_ci "id": "407b", 528c2ecf20Sopenharmony_ci "name": "Add skbedit action with mark exceeding 32-bit maximum", 538c2ecf20Sopenharmony_ci "category": [ 548c2ecf20Sopenharmony_ci "actions", 558c2ecf20Sopenharmony_ci "skbedit" 568c2ecf20Sopenharmony_ci ], 578c2ecf20Sopenharmony_ci "setup": [ 588c2ecf20Sopenharmony_ci [ 598c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 608c2ecf20Sopenharmony_ci 0, 618c2ecf20Sopenharmony_ci 1, 628c2ecf20Sopenharmony_ci 255 638c2ecf20Sopenharmony_ci ] 648c2ecf20Sopenharmony_ci ], 658c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit mark 666777888999", 668c2ecf20Sopenharmony_ci "expExitCode": "255", 678c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 688c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit mark", 698c2ecf20Sopenharmony_ci "matchCount": "0", 708c2ecf20Sopenharmony_ci "teardown": [] 718c2ecf20Sopenharmony_ci }, 728c2ecf20Sopenharmony_ci { 738c2ecf20Sopenharmony_ci "id": "d4cd", 748c2ecf20Sopenharmony_ci "name": "Add skbedit action with valid mark and mask", 758c2ecf20Sopenharmony_ci "category": [ 768c2ecf20Sopenharmony_ci "actions", 778c2ecf20Sopenharmony_ci "skbedit" 788c2ecf20Sopenharmony_ci ], 798c2ecf20Sopenharmony_ci "setup": [ 808c2ecf20Sopenharmony_ci [ 818c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 828c2ecf20Sopenharmony_ci 0, 838c2ecf20Sopenharmony_ci 1, 848c2ecf20Sopenharmony_ci 255 858c2ecf20Sopenharmony_ci ] 868c2ecf20Sopenharmony_ci ], 878c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit mark 1/0xaabb", 888c2ecf20Sopenharmony_ci "expExitCode": "0", 898c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 908c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit mark 1/0xaabb", 918c2ecf20Sopenharmony_ci "matchCount": "1", 928c2ecf20Sopenharmony_ci "teardown": [ 938c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 948c2ecf20Sopenharmony_ci ] 958c2ecf20Sopenharmony_ci }, 968c2ecf20Sopenharmony_ci { 978c2ecf20Sopenharmony_ci "id": "baa7", 988c2ecf20Sopenharmony_ci "name": "Add skbedit action with valid mark and 32-bit maximum mask", 998c2ecf20Sopenharmony_ci "category": [ 1008c2ecf20Sopenharmony_ci "actions", 1018c2ecf20Sopenharmony_ci "skbedit" 1028c2ecf20Sopenharmony_ci ], 1038c2ecf20Sopenharmony_ci "setup": [ 1048c2ecf20Sopenharmony_ci [ 1058c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 1068c2ecf20Sopenharmony_ci 0, 1078c2ecf20Sopenharmony_ci 1, 1088c2ecf20Sopenharmony_ci 255 1098c2ecf20Sopenharmony_ci ] 1108c2ecf20Sopenharmony_ci ], 1118c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit mark 1/0xffffffff", 1128c2ecf20Sopenharmony_ci "expExitCode": "0", 1138c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 1148c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit mark 1/0xffffffff", 1158c2ecf20Sopenharmony_ci "matchCount": "1", 1168c2ecf20Sopenharmony_ci "teardown": [ 1178c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 1188c2ecf20Sopenharmony_ci ] 1198c2ecf20Sopenharmony_ci }, 1208c2ecf20Sopenharmony_ci { 1218c2ecf20Sopenharmony_ci "id": "62a5", 1228c2ecf20Sopenharmony_ci "name": "Add skbedit action with valid mark and mask exceeding 32-bit maximum", 1238c2ecf20Sopenharmony_ci "category": [ 1248c2ecf20Sopenharmony_ci "actions", 1258c2ecf20Sopenharmony_ci "skbedit" 1268c2ecf20Sopenharmony_ci ], 1278c2ecf20Sopenharmony_ci "setup": [ 1288c2ecf20Sopenharmony_ci [ 1298c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 1308c2ecf20Sopenharmony_ci 0, 1318c2ecf20Sopenharmony_ci 1, 1328c2ecf20Sopenharmony_ci 255 1338c2ecf20Sopenharmony_ci ] 1348c2ecf20Sopenharmony_ci ], 1358c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit mark 1/0xaabbccddeeff112233", 1368c2ecf20Sopenharmony_ci "expExitCode": "255", 1378c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 1388c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit mark 1/0xaabbccddeeff112233", 1398c2ecf20Sopenharmony_ci "matchCount": "0", 1408c2ecf20Sopenharmony_ci "teardown": [] 1418c2ecf20Sopenharmony_ci }, 1428c2ecf20Sopenharmony_ci { 1438c2ecf20Sopenharmony_ci "id": "bc15", 1448c2ecf20Sopenharmony_ci "name": "Add skbedit action with valid mark and mask with invalid format", 1458c2ecf20Sopenharmony_ci "category": [ 1468c2ecf20Sopenharmony_ci "actions", 1478c2ecf20Sopenharmony_ci "skbedit" 1488c2ecf20Sopenharmony_ci ], 1498c2ecf20Sopenharmony_ci "setup": [ 1508c2ecf20Sopenharmony_ci [ 1518c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 1528c2ecf20Sopenharmony_ci 0, 1538c2ecf20Sopenharmony_ci 1, 1548c2ecf20Sopenharmony_ci 255 1558c2ecf20Sopenharmony_ci ] 1568c2ecf20Sopenharmony_ci ], 1578c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit mark 1/-1234", 1588c2ecf20Sopenharmony_ci "expExitCode": "255", 1598c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 1608c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit mark 1/-1234", 1618c2ecf20Sopenharmony_ci "matchCount": "0", 1628c2ecf20Sopenharmony_ci "teardown": [] 1638c2ecf20Sopenharmony_ci }, 1648c2ecf20Sopenharmony_ci { 1658c2ecf20Sopenharmony_ci "id": "57c2", 1668c2ecf20Sopenharmony_ci "name": "Replace skbedit action with new mask", 1678c2ecf20Sopenharmony_ci "category": [ 1688c2ecf20Sopenharmony_ci "actions", 1698c2ecf20Sopenharmony_ci "skbedit" 1708c2ecf20Sopenharmony_ci ], 1718c2ecf20Sopenharmony_ci "setup": [ 1728c2ecf20Sopenharmony_ci [ 1738c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 1748c2ecf20Sopenharmony_ci 0, 1758c2ecf20Sopenharmony_ci 1, 1768c2ecf20Sopenharmony_ci 255 1778c2ecf20Sopenharmony_ci ], 1788c2ecf20Sopenharmony_ci "$TC actions add action skbedit mark 1/0x11223344 index 1" 1798c2ecf20Sopenharmony_ci ], 1808c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions replace action skbedit mark 1/0xaabb index 1", 1818c2ecf20Sopenharmony_ci "expExitCode": "0", 1828c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 1838c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit mark 1/0xaabb", 1848c2ecf20Sopenharmony_ci "matchCount": "1", 1858c2ecf20Sopenharmony_ci "teardown": [ 1868c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 1878c2ecf20Sopenharmony_ci ] 1888c2ecf20Sopenharmony_ci }, 1898c2ecf20Sopenharmony_ci { 1908c2ecf20Sopenharmony_ci "id": "081d", 1918c2ecf20Sopenharmony_ci "name": "Add skbedit action with priority", 1928c2ecf20Sopenharmony_ci "category": [ 1938c2ecf20Sopenharmony_ci "actions", 1948c2ecf20Sopenharmony_ci "skbedit" 1958c2ecf20Sopenharmony_ci ], 1968c2ecf20Sopenharmony_ci "setup": [ 1978c2ecf20Sopenharmony_ci [ 1988c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 1998c2ecf20Sopenharmony_ci 0, 2008c2ecf20Sopenharmony_ci 1, 2018c2ecf20Sopenharmony_ci 255 2028c2ecf20Sopenharmony_ci ] 2038c2ecf20Sopenharmony_ci ], 2048c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit prio 99", 2058c2ecf20Sopenharmony_ci "expExitCode": "0", 2068c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 2078c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit priority :99", 2088c2ecf20Sopenharmony_ci "matchCount": "1", 2098c2ecf20Sopenharmony_ci "teardown": [ 2108c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 2118c2ecf20Sopenharmony_ci ] 2128c2ecf20Sopenharmony_ci }, 2138c2ecf20Sopenharmony_ci { 2148c2ecf20Sopenharmony_ci "id": "cc37", 2158c2ecf20Sopenharmony_ci "name": "Add skbedit action with invalid priority", 2168c2ecf20Sopenharmony_ci "category": [ 2178c2ecf20Sopenharmony_ci "actions", 2188c2ecf20Sopenharmony_ci "skbedit" 2198c2ecf20Sopenharmony_ci ], 2208c2ecf20Sopenharmony_ci "setup": [ 2218c2ecf20Sopenharmony_ci [ 2228c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 2238c2ecf20Sopenharmony_ci 0, 2248c2ecf20Sopenharmony_ci 1, 2258c2ecf20Sopenharmony_ci 255 2268c2ecf20Sopenharmony_ci ] 2278c2ecf20Sopenharmony_ci ], 2288c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit prio foo", 2298c2ecf20Sopenharmony_ci "expExitCode": "255", 2308c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 2318c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit priority", 2328c2ecf20Sopenharmony_ci "matchCount": "0", 2338c2ecf20Sopenharmony_ci "teardown": [ 2348c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 2358c2ecf20Sopenharmony_ci ] 2368c2ecf20Sopenharmony_ci }, 2378c2ecf20Sopenharmony_ci { 2388c2ecf20Sopenharmony_ci "id": "3c95", 2398c2ecf20Sopenharmony_ci "name": "Add skbedit action with queue_mapping", 2408c2ecf20Sopenharmony_ci "category": [ 2418c2ecf20Sopenharmony_ci "actions", 2428c2ecf20Sopenharmony_ci "skbedit" 2438c2ecf20Sopenharmony_ci ], 2448c2ecf20Sopenharmony_ci "setup": [ 2458c2ecf20Sopenharmony_ci [ 2468c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 2478c2ecf20Sopenharmony_ci 0, 2488c2ecf20Sopenharmony_ci 1, 2498c2ecf20Sopenharmony_ci 255 2508c2ecf20Sopenharmony_ci ] 2518c2ecf20Sopenharmony_ci ], 2528c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit queue_mapping 909", 2538c2ecf20Sopenharmony_ci "expExitCode": "0", 2548c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 2558c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit queue_mapping 909", 2568c2ecf20Sopenharmony_ci "matchCount": "1", 2578c2ecf20Sopenharmony_ci "teardown": [ 2588c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 2598c2ecf20Sopenharmony_ci ] 2608c2ecf20Sopenharmony_ci }, 2618c2ecf20Sopenharmony_ci { 2628c2ecf20Sopenharmony_ci "id": "985c", 2638c2ecf20Sopenharmony_ci "name": "Add skbedit action with queue_mapping exceeding 16-bit maximum", 2648c2ecf20Sopenharmony_ci "category": [ 2658c2ecf20Sopenharmony_ci "actions", 2668c2ecf20Sopenharmony_ci "skbedit" 2678c2ecf20Sopenharmony_ci ], 2688c2ecf20Sopenharmony_ci "setup": [ 2698c2ecf20Sopenharmony_ci [ 2708c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 2718c2ecf20Sopenharmony_ci 0, 2728c2ecf20Sopenharmony_ci 1, 2738c2ecf20Sopenharmony_ci 255 2748c2ecf20Sopenharmony_ci ] 2758c2ecf20Sopenharmony_ci ], 2768c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit queue_mapping 67000", 2778c2ecf20Sopenharmony_ci "expExitCode": "255", 2788c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 2798c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit queue_mapping", 2808c2ecf20Sopenharmony_ci "matchCount": "0", 2818c2ecf20Sopenharmony_ci "teardown": [ 2828c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 2838c2ecf20Sopenharmony_ci ] 2848c2ecf20Sopenharmony_ci }, 2858c2ecf20Sopenharmony_ci { 2868c2ecf20Sopenharmony_ci "id": "224f", 2878c2ecf20Sopenharmony_ci "name": "Add skbedit action with ptype host", 2888c2ecf20Sopenharmony_ci "category": [ 2898c2ecf20Sopenharmony_ci "actions", 2908c2ecf20Sopenharmony_ci "skbedit" 2918c2ecf20Sopenharmony_ci ], 2928c2ecf20Sopenharmony_ci "setup": [ 2938c2ecf20Sopenharmony_ci [ 2948c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 2958c2ecf20Sopenharmony_ci 0, 2968c2ecf20Sopenharmony_ci 1, 2978c2ecf20Sopenharmony_ci 255 2988c2ecf20Sopenharmony_ci ] 2998c2ecf20Sopenharmony_ci ], 3008c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit ptype host", 3018c2ecf20Sopenharmony_ci "expExitCode": "0", 3028c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 3038c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit ptype host", 3048c2ecf20Sopenharmony_ci "matchCount": "1", 3058c2ecf20Sopenharmony_ci "teardown": [ 3068c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 3078c2ecf20Sopenharmony_ci ] 3088c2ecf20Sopenharmony_ci }, 3098c2ecf20Sopenharmony_ci { 3108c2ecf20Sopenharmony_ci "id": "d1a3", 3118c2ecf20Sopenharmony_ci "name": "Add skbedit action with ptype otherhost", 3128c2ecf20Sopenharmony_ci "category": [ 3138c2ecf20Sopenharmony_ci "actions", 3148c2ecf20Sopenharmony_ci "skbedit" 3158c2ecf20Sopenharmony_ci ], 3168c2ecf20Sopenharmony_ci "setup": [ 3178c2ecf20Sopenharmony_ci [ 3188c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 3198c2ecf20Sopenharmony_ci 0, 3208c2ecf20Sopenharmony_ci 1, 3218c2ecf20Sopenharmony_ci 255 3228c2ecf20Sopenharmony_ci ] 3238c2ecf20Sopenharmony_ci ], 3248c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit ptype otherhost", 3258c2ecf20Sopenharmony_ci "expExitCode": "0", 3268c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 3278c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit ptype otherhost", 3288c2ecf20Sopenharmony_ci "matchCount": "1", 3298c2ecf20Sopenharmony_ci "teardown": [ 3308c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 3318c2ecf20Sopenharmony_ci ] 3328c2ecf20Sopenharmony_ci }, 3338c2ecf20Sopenharmony_ci { 3348c2ecf20Sopenharmony_ci "id": "b9c6", 3358c2ecf20Sopenharmony_ci "name": "Add skbedit action with invalid ptype", 3368c2ecf20Sopenharmony_ci "category": [ 3378c2ecf20Sopenharmony_ci "actions", 3388c2ecf20Sopenharmony_ci "skbedit" 3398c2ecf20Sopenharmony_ci ], 3408c2ecf20Sopenharmony_ci "setup": [ 3418c2ecf20Sopenharmony_ci [ 3428c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 3438c2ecf20Sopenharmony_ci 0, 3448c2ecf20Sopenharmony_ci 1, 3458c2ecf20Sopenharmony_ci 255 3468c2ecf20Sopenharmony_ci ] 3478c2ecf20Sopenharmony_ci ], 3488c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit ptype openair", 3498c2ecf20Sopenharmony_ci "expExitCode": "255", 3508c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 3518c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit ptype openair", 3528c2ecf20Sopenharmony_ci "matchCount": "0", 3538c2ecf20Sopenharmony_ci "teardown": [ 3548c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 3558c2ecf20Sopenharmony_ci ] 3568c2ecf20Sopenharmony_ci }, 3578c2ecf20Sopenharmony_ci { 3588c2ecf20Sopenharmony_ci "id": "464a", 3598c2ecf20Sopenharmony_ci "name": "Add skbedit action with control pipe", 3608c2ecf20Sopenharmony_ci "category": [ 3618c2ecf20Sopenharmony_ci "actions", 3628c2ecf20Sopenharmony_ci "skbedit" 3638c2ecf20Sopenharmony_ci ], 3648c2ecf20Sopenharmony_ci "setup": [ 3658c2ecf20Sopenharmony_ci [ 3668c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 3678c2ecf20Sopenharmony_ci 0, 3688c2ecf20Sopenharmony_ci 1, 3698c2ecf20Sopenharmony_ci 255 3708c2ecf20Sopenharmony_ci ] 3718c2ecf20Sopenharmony_ci ], 3728c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit ptype host pipe index 11", 3738c2ecf20Sopenharmony_ci "expExitCode": "0", 3748c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions get action skbedit index 11", 3758c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit ptype host pipe.*index 11 ref", 3768c2ecf20Sopenharmony_ci "matchCount": "1", 3778c2ecf20Sopenharmony_ci "teardown": [ 3788c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 3798c2ecf20Sopenharmony_ci ] 3808c2ecf20Sopenharmony_ci }, 3818c2ecf20Sopenharmony_ci { 3828c2ecf20Sopenharmony_ci "id": "212f", 3838c2ecf20Sopenharmony_ci "name": "Add skbedit action with control reclassify", 3848c2ecf20Sopenharmony_ci "category": [ 3858c2ecf20Sopenharmony_ci "actions", 3868c2ecf20Sopenharmony_ci "skbedit" 3878c2ecf20Sopenharmony_ci ], 3888c2ecf20Sopenharmony_ci "setup": [ 3898c2ecf20Sopenharmony_ci [ 3908c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 3918c2ecf20Sopenharmony_ci 0, 3928c2ecf20Sopenharmony_ci 1, 3938c2ecf20Sopenharmony_ci 255 3948c2ecf20Sopenharmony_ci ] 3958c2ecf20Sopenharmony_ci ], 3968c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit mark 56789 reclassify index 90", 3978c2ecf20Sopenharmony_ci "expExitCode": "0", 3988c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions get action skbedit index 90", 3998c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit mark 56789 reclassify.*index 90 ref", 4008c2ecf20Sopenharmony_ci "matchCount": "1", 4018c2ecf20Sopenharmony_ci "teardown": [ 4028c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 4038c2ecf20Sopenharmony_ci ] 4048c2ecf20Sopenharmony_ci }, 4058c2ecf20Sopenharmony_ci { 4068c2ecf20Sopenharmony_ci "id": "0651", 4078c2ecf20Sopenharmony_ci "name": "Add skbedit action with control pass", 4088c2ecf20Sopenharmony_ci "category": [ 4098c2ecf20Sopenharmony_ci "actions", 4108c2ecf20Sopenharmony_ci "skbedit" 4118c2ecf20Sopenharmony_ci ], 4128c2ecf20Sopenharmony_ci "setup": [ 4138c2ecf20Sopenharmony_ci [ 4148c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 4158c2ecf20Sopenharmony_ci 0, 4168c2ecf20Sopenharmony_ci 1, 4178c2ecf20Sopenharmony_ci 255 4188c2ecf20Sopenharmony_ci ] 4198c2ecf20Sopenharmony_ci ], 4208c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit queue_mapping 3 pass index 271", 4218c2ecf20Sopenharmony_ci "expExitCode": "0", 4228c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions get action skbedit index 271", 4238c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit queue_mapping 3 pass.*index 271 ref", 4248c2ecf20Sopenharmony_ci "matchCount": "1", 4258c2ecf20Sopenharmony_ci "teardown": [ 4268c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 4278c2ecf20Sopenharmony_ci ] 4288c2ecf20Sopenharmony_ci }, 4298c2ecf20Sopenharmony_ci { 4308c2ecf20Sopenharmony_ci "id": "cc53", 4318c2ecf20Sopenharmony_ci "name": "Add skbedit action with control drop", 4328c2ecf20Sopenharmony_ci "category": [ 4338c2ecf20Sopenharmony_ci "actions", 4348c2ecf20Sopenharmony_ci "skbedit" 4358c2ecf20Sopenharmony_ci ], 4368c2ecf20Sopenharmony_ci "setup": [ 4378c2ecf20Sopenharmony_ci [ 4388c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 4398c2ecf20Sopenharmony_ci 0, 4408c2ecf20Sopenharmony_ci 1, 4418c2ecf20Sopenharmony_ci 255 4428c2ecf20Sopenharmony_ci ] 4438c2ecf20Sopenharmony_ci ], 4448c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit queue_mapping 3 drop index 271", 4458c2ecf20Sopenharmony_ci "expExitCode": "0", 4468c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions get action skbedit index 271", 4478c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit queue_mapping 3 drop.*index 271 ref", 4488c2ecf20Sopenharmony_ci "matchCount": "1", 4498c2ecf20Sopenharmony_ci "teardown": [ 4508c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 4518c2ecf20Sopenharmony_ci ] 4528c2ecf20Sopenharmony_ci }, 4538c2ecf20Sopenharmony_ci { 4548c2ecf20Sopenharmony_ci "id": "ec16", 4558c2ecf20Sopenharmony_ci "name": "Add skbedit action with control jump", 4568c2ecf20Sopenharmony_ci "category": [ 4578c2ecf20Sopenharmony_ci "actions", 4588c2ecf20Sopenharmony_ci "skbedit" 4598c2ecf20Sopenharmony_ci ], 4608c2ecf20Sopenharmony_ci "setup": [ 4618c2ecf20Sopenharmony_ci [ 4628c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 4638c2ecf20Sopenharmony_ci 0, 4648c2ecf20Sopenharmony_ci 1, 4658c2ecf20Sopenharmony_ci 255 4668c2ecf20Sopenharmony_ci ] 4678c2ecf20Sopenharmony_ci ], 4688c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit priority 8 jump 9 index 2", 4698c2ecf20Sopenharmony_ci "expExitCode": "0", 4708c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions get action skbedit index 2", 4718c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit priority :8 jump 9.*index 2 ref", 4728c2ecf20Sopenharmony_ci "matchCount": "1", 4738c2ecf20Sopenharmony_ci "teardown": [ 4748c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 4758c2ecf20Sopenharmony_ci ] 4768c2ecf20Sopenharmony_ci }, 4778c2ecf20Sopenharmony_ci { 4788c2ecf20Sopenharmony_ci "id": "db54", 4798c2ecf20Sopenharmony_ci "name": "Add skbedit action with control continue", 4808c2ecf20Sopenharmony_ci "category": [ 4818c2ecf20Sopenharmony_ci "actions", 4828c2ecf20Sopenharmony_ci "skbedit" 4838c2ecf20Sopenharmony_ci ], 4848c2ecf20Sopenharmony_ci "setup": [ 4858c2ecf20Sopenharmony_ci [ 4868c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 4878c2ecf20Sopenharmony_ci 0, 4888c2ecf20Sopenharmony_ci 1, 4898c2ecf20Sopenharmony_ci 255 4908c2ecf20Sopenharmony_ci ] 4918c2ecf20Sopenharmony_ci ], 4928c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit priority 16 continue index 32", 4938c2ecf20Sopenharmony_ci "expExitCode": "0", 4948c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions get action skbedit index 32", 4958c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit priority :16 continue.*index 32 ref", 4968c2ecf20Sopenharmony_ci "matchCount": "1", 4978c2ecf20Sopenharmony_ci "teardown": [ 4988c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 4998c2ecf20Sopenharmony_ci ] 5008c2ecf20Sopenharmony_ci }, 5018c2ecf20Sopenharmony_ci { 5028c2ecf20Sopenharmony_ci "id": "1055", 5038c2ecf20Sopenharmony_ci "name": "Add skbedit action with cookie", 5048c2ecf20Sopenharmony_ci "category": [ 5058c2ecf20Sopenharmony_ci "actions", 5068c2ecf20Sopenharmony_ci "skbedit" 5078c2ecf20Sopenharmony_ci ], 5088c2ecf20Sopenharmony_ci "setup": [ 5098c2ecf20Sopenharmony_ci [ 5108c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 5118c2ecf20Sopenharmony_ci 0, 5128c2ecf20Sopenharmony_ci 1, 5138c2ecf20Sopenharmony_ci 255 5148c2ecf20Sopenharmony_ci ] 5158c2ecf20Sopenharmony_ci ], 5168c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit priority 16 continue index 32 cookie deadbeef", 5178c2ecf20Sopenharmony_ci "expExitCode": "0", 5188c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions get action skbedit index 32", 5198c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit priority :16 continue.*index 32 ref.*cookie deadbeef", 5208c2ecf20Sopenharmony_ci "matchCount": "1", 5218c2ecf20Sopenharmony_ci "teardown": [ 5228c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 5238c2ecf20Sopenharmony_ci ] 5248c2ecf20Sopenharmony_ci }, 5258c2ecf20Sopenharmony_ci { 5268c2ecf20Sopenharmony_ci "id": "5172", 5278c2ecf20Sopenharmony_ci "name": "List skbedit actions", 5288c2ecf20Sopenharmony_ci "category": [ 5298c2ecf20Sopenharmony_ci "actions", 5308c2ecf20Sopenharmony_ci "skbedit" 5318c2ecf20Sopenharmony_ci ], 5328c2ecf20Sopenharmony_ci "setup": [ 5338c2ecf20Sopenharmony_ci [ 5348c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 5358c2ecf20Sopenharmony_ci 0, 5368c2ecf20Sopenharmony_ci 1, 5378c2ecf20Sopenharmony_ci 255 5388c2ecf20Sopenharmony_ci ], 5398c2ecf20Sopenharmony_ci "$TC actions add action skbedit ptype otherhost", 5408c2ecf20Sopenharmony_ci "$TC actions add action skbedit ptype broadcast", 5418c2ecf20Sopenharmony_ci "$TC actions add action skbedit mark 59", 5428c2ecf20Sopenharmony_ci "$TC actions add action skbedit mark 409" 5438c2ecf20Sopenharmony_ci ], 5448c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions list action skbedit", 5458c2ecf20Sopenharmony_ci "expExitCode": "0", 5468c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 5478c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit", 5488c2ecf20Sopenharmony_ci "matchCount": "4", 5498c2ecf20Sopenharmony_ci "teardown": [ 5508c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 5518c2ecf20Sopenharmony_ci ] 5528c2ecf20Sopenharmony_ci }, 5538c2ecf20Sopenharmony_ci { 5548c2ecf20Sopenharmony_ci "id": "a6d6", 5558c2ecf20Sopenharmony_ci "name": "Add skbedit action with index at 32-bit maximum", 5568c2ecf20Sopenharmony_ci "category": [ 5578c2ecf20Sopenharmony_ci "actions", 5588c2ecf20Sopenharmony_ci "skbedit" 5598c2ecf20Sopenharmony_ci ], 5608c2ecf20Sopenharmony_ci "setup": [ 5618c2ecf20Sopenharmony_ci [ 5628c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 5638c2ecf20Sopenharmony_ci 0, 5648c2ecf20Sopenharmony_ci 1, 5658c2ecf20Sopenharmony_ci 255 5668c2ecf20Sopenharmony_ci ] 5678c2ecf20Sopenharmony_ci ], 5688c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit mark 808 index 4294967295", 5698c2ecf20Sopenharmony_ci "expExitCode": "0", 5708c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions get action skbedit index 4294967295", 5718c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit mark 808.*index 4294967295", 5728c2ecf20Sopenharmony_ci "matchCount": "1", 5738c2ecf20Sopenharmony_ci "teardown": [ 5748c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 5758c2ecf20Sopenharmony_ci ] 5768c2ecf20Sopenharmony_ci }, 5778c2ecf20Sopenharmony_ci { 5788c2ecf20Sopenharmony_ci "id": "f0f4", 5798c2ecf20Sopenharmony_ci "name": "Add skbedit action with index exceeding 32-bit maximum", 5808c2ecf20Sopenharmony_ci "category": [ 5818c2ecf20Sopenharmony_ci "actions", 5828c2ecf20Sopenharmony_ci "skbedit" 5838c2ecf20Sopenharmony_ci ], 5848c2ecf20Sopenharmony_ci "setup": [ 5858c2ecf20Sopenharmony_ci [ 5868c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 5878c2ecf20Sopenharmony_ci 0, 5888c2ecf20Sopenharmony_ci 1, 5898c2ecf20Sopenharmony_ci 255 5908c2ecf20Sopenharmony_ci ] 5918c2ecf20Sopenharmony_ci ], 5928c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions add action skbedit mark 808 pass index 4294967297", 5938c2ecf20Sopenharmony_ci "expExitCode": "255", 5948c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions get action skbedit index 4294967297", 5958c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*:.*skbedit.*mark 808.*pass.*index 4294967297", 5968c2ecf20Sopenharmony_ci "matchCount": "0", 5978c2ecf20Sopenharmony_ci "teardown": [] 5988c2ecf20Sopenharmony_ci }, 5998c2ecf20Sopenharmony_ci { 6008c2ecf20Sopenharmony_ci "id": "38f3", 6018c2ecf20Sopenharmony_ci "name": "Delete skbedit action", 6028c2ecf20Sopenharmony_ci "category": [ 6038c2ecf20Sopenharmony_ci "actions", 6048c2ecf20Sopenharmony_ci "skbedit" 6058c2ecf20Sopenharmony_ci ], 6068c2ecf20Sopenharmony_ci "setup": [ 6078c2ecf20Sopenharmony_ci [ 6088c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 6098c2ecf20Sopenharmony_ci 0, 6108c2ecf20Sopenharmony_ci 1, 6118c2ecf20Sopenharmony_ci 255 6128c2ecf20Sopenharmony_ci ], 6138c2ecf20Sopenharmony_ci "$TC actions add action skbedit mark 42 index 9009" 6148c2ecf20Sopenharmony_ci ], 6158c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions del action skbedit index 9009", 6168c2ecf20Sopenharmony_ci "expExitCode": "0", 6178c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 6188c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit mark 42", 6198c2ecf20Sopenharmony_ci "matchCount": "0", 6208c2ecf20Sopenharmony_ci "teardown": [ 6218c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 6228c2ecf20Sopenharmony_ci ] 6238c2ecf20Sopenharmony_ci }, 6248c2ecf20Sopenharmony_ci { 6258c2ecf20Sopenharmony_ci "id": "ce97", 6268c2ecf20Sopenharmony_ci "name": "Flush skbedit actions", 6278c2ecf20Sopenharmony_ci "category": [ 6288c2ecf20Sopenharmony_ci "actions", 6298c2ecf20Sopenharmony_ci "skbedit" 6308c2ecf20Sopenharmony_ci ], 6318c2ecf20Sopenharmony_ci "setup": [ 6328c2ecf20Sopenharmony_ci "$TC actions add action skbedit mark 500", 6338c2ecf20Sopenharmony_ci "$TC actions add action skbedit mark 501", 6348c2ecf20Sopenharmony_ci "$TC actions add action skbedit mark 502", 6358c2ecf20Sopenharmony_ci "$TC actions add action skbedit mark 503", 6368c2ecf20Sopenharmony_ci "$TC actions add action skbedit mark 504", 6378c2ecf20Sopenharmony_ci "$TC actions add action skbedit mark 505", 6388c2ecf20Sopenharmony_ci "$TC actions add action skbedit mark 506" 6398c2ecf20Sopenharmony_ci ], 6408c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions flush action skbedit", 6418c2ecf20Sopenharmony_ci "expExitCode": "0", 6428c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 6438c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit", 6448c2ecf20Sopenharmony_ci "matchCount": "0", 6458c2ecf20Sopenharmony_ci "teardown": [ 6468c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 6478c2ecf20Sopenharmony_ci ] 6488c2ecf20Sopenharmony_ci }, 6498c2ecf20Sopenharmony_ci { 6508c2ecf20Sopenharmony_ci "id": "1b2b", 6518c2ecf20Sopenharmony_ci "name": "Replace skbedit action with invalid goto_chain control", 6528c2ecf20Sopenharmony_ci "category": [ 6538c2ecf20Sopenharmony_ci "actions", 6548c2ecf20Sopenharmony_ci "skbedit" 6558c2ecf20Sopenharmony_ci ], 6568c2ecf20Sopenharmony_ci "setup": [ 6578c2ecf20Sopenharmony_ci [ 6588c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 6598c2ecf20Sopenharmony_ci 0, 6608c2ecf20Sopenharmony_ci 1, 6618c2ecf20Sopenharmony_ci 255 6628c2ecf20Sopenharmony_ci ], 6638c2ecf20Sopenharmony_ci "$TC actions add action skbedit ptype host pass index 90" 6648c2ecf20Sopenharmony_ci ], 6658c2ecf20Sopenharmony_ci "cmdUnderTest": "$TC actions replace action skbedit ptype host goto chain 42 index 90 cookie c1a0c1a0", 6668c2ecf20Sopenharmony_ci "expExitCode": "255", 6678c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 6688c2ecf20Sopenharmony_ci "matchPattern": "action order [0-9]*: skbedit ptype host pass.*index 90 ref", 6698c2ecf20Sopenharmony_ci "matchCount": "1", 6708c2ecf20Sopenharmony_ci "teardown": [ 6718c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 6728c2ecf20Sopenharmony_ci ] 6738c2ecf20Sopenharmony_ci }, 6748c2ecf20Sopenharmony_ci { 6758c2ecf20Sopenharmony_ci "id": "630c", 6768c2ecf20Sopenharmony_ci "name": "Add batch of 32 skbedit actions with all parameters and cookie", 6778c2ecf20Sopenharmony_ci "category": [ 6788c2ecf20Sopenharmony_ci "actions", 6798c2ecf20Sopenharmony_ci "skbedit" 6808c2ecf20Sopenharmony_ci ], 6818c2ecf20Sopenharmony_ci "setup": [ 6828c2ecf20Sopenharmony_ci [ 6838c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 6848c2ecf20Sopenharmony_ci 0, 6858c2ecf20Sopenharmony_ci 1, 6868c2ecf20Sopenharmony_ci 255 6878c2ecf20Sopenharmony_ci ] 6888c2ecf20Sopenharmony_ci ], 6898c2ecf20Sopenharmony_ci "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action skbedit queue_mapping 2 priority 10 mark 7/0xaabbccdd ptype host inheritdsfield index \\$i cookie aabbccddeeff112233445566778800a1 \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"", 6908c2ecf20Sopenharmony_ci "expExitCode": "0", 6918c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 6928c2ecf20Sopenharmony_ci "matchPattern": "^[ \t]+index [0-9]+ ref", 6938c2ecf20Sopenharmony_ci "matchCount": "32", 6948c2ecf20Sopenharmony_ci "teardown": [ 6958c2ecf20Sopenharmony_ci "$TC actions flush action skbedit" 6968c2ecf20Sopenharmony_ci ] 6978c2ecf20Sopenharmony_ci }, 6988c2ecf20Sopenharmony_ci { 6998c2ecf20Sopenharmony_ci "id": "706d", 7008c2ecf20Sopenharmony_ci "name": "Delete batch of 32 skbedit actions with all parameters", 7018c2ecf20Sopenharmony_ci "category": [ 7028c2ecf20Sopenharmony_ci "actions", 7038c2ecf20Sopenharmony_ci "skbedit" 7048c2ecf20Sopenharmony_ci ], 7058c2ecf20Sopenharmony_ci "setup": [ 7068c2ecf20Sopenharmony_ci [ 7078c2ecf20Sopenharmony_ci "$TC actions flush action skbedit", 7088c2ecf20Sopenharmony_ci 0, 7098c2ecf20Sopenharmony_ci 1, 7108c2ecf20Sopenharmony_ci 255 7118c2ecf20Sopenharmony_ci ], 7128c2ecf20Sopenharmony_ci "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action skbedit queue_mapping 2 priority 10 mark 7/0xaabbccdd ptype host inheritdsfield index \\$i \\\"; args=\\\"\\$args\\$cmd\\\"; done && $TC actions add \\$args\"" 7138c2ecf20Sopenharmony_ci ], 7148c2ecf20Sopenharmony_ci "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action skbedit index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions del \\$args\"", 7158c2ecf20Sopenharmony_ci "expExitCode": "0", 7168c2ecf20Sopenharmony_ci "verifyCmd": "$TC actions list action skbedit", 7178c2ecf20Sopenharmony_ci "matchPattern": "^[ \t]+index [0-9]+ ref", 7188c2ecf20Sopenharmony_ci "matchCount": "0", 7198c2ecf20Sopenharmony_ci "teardown": [] 7208c2ecf20Sopenharmony_ci } 7218c2ecf20Sopenharmony_ci] 722