skbmod.json (13250B)
1[ 2 { 3 "id": "7d50", 4 "name": "Add skbmod action to set destination mac", 5 "category": [ 6 "actions", 7 "skbmod" 8 ], 9 "setup": [ 10 [ 11 "$TC actions flush action skbmod", 12 0, 13 1, 14 255 15 ] 16 ], 17 "cmdUnderTest": "$TC actions add action skbmod set dmac 11:22:33:44:55:66 index 5", 18 "expExitCode": "0", 19 "verifyCmd": "$TC actions ls action skbmod", 20 "matchPattern": "action order [0-9]*: skbmod pipe set dmac 11:22:33:44:55:66\\s+index 5", 21 "matchCount": "1", 22 "teardown": [ 23 "$TC actions flush action skbmod" 24 ] 25 }, 26 { 27 "id": "9b29", 28 "name": "Add skbmod action to set source mac", 29 "category": [ 30 "actions", 31 "skbmod" 32 ], 33 "setup": [ 34 [ 35 "$TC actions flush action skbmod", 36 0, 37 1, 38 255 39 ] 40 ], 41 "cmdUnderTest": "$TC actions add action skbmod set smac 77:88:99:AA:BB:CC index 7", 42 "expExitCode": "0", 43 "verifyCmd": "$TC actions get action skbmod index 7", 44 "matchPattern": "action order [0-9]*: skbmod pipe set smac 77:88:99:aa:bb:cc\\s+index 7", 45 "matchCount": "1", 46 "teardown": [ 47 "$TC actions flush action skbmod" 48 ] 49 }, 50 { 51 "id": "1724", 52 "name": "Add skbmod action with invalid mac", 53 "category": [ 54 "actions", 55 "skbmod" 56 ], 57 "setup": [ 58 [ 59 "$TC actions flush action skbmod", 60 0, 61 1, 62 255 63 ] 64 ], 65 "cmdUnderTest": "$TC actions add action skbmod set smac 00:44:55:44:55", 66 "expExitCode": "255", 67 "verifyCmd": "$TC actions ls action skbmod", 68 "matchPattern": "action order [0-9]*: skbmod pipe set smac 00:44:55:44:55", 69 "matchCount": "0", 70 "teardown": [ 71 "$TC actions flush action skbmod" 72 ] 73 }, 74 { 75 "id": "3cf1", 76 "name": "Add skbmod action with valid etype", 77 "category": [ 78 "actions", 79 "skbmod" 80 ], 81 "setup": [ 82 [ 83 "$TC actions flush action skbmod", 84 0, 85 1, 86 255 87 ] 88 ], 89 "cmdUnderTest": "$TC actions add action skbmod set etype 0xfefe", 90 "expExitCode": "0", 91 "verifyCmd": "$TC actions ls action skbmod", 92 "matchPattern": "action order [0-9]*: skbmod pipe set etype 0xFEFE", 93 "matchCount": "1", 94 "teardown": [ 95 "$TC actions flush action skbmod" 96 ] 97 }, 98 { 99 "id": "a749", 100 "name": "Add skbmod action with invalid etype", 101 "category": [ 102 "actions", 103 "skbmod" 104 ], 105 "setup": [ 106 [ 107 "$TC actions flush action skbmod", 108 0, 109 1, 110 255 111 ] 112 ], 113 "cmdUnderTest": "$TC actions add action skbmod set etype 0xfefef", 114 "expExitCode": "255", 115 "verifyCmd": "$TC actions ls action skbmod", 116 "matchPattern": "action order [0-9]*: skbmod pipe set etype 0xFEFEF", 117 "matchCount": "0", 118 "teardown": [ 119 "$TC actions flush action skbmod" 120 ] 121 }, 122 { 123 "id": "bfe6", 124 "name": "Add skbmod action to swap mac", 125 "category": [ 126 "actions", 127 "skbmod" 128 ], 129 "setup": [ 130 [ 131 "$TC actions flush action skbmod", 132 0, 133 1, 134 255 135 ] 136 ], 137 "cmdUnderTest": "$TC actions add action skbmod swap mac", 138 "expExitCode": "0", 139 "verifyCmd": "$TC actions get action skbmod index 1", 140 "matchPattern": "action order [0-9]*: skbmod pipe swap mac", 141 "matchCount": "1", 142 "teardown": [ 143 "$TC actions flush action skbmod" 144 ] 145 }, 146 { 147 "id": "839b", 148 "name": "Add skbmod action with control pipe", 149 "category": [ 150 "actions", 151 "skbmod" 152 ], 153 "setup": [ 154 [ 155 "$TC actions flush action skbmod", 156 0, 157 1, 158 255 159 ] 160 ], 161 "cmdUnderTest": "$TC actions add action skbmod swap mac pipe", 162 "expExitCode": "0", 163 "verifyCmd": "$TC actions ls action skbmod", 164 "matchPattern": "action order [0-9]*: skbmod pipe swap mac", 165 "matchCount": "1", 166 "teardown": [ 167 "$TC actions flush action skbmod" 168 ] 169 }, 170 { 171 "id": "c167", 172 "name": "Add skbmod action with control reclassify", 173 "category": [ 174 "actions", 175 "skbmod" 176 ], 177 "setup": [ 178 [ 179 "$TC actions flush action skbmod", 180 0, 181 1, 182 255 183 ] 184 ], 185 "cmdUnderTest": "$TC actions add action skbmod set etype 0xbeef reclassify", 186 "expExitCode": "0", 187 "verifyCmd": "$TC actions ls action skbmod", 188 "matchPattern": "action order [0-9]*: skbmod reclassify set etype 0xBEEF", 189 "matchCount": "1", 190 "teardown": [ 191 "$TC actions flush action skbmod" 192 ] 193 }, 194 { 195 "id": "0c2f", 196 "name": "Add skbmod action with control drop", 197 "category": [ 198 "actions", 199 "skbmod" 200 ], 201 "setup": [ 202 [ 203 "$TC actions flush action skbmod", 204 0, 205 1, 206 255 207 ] 208 ], 209 "cmdUnderTest": "$TC actions add action skbmod set etype 0x0001 drop", 210 "expExitCode": "0", 211 "verifyCmd": "$TC actions get action skbmod index 1", 212 "matchPattern": "action order [0-9]*: skbmod drop set etype 0x1", 213 "matchCount": "1", 214 "teardown": [ 215 "$TC actions flush action skbmod" 216 ] 217 }, 218 { 219 "id": "d113", 220 "name": "Add skbmod action with control continue", 221 "category": [ 222 "actions", 223 "skbmod" 224 ], 225 "setup": [ 226 [ 227 "$TC actions flush action skbmod", 228 0, 229 1, 230 255 231 ] 232 ], 233 "cmdUnderTest": "$TC actions add action skbmod set etype 0x1 continue", 234 "expExitCode": "0", 235 "verifyCmd": "$TC actions ls action skbmod", 236 "matchPattern": "action order [0-9]*: skbmod continue set etype 0x1", 237 "matchCount": "1", 238 "teardown": [ 239 "$TC actions flush action skbmod" 240 ] 241 }, 242 { 243 "id": "7242", 244 "name": "Add skbmod action with control pass", 245 "category": [ 246 "actions", 247 "skbmod" 248 ], 249 "setup": [ 250 [ 251 "$TC actions flush action skbmod", 252 0, 253 1, 254 255 255 ] 256 ], 257 "cmdUnderTest": "$TC actions add action skbmod set smac 00:00:00:00:00:01 pass", 258 "expExitCode": "0", 259 "verifyCmd": "$TC actions ls action skbmod", 260 "matchPattern": "action order [0-9]*: skbmod pass set smac 00:00:00:00:00:01", 261 "matchCount": "1", 262 "teardown": [ 263 "$TC actions flush action skbmod" 264 ] 265 }, 266 { 267 "id": "6046", 268 "name": "Add skbmod action with control reclassify and cookie", 269 "category": [ 270 "actions", 271 "skbmod" 272 ], 273 "setup": [ 274 [ 275 "$TC actions flush action skbmod", 276 0, 277 1, 278 255 279 ] 280 ], 281 "cmdUnderTest": "$TC actions add action skbmod set smac 00:01:02:03:04:01 reclassify index 1 cookie ddeeffaabb11cc22", 282 "expExitCode": "0", 283 "verifyCmd": "$TC actions get action skbmod index 1", 284 "matchPattern": "action order [0-9]*: skbmod reclassify set smac 00:01:02:03:04:01.*index 1 ref.*cookie ddeeffaabb11cc22", 285 "matchCount": "1", 286 "teardown": [ 287 "$TC actions flush action skbmod" 288 ] 289 }, 290 { 291 "id": "58cb", 292 "name": "List skbmod actions", 293 "category": [ 294 "actions", 295 "skbmod" 296 ], 297 "setup": [ 298 [ 299 "$TC actions flush action skbmod", 300 0, 301 1, 302 255 303 ], 304 "$TC actions add action skbmod set etype 0x0001", 305 "$TC actions add action skbmod set etype 0x0011", 306 "$TC actions add action skbmod set etype 0x0021", 307 "$TC actions add action skbmod set etype 0x0031", 308 "$TC actions add action skbmod set etype 0x0041" 309 ], 310 "cmdUnderTest": "$TC actions ls action skbmod", 311 "expExitCode": "0", 312 "verifyCmd": "$TC actions ls action skbmod", 313 "matchPattern": "action order [0-9]*: skbmod", 314 "matchCount": "5", 315 "teardown": [ 316 "$TC actions flush action skbmod" 317 ] 318 }, 319 { 320 "id": "9aa8", 321 "name": "Get a single skbmod action from a list", 322 "category": [ 323 "actions", 324 "skbmod" 325 ], 326 "setup": [ 327 [ 328 "$TC actions flush action skbmod", 329 0, 330 1, 331 255 332 ], 333 "$TC actions add action skbmod set etype 0x0001", 334 "$TC actions add action skbmod set etype 0x0011", 335 "$TC actions add action skbmod set etype 0x0021", 336 "$TC actions add action skbmod set etype 0x0031", 337 "$TC actions add action skbmod set etype 0x0041" 338 ], 339 "cmdUnderTest": "$TC actions ls action skbmod", 340 "expExitCode": "0", 341 "verifyCmd": "$TC actions get action skbmod index 4", 342 "matchPattern": "action order [0-9]*: skbmod pipe set etype 0x31", 343 "matchCount": "1", 344 "teardown": [ 345 "$TC actions flush action skbmod" 346 ] 347 }, 348 { 349 "id": "e93a", 350 "name": "Delete an skbmod action", 351 "category": [ 352 "actions", 353 "skbmod" 354 ], 355 "setup": [ 356 [ 357 "$TC actions flush action skbmod", 358 0, 359 1, 360 255 361 ], 362 "$TC actions add action skbmod set etype 0x1111 index 909" 363 ], 364 "cmdUnderTest": "$TC actions del action skbmod index 909", 365 "expExitCode": "0", 366 "verifyCmd": "$TC actions ls action skbmod", 367 "matchPattern": "action order [0-9]*: skbmod pipe set etype 0x1111\\s+index 909", 368 "matchCount": "0", 369 "teardown": [ 370 "$TC actions flush action skbmod" 371 ] 372 }, 373 { 374 "id": "40c2", 375 "name": "Flush skbmod actions", 376 "category": [ 377 "actions", 378 "skbmod" 379 ], 380 "setup": [ 381 "$TC actions add action skbmod set etype 0x0001", 382 "$TC actions add action skbmod set etype 0x0011", 383 "$TC actions add action skbmod set etype 0x0021", 384 "$TC actions add action skbmod set etype 0x0031", 385 "$TC actions add action skbmod set etype 0x0041" 386 ], 387 "cmdUnderTest": "$TC actions flush action skbmod", 388 "expExitCode": "0", 389 "verifyCmd": "$TC actions ls action skbmod", 390 "matchPattern": "action order [0-9]*: skbmod", 391 "matchCount": "0", 392 "teardown": [ 393 "$TC actions flush action skbmod" 394 ] 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 ] 420 }, 421 { 422 "id": "fe09", 423 "name": "Add skbmod action to mark ECN bits", 424 "category": [ 425 "actions", 426 "skbmod" 427 ], 428 "setup": [ 429 [ 430 "$TC actions flush action skbmod", 431 0, 432 1, 433 255 434 ] 435 ], 436 "cmdUnderTest": "$TC actions add action skbmod ecn", 437 "expExitCode": "0", 438 "verifyCmd": "$TC actions get action skbmod index 1", 439 "matchPattern": "action order [0-9]*: skbmod pipe ecn", 440 "matchCount": "1", 441 "teardown": [ 442 "$TC actions flush action skbmod" 443 ] 444 } 445]