| .. | .. |
|---|
| 54 | 54 | "actions", |
|---|
| 55 | 55 | "bpf" |
|---|
| 56 | 56 | ], |
|---|
| 57 | + "plugins": { |
|---|
| 58 | + "requires": "buildebpfPlugin" |
|---|
| 59 | + }, |
|---|
| 57 | 60 | "setup": [ |
|---|
| 58 | | - "make -C bpf", |
|---|
| 59 | 61 | [ |
|---|
| 60 | 62 | "$TC action flush action bpf", |
|---|
| 61 | 63 | 0, |
|---|
| .. | .. |
|---|
| 69 | 71 | "matchPattern": "action order [0-9]*: bpf action.o:\\[action-ok\\] id [0-9]* tag [0-9a-f]{16}( jited)? default-action pipe.*index 667 ref", |
|---|
| 70 | 72 | "matchCount": "1", |
|---|
| 71 | 73 | "teardown": [ |
|---|
| 72 | | - "$TC action flush action bpf", |
|---|
| 73 | | - "make -C bpf clean" |
|---|
| 74 | + "$TC action flush action bpf" |
|---|
| 74 | 75 | ] |
|---|
| 75 | 76 | }, |
|---|
| 76 | 77 | { |
|---|
| .. | .. |
|---|
| 80 | 81 | "actions", |
|---|
| 81 | 82 | "bpf" |
|---|
| 82 | 83 | ], |
|---|
| 84 | + "plugins": { |
|---|
| 85 | + "requires": "buildebpfPlugin" |
|---|
| 86 | + }, |
|---|
| 83 | 87 | "setup": [ |
|---|
| 84 | | - "make -C bpf", |
|---|
| 85 | 88 | [ |
|---|
| 86 | 89 | "$TC action flush action bpf", |
|---|
| 87 | 90 | 0, |
|---|
| .. | .. |
|---|
| 100 | 103 | 0, |
|---|
| 101 | 104 | 1, |
|---|
| 102 | 105 | 255 |
|---|
| 103 | | - ], |
|---|
| 104 | | - "make -C bpf clean" |
|---|
| 106 | + ] |
|---|
| 105 | 107 | ] |
|---|
| 106 | 108 | }, |
|---|
| 107 | 109 | { |
|---|
| .. | .. |
|---|
| 258 | 260 | 255 |
|---|
| 259 | 261 | ] |
|---|
| 260 | 262 | ], |
|---|
| 261 | | - "cmdUnderTest": "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2054,6 0 0 262144,6 0 0 0' index 4294967296 cookie 12345", |
|---|
| 263 | + "cmdUnderTest": "$TC action add action bpf bytecode '4,40 0 0 12,21 0 1 2054,6 0 0 262144,6 0 0 0' index 4294967296 cookie 123456", |
|---|
| 262 | 264 | "expExitCode": "255", |
|---|
| 263 | 265 | "verifyCmd": "$TC action ls action bpf", |
|---|
| 264 | | - "matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' default-action pipe.*cookie 12345", |
|---|
| 266 | + "matchPattern": "action order [0-9]*: bpf bytecode '4,40 0 0 12,21 0 1 2048,6 0 0 262144,6 0 0 0' default-action pipe.*cookie 123456", |
|---|
| 265 | 267 | "matchCount": "0", |
|---|
| 266 | 268 | "teardown": [ |
|---|
| 267 | 269 | "$TC action flush action bpf" |
|---|
| .. | .. |
|---|
| 290 | 292 | "teardown": [ |
|---|
| 291 | 293 | "$TC action flush action bpf" |
|---|
| 292 | 294 | ] |
|---|
| 295 | + }, |
|---|
| 296 | + { |
|---|
| 297 | + "id": "b8a1", |
|---|
| 298 | + "name": "Replace bpf action with invalid goto_chain control", |
|---|
| 299 | + "category": [ |
|---|
| 300 | + "actions", |
|---|
| 301 | + "bpf" |
|---|
| 302 | + ], |
|---|
| 303 | + "setup": [ |
|---|
| 304 | + [ |
|---|
| 305 | + "$TC actions flush action bpf", |
|---|
| 306 | + 0, |
|---|
| 307 | + 1, |
|---|
| 308 | + 255 |
|---|
| 309 | + ], |
|---|
| 310 | + "$TC action add action bpf bytecode '1,6 0 0 4294967295' pass index 90" |
|---|
| 311 | + ], |
|---|
| 312 | + "cmdUnderTest": "$TC action replace action bpf bytecode '1,6 0 0 4294967295' goto chain 42 index 90 cookie c1a0c1a0", |
|---|
| 313 | + "expExitCode": "255", |
|---|
| 314 | + "verifyCmd": "$TC action list action bpf", |
|---|
| 315 | + "matchPattern": "action order [0-9]*: bpf.* default-action pass.*index 90", |
|---|
| 316 | + "matchCount": "1", |
|---|
| 317 | + "teardown": [ |
|---|
| 318 | + "$TC action flush action bpf" |
|---|
| 319 | + ] |
|---|
| 293 | 320 | } |
|---|
| 294 | 321 | ] |
|---|