~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/testing/selftests/tc-testing/tc-tests/actions/gact.json

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /tools/testing/selftests/tc-testing/tc-tests/actions/gact.json (Architecture i386) and /tools/testing/selftests/tc-testing/tc-tests/actions/gact.json (Architecture sparc64)


  1 [                                                   1 [
  2     {                                               2     {
  3         "id": "e89a",                               3         "id": "e89a",
  4         "name": "Add valid pass action",            4         "name": "Add valid pass action",
  5         "category": [                               5         "category": [
  6             "actions",                              6             "actions",
  7             "gact"                                  7             "gact"
  8         ],                                          8         ],
  9         "plugins": {                                9         "plugins": {
 10            "requires": "nsPlugin"                  10            "requires": "nsPlugin"
 11         },                                         11         },
 12         "setup": [                                 12         "setup": [
 13             [                                      13             [
 14                 "$TC actions flush action gact     14                 "$TC actions flush action gact",
 15                 0,                                 15                 0,
 16                 1,                                 16                 1,
 17                 255                                17                 255
 18             ]                                      18             ]
 19         ],                                         19         ],
 20         "cmdUnderTest": "$TC actions add actio     20         "cmdUnderTest": "$TC actions add action pass index 8",
 21         "expExitCode": "0",                        21         "expExitCode": "0",
 22         "verifyCmd": "$TC actions list action      22         "verifyCmd": "$TC actions list action gact",
 23         "matchPattern": "action order [0-9]*:      23         "matchPattern": "action order [0-9]*: gact action pass.*index 8 ref",
 24         "matchCount": "1",                         24         "matchCount": "1",
 25         "teardown": [                              25         "teardown": [
 26             "$TC actions flush action gact"        26             "$TC actions flush action gact"
 27         ]                                          27         ]
 28     },                                             28     },
 29     {                                              29     {
 30         "id": "a02c",                              30         "id": "a02c",
 31         "name": "Add valid pipe action",           31         "name": "Add valid pipe action",
 32         "category": [                              32         "category": [
 33             "actions",                             33             "actions",
 34             "gact"                                 34             "gact"
 35         ],                                         35         ],
 36         "plugins": {                               36         "plugins": {
 37            "requires": "nsPlugin"                  37            "requires": "nsPlugin"
 38         },                                         38         },
 39         "setup": [                                 39         "setup": [
 40             [                                      40             [
 41                 "$TC actions flush action gact     41                 "$TC actions flush action gact",
 42                 0,                                 42                 0,
 43                 1,                                 43                 1,
 44                 255                                44                 255
 45             ]                                      45             ]
 46         ],                                         46         ],
 47         "cmdUnderTest": "$TC actions add actio     47         "cmdUnderTest": "$TC actions add action pipe index 6",
 48         "expExitCode": "0",                        48         "expExitCode": "0",
 49         "verifyCmd": "$TC actions list action      49         "verifyCmd": "$TC actions list action gact",
 50         "matchPattern": "action order [0-9]*:      50         "matchPattern": "action order [0-9]*: gact action pipe.*index 6 ref",
 51         "matchCount": "1",                         51         "matchCount": "1",
 52         "teardown": [                              52         "teardown": [
 53             "$TC actions flush action gact"        53             "$TC actions flush action gact"
 54         ]                                          54         ]
 55     },                                             55     },
 56     {                                              56     {
 57         "id": "feef",                              57         "id": "feef",
 58         "name": "Add valid reclassify action",     58         "name": "Add valid reclassify action",
 59         "category": [                              59         "category": [
 60             "actions",                             60             "actions",
 61             "gact"                                 61             "gact"
 62         ],                                         62         ],
 63         "plugins": {                               63         "plugins": {
 64            "requires": "nsPlugin"                  64            "requires": "nsPlugin"
 65         },                                         65         },
 66         "setup": [                                 66         "setup": [
 67             [                                      67             [
 68                 "$TC actions flush action gact     68                 "$TC actions flush action gact",
 69                 0,                                 69                 0,
 70                 1,                                 70                 1,
 71                 255                                71                 255
 72             ]                                      72             ]
 73         ],                                         73         ],
 74         "cmdUnderTest": "$TC actions add actio     74         "cmdUnderTest": "$TC actions add action reclassify index 5",
 75         "expExitCode": "0",                        75         "expExitCode": "0",
 76         "verifyCmd": "$TC actions list action      76         "verifyCmd": "$TC actions list action gact",
 77         "matchPattern": "action order [0-9]*:      77         "matchPattern": "action order [0-9]*: gact action reclassify.*index 5 ref",
 78         "matchCount": "1",                         78         "matchCount": "1",
 79         "teardown": [                              79         "teardown": [
 80             "$TC actions flush action gact"        80             "$TC actions flush action gact"
 81         ]                                          81         ]
 82     },                                             82     },
 83     {                                              83     {
 84         "id": "8a7a",                              84         "id": "8a7a",
 85         "name": "Add valid drop action",           85         "name": "Add valid drop action",
 86         "category": [                              86         "category": [
 87             "actions",                             87             "actions",
 88             "gact"                                 88             "gact"
 89         ],                                         89         ],
 90         "plugins": {                               90         "plugins": {
 91            "requires": "nsPlugin"                  91            "requires": "nsPlugin"
 92         },                                         92         },
 93         "setup": [                                 93         "setup": [
 94             [                                      94             [
 95                 "$TC actions flush action gact     95                 "$TC actions flush action gact",
 96                 0,                                 96                 0,
 97                 1,                                 97                 1,
 98                 255                                98                 255
 99             ]                                      99             ]
100         ],                                        100         ],
101         "cmdUnderTest": "$TC actions add actio    101         "cmdUnderTest": "$TC actions add action drop index 30",
102         "expExitCode": "0",                       102         "expExitCode": "0",
103         "verifyCmd": "$TC actions list action     103         "verifyCmd": "$TC actions list action gact",
104         "matchPattern": "action order [0-9]*:     104         "matchPattern": "action order [0-9]*: gact action drop.*index 30 ref",
105         "matchCount": "1",                        105         "matchCount": "1",
106         "teardown": [                             106         "teardown": [
107             "$TC actions flush action gact"       107             "$TC actions flush action gact"
108         ]                                         108         ]
109     },                                            109     },
110     {                                             110     {
111         "id": "9a52",                             111         "id": "9a52",
112         "name": "Add valid continue action",      112         "name": "Add valid continue action",
113         "category": [                             113         "category": [
114             "actions",                            114             "actions",
115             "gact"                                115             "gact"
116         ],                                        116         ],
117         "plugins": {                              117         "plugins": {
118            "requires": "nsPlugin"                 118            "requires": "nsPlugin"
119         },                                        119         },
120         "setup": [                                120         "setup": [
121             [                                     121             [
122                 "$TC actions flush action gact    122                 "$TC actions flush action gact",
123                 0,                                123                 0,
124                 1,                                124                 1,
125                 255                               125                 255
126             ]                                     126             ]
127         ],                                        127         ],
128         "cmdUnderTest": "$TC actions add actio    128         "cmdUnderTest": "$TC actions add action continue index 432",
129         "expExitCode": "0",                       129         "expExitCode": "0",
130         "verifyCmd": "$TC actions list action     130         "verifyCmd": "$TC actions list action gact",
131         "matchPattern": "action order [0-9]*:     131         "matchPattern": "action order [0-9]*: gact action continue.*index 432 ref",
132         "matchCount": "1",                        132         "matchCount": "1",
133         "teardown": [                             133         "teardown": [
134             "$TC actions flush action gact"       134             "$TC actions flush action gact"
135         ]                                         135         ]
136     },                                            136     },
137     {                                             137     {
138         "id": "d700",                             138         "id": "d700",
139         "name": "Add invalid action",             139         "name": "Add invalid action",
140         "category": [                             140         "category": [
141             "actions",                            141             "actions",
142             "gact"                                142             "gact"
143         ],                                        143         ],
144         "plugins": {                              144         "plugins": {
145            "requires": "nsPlugin"                 145            "requires": "nsPlugin"
146         },                                        146         },
147         "setup": [                                147         "setup": [
148             [                                     148             [
149                 "$TC actions flush action gact    149                 "$TC actions flush action gact",
150                 0,                                150                 0,
151                 1,                                151                 1,
152                 255                               152                 255
153             ]                                     153             ]
154         ],                                        154         ],
155         "cmdUnderTest": "$TC actions add actio    155         "cmdUnderTest": "$TC actions add action pump index 386",
156         "expExitCode": "255",                     156         "expExitCode": "255",
157         "verifyCmd": "$TC actions list action     157         "verifyCmd": "$TC actions list action gact",
158         "matchPattern": "action order [0-9]*:     158         "matchPattern": "action order [0-9]*: gact action.*index 386 ref",
159         "matchCount": "0",                        159         "matchCount": "0",
160         "teardown": [                             160         "teardown": [
161             "$TC actions flush action gact"       161             "$TC actions flush action gact"
162         ]                                         162         ]
163     },                                            163     },
164     {                                             164     {
165         "id": "9215",                             165         "id": "9215",
166         "name": "Add action with duplicate ind    166         "name": "Add action with duplicate index",
167         "category": [                             167         "category": [
168             "actions",                            168             "actions",
169             "gact"                                169             "gact"
170         ],                                        170         ],
171         "plugins": {                              171         "plugins": {
172            "requires": "nsPlugin"                 172            "requires": "nsPlugin"
173         },                                        173         },
174         "setup": [                                174         "setup": [
175             [                                     175             [
176                 "$TC actions flush action gact    176                 "$TC actions flush action gact",
177                 0,                                177                 0,
178                 1,                                178                 1,
179                 255                               179                 255
180             ],                                    180             ],
181             "$TC actions add action pipe index    181             "$TC actions add action pipe index 15"
182         ],                                        182         ],
183         "cmdUnderTest": "$TC actions add actio    183         "cmdUnderTest": "$TC actions add action drop index 15",
184         "expExitCode": "255",                     184         "expExitCode": "255",
185         "verifyCmd": "$TC actions list action     185         "verifyCmd": "$TC actions list action gact",
186         "matchPattern": "action order [0-9]*:     186         "matchPattern": "action order [0-9]*: gact action drop.*index 15 ref",
187         "matchCount": "0",                        187         "matchCount": "0",
188         "teardown": [                             188         "teardown": [
189             "$TC actions flush action gact"       189             "$TC actions flush action gact"
190         ]                                         190         ]
191     },                                            191     },
192     {                                             192     {
193         "id": "798e",                             193         "id": "798e",
194         "name": "Add action with index exceedi    194         "name": "Add action with index exceeding 32-bit maximum",
195         "category": [                             195         "category": [
196             "actions",                            196             "actions",
197             "gact"                                197             "gact"
198         ],                                        198         ],
199         "plugins": {                              199         "plugins": {
200            "requires": "nsPlugin"                 200            "requires": "nsPlugin"
201         },                                        201         },
202         "setup": [                                202         "setup": [
203             [                                     203             [
204                 "$TC actions flush action gact    204                 "$TC actions flush action gact",
205                 0,                                205                 0,
206                 1,                                206                 1,
207                 255                               207                 255
208             ]                                     208             ]
209         ],                                        209         ],
210         "cmdUnderTest": "$TC actions add actio    210         "cmdUnderTest": "$TC actions add action drop index 4294967296",
211         "expExitCode": "255",                     211         "expExitCode": "255",
212         "verifyCmd": "actions list action gact    212         "verifyCmd": "actions list action gact",
213         "matchPattern": "action order [0-9]*:     213         "matchPattern": "action order [0-9]*: gact action drop.*index 4294967296 ref",
214         "matchCount": "0",                        214         "matchCount": "0",
215         "teardown": [                             215         "teardown": [
216             "$TC actions flush action gact"       216             "$TC actions flush action gact"
217         ]                                         217         ]
218     },                                            218     },
219     {                                             219     {
220         "id": "22be",                             220         "id": "22be",
221         "name": "Add action with index at 32-b    221         "name": "Add action with index at 32-bit maximum",
222         "category": [                             222         "category": [
223             "actions",                            223             "actions",
224             "gact"                                224             "gact"
225         ],                                        225         ],
226         "plugins": {                              226         "plugins": {
227            "requires": "nsPlugin"                 227            "requires": "nsPlugin"
228         },                                        228         },
229         "setup": [                                229         "setup": [
230             [                                     230             [
231                 "$TC actions flush action gact    231                 "$TC actions flush action gact",
232                 0,                                232                 0,
233                 1,                                233                 1,
234                 255                               234                 255
235             ]                                     235             ]
236         ],                                        236         ],
237         "cmdUnderTest": "$TC actions add actio    237         "cmdUnderTest": "$TC actions add action drop index 4294967295",
238         "expExitCode": "0",                       238         "expExitCode": "0",
239         "verifyCmd": "$TC actions list action     239         "verifyCmd": "$TC actions list action gact",
240         "matchPattern": "action order [0-9]*:     240         "matchPattern": "action order [0-9]*: gact action drop.*index 4294967295 ref",
241         "matchCount": "1",                        241         "matchCount": "1",
242         "teardown": [                             242         "teardown": [
243             "$TC actions flush action gact"       243             "$TC actions flush action gact"
244         ]                                         244         ]
245     },                                            245     },
246     {                                             246     {
247         "id": "ac2a",                             247         "id": "ac2a",
248         "name": "List actions",                   248         "name": "List actions",
249         "category": [                             249         "category": [
250             "actions",                            250             "actions",
251             "gact"                                251             "gact"
252         ],                                        252         ],
253         "plugins": {                              253         "plugins": {
254            "requires": "nsPlugin"                 254            "requires": "nsPlugin"
255         },                                        255         },
256         "setup": [                                256         "setup": [
257             [                                     257             [
258                 "$TC actions flush action gact    258                 "$TC actions flush action gact",
259                 0,                                259                 0,
260                 1,                                260                 1,
261                 255                               261                 255
262             ],                                    262             ],
263             "$TC actions add action reclassify    263             "$TC actions add action reclassify index 101",
264             "$TC actions add action reclassify    264             "$TC actions add action reclassify index 102",
265             "$TC actions add action reclassify    265             "$TC actions add action reclassify index 103",
266             "$TC actions add action reclassify    266             "$TC actions add action reclassify index 104",
267             "$TC actions add action reclassify    267             "$TC actions add action reclassify index 105"
268         ],                                        268         ],
269         "cmdUnderTest": "$TC actions list acti    269         "cmdUnderTest": "$TC actions list action gact",
270         "expExitCode": "0",                       270         "expExitCode": "0",
271         "verifyCmd": "$TC actions list action     271         "verifyCmd": "$TC actions list action gact",
272         "matchPattern": "action order [0-9]*:     272         "matchPattern": "action order [0-9]*: gact action reclassify",
273         "matchCount": "5",                        273         "matchCount": "5",
274         "teardown": [                             274         "teardown": [
275             "$TC actions flush action gact"       275             "$TC actions flush action gact"
276         ]                                         276         ]
277     },                                            277     },
278     {                                             278     {
279         "id": "3edf",                             279         "id": "3edf",
280         "name": "Flush gact actions",             280         "name": "Flush gact actions",
281         "category": [                             281         "category": [
282             "actions",                            282             "actions",
283             "gact"                                283             "gact"
284         ],                                        284         ],
285         "plugins": {                              285         "plugins": {
286            "requires": "nsPlugin"                 286            "requires": "nsPlugin"
287         },                                        287         },
288         "setup": [                                288         "setup": [
289             "$TC actions add action reclassify    289             "$TC actions add action reclassify index 101",
290             "$TC actions add action reclassify    290             "$TC actions add action reclassify index 102",
291             "$TC actions add action reclassify    291             "$TC actions add action reclassify index 103",
292             "$TC actions add action reclassify    292             "$TC actions add action reclassify index 104",
293             "$TC actions add action reclassify    293             "$TC actions add action reclassify index 105"
294         ],                                        294         ],
295         "cmdUnderTest": "$TC actions flush act    295         "cmdUnderTest": "$TC actions flush action gact",
296         "expExitCode": "0",                       296         "expExitCode": "0",
297         "verifyCmd": "$TC actions list action     297         "verifyCmd": "$TC actions list action gact",
298         "matchPattern": "action order [0-9]*:     298         "matchPattern": "action order [0-9]*: gact action reclassify",
299         "matchCount": "0",                        299         "matchCount": "0",
300         "teardown": []                            300         "teardown": []
301     },                                            301     },
302     {                                             302     {
303         "id": "63ec",                             303         "id": "63ec",
304         "name": "Delete pass action",             304         "name": "Delete pass action",
305         "category": [                             305         "category": [
306             "actions",                            306             "actions",
307             "gact"                                307             "gact"
308         ],                                        308         ],
309         "plugins": {                              309         "plugins": {
310            "requires": "nsPlugin"                 310            "requires": "nsPlugin"
311         },                                        311         },
312         "setup": [                                312         "setup": [
313             [                                     313             [
314                 "$TC actions flush action gact    314                 "$TC actions flush action gact",
315                 0,                                315                 0,
316                 1,                                316                 1,
317                 255                               317                 255
318             ],                                    318             ],
319             "$TC actions add action pass index    319             "$TC actions add action pass index 1"
320         ],                                        320         ],
321         "cmdUnderTest": "$TC actions del actio    321         "cmdUnderTest": "$TC actions del action gact index 1",
322         "expExitCode": "0",                       322         "expExitCode": "0",
323         "verifyCmd": "$TC actions list action     323         "verifyCmd": "$TC actions list action gact",
324         "matchPattern": "action order [0-9]*:     324         "matchPattern": "action order [0-9]*: gact action pass.*index 1 ref",
325         "matchCount": "0",                        325         "matchCount": "0",
326         "teardown": [                             326         "teardown": [
327             "$TC actions flush action gact"       327             "$TC actions flush action gact"
328         ]                                         328         ]
329     },                                            329     },
330     {                                             330     {
331         "id": "46be",                             331         "id": "46be",
332         "name": "Delete pipe action",             332         "name": "Delete pipe action",
333         "category": [                             333         "category": [
334             "actions",                            334             "actions",
335             "gact"                                335             "gact"
336         ],                                        336         ],
337         "plugins": {                              337         "plugins": {
338            "requires": "nsPlugin"                 338            "requires": "nsPlugin"
339         },                                        339         },
340         "setup": [                                340         "setup": [
341             [                                     341             [
342                 "$TC actions flush action gact    342                 "$TC actions flush action gact",
343                 0,                                343                 0,
344                 1,                                344                 1,
345                 255                               345                 255
346             ],                                    346             ],
347             "$TC actions add action pipe index    347             "$TC actions add action pipe index 9"
348         ],                                        348         ],
349         "cmdUnderTest": "$TC actions del actio    349         "cmdUnderTest": "$TC actions del action gact index 9",
350         "expExitCode": "0",                       350         "expExitCode": "0",
351         "verifyCmd": "$TC actions list action     351         "verifyCmd": "$TC actions list action gact",
352         "matchPattern": "action order [0-9]*:     352         "matchPattern": "action order [0-9]*: gact action pipe.*index 9 ref",
353         "matchCount": "0",                        353         "matchCount": "0",
354         "teardown": [                             354         "teardown": [
355             "$TC actions flush action gact"       355             "$TC actions flush action gact"
356         ]                                         356         ]
357     },                                            357     },
358     {                                             358     {
359         "id": "2e08",                             359         "id": "2e08",
360         "name": "Delete reclassify action",       360         "name": "Delete reclassify action",
361         "category": [                             361         "category": [
362             "actions",                            362             "actions",
363             "gact"                                363             "gact"
364         ],                                        364         ],
365         "plugins": {                              365         "plugins": {
366            "requires": "nsPlugin"                 366            "requires": "nsPlugin"
367         },                                        367         },
368         "setup": [                                368         "setup": [
369             [                                     369             [
370                 "$TC actions flush action gact    370                 "$TC actions flush action gact",
371                 0,                                371                 0,
372                 1,                                372                 1,
373                 255                               373                 255
374             ],                                    374             ],
375             "$TC actions add action reclassify    375             "$TC actions add action reclassify index 65536"
376         ],                                        376         ],
377         "cmdUnderTest": "$TC actions del actio    377         "cmdUnderTest": "$TC actions del action gact index 65536",
378         "expExitCode": "0",                       378         "expExitCode": "0",
379         "verifyCmd": "$TC actions list action     379         "verifyCmd": "$TC actions list action gact",
380         "matchPattern": "action order [0-9]*:     380         "matchPattern": "action order [0-9]*: gact action reclassify.*index 65536 ref",
381         "matchCount": "0",                        381         "matchCount": "0",
382         "teardown": [                             382         "teardown": [
383             "$TC actions flush action gact"       383             "$TC actions flush action gact"
384         ]                                         384         ]
385     },                                            385     },
386     {                                             386     {
387         "id": "99c4",                             387         "id": "99c4",
388         "name": "Delete drop action",             388         "name": "Delete drop action",
389         "category": [                             389         "category": [
390             "actions",                            390             "actions",
391             "gact"                                391             "gact"
392         ],                                        392         ],
393         "plugins": {                              393         "plugins": {
394            "requires": "nsPlugin"                 394            "requires": "nsPlugin"
395         },                                        395         },
396         "setup": [                                396         "setup": [
397             [                                     397             [
398                 "$TC actions flush action gact    398                 "$TC actions flush action gact",
399                 0,                                399                 0,
400                 1,                                400                 1,
401                 255                               401                 255
402             ],                                    402             ],
403             "$TC actions add action drop index    403             "$TC actions add action drop index 16"
404         ],                                        404         ],
405         "cmdUnderTest": "$TC actions del actio    405         "cmdUnderTest": "$TC actions del action gact index 16",
406         "expExitCode": "0",                       406         "expExitCode": "0",
407         "verifyCmd": "$TC actions list action     407         "verifyCmd": "$TC actions list action gact",
408         "matchPattern": "action order [0-9]*:     408         "matchPattern": "action order [0-9]*: gact action drop.*index 16 ref",
409         "matchCount": "0",                        409         "matchCount": "0",
410         "teardown": [                             410         "teardown": [
411             "$TC actions flush action gact"       411             "$TC actions flush action gact"
412         ]                                         412         ]
413     },                                            413     },
414     {                                             414     {
415         "id": "fb6b",                             415         "id": "fb6b",
416         "name": "Delete continue action",         416         "name": "Delete continue action",
417         "category": [                             417         "category": [
418             "actions",                            418             "actions",
419             "gact"                                419             "gact"
420         ],                                        420         ],
421         "plugins": {                              421         "plugins": {
422            "requires": "nsPlugin"                 422            "requires": "nsPlugin"
423         },                                        423         },
424         "setup": [                                424         "setup": [
425             [                                     425             [
426                 "$TC actions flush action gact    426                 "$TC actions flush action gact",
427                 0,                                427                 0,
428                 1,                                428                 1,
429                 255                               429                 255
430             ],                                    430             ],
431             "$TC actions add action continue i    431             "$TC actions add action continue index 32"
432         ],                                        432         ],
433         "cmdUnderTest": "$TC actions del actio    433         "cmdUnderTest": "$TC actions del action gact index 32",
434         "expExitCode": "0",                       434         "expExitCode": "0",
435         "verifyCmd": "actions list action gact    435         "verifyCmd": "actions list action gact",
436         "matchPattern": "action order [0-9]*:     436         "matchPattern": "action order [0-9]*: gact action continue.*index 32 ref",
437         "matchCount": "0",                        437         "matchCount": "0",
438         "teardown": [                             438         "teardown": [
439             "$TC actions flush action gact"       439             "$TC actions flush action gact"
440         ]                                         440         ]
441     },                                            441     },
442     {                                             442     {
443         "id": "0eb3",                             443         "id": "0eb3",
444         "name": "Delete non-existent action",     444         "name": "Delete non-existent action",
445         "category": [                             445         "category": [
446             "actions",                            446             "actions",
447             "gact"                                447             "gact"
448         ],                                        448         ],
449         "plugins": {                              449         "plugins": {
450            "requires": "nsPlugin"                 450            "requires": "nsPlugin"
451         },                                        451         },
452         "setup": [                                452         "setup": [
453             [                                     453             [
454                 "$TC actions flush action gact    454                 "$TC actions flush action gact",
455                 0,                                455                 0,
456                 1,                                456                 1,
457                 255                               457                 255
458             ]                                     458             ]
459         ],                                        459         ],
460         "cmdUnderTest": "$TC actions del actio    460         "cmdUnderTest": "$TC actions del action gact index 2",
461         "expExitCode": "255",                     461         "expExitCode": "255",
462         "verifyCmd": "$TC actions list action     462         "verifyCmd": "$TC actions list action gact",
463         "matchPattern": "action order [0-9]*:     463         "matchPattern": "action order [0-9]*: gact action",
464         "matchCount": "0",                        464         "matchCount": "0",
465         "teardown": [                             465         "teardown": [
466             "$TC actions flush action gact"       466             "$TC actions flush action gact"
467         ]                                         467         ]
468     },                                            468     },
469     {                                             469     {
470         "id": "f02c",                             470         "id": "f02c",
471         "name": "Replace gact action",            471         "name": "Replace gact action",
472         "category": [                             472         "category": [
473             "actions",                            473             "actions",
474             "gact"                                474             "gact"
475         ],                                        475         ],
476         "plugins": {                              476         "plugins": {
477            "requires": "nsPlugin"                 477            "requires": "nsPlugin"
478         },                                        478         },
479         "setup": [                                479         "setup": [
480             [                                     480             [
481                 "$TC actions flush action gact    481                 "$TC actions flush action gact",
482                 0,                                482                 0,
483                 1,                                483                 1,
484                 255                               484                 255
485             ],                                    485             ],
486             "$TC actions add action drop index    486             "$TC actions add action drop index 10",
487             "$TC actions add action drop index    487             "$TC actions add action drop index 12"
488         ],                                        488         ],
489         "cmdUnderTest": "$TC actions replace a    489         "cmdUnderTest": "$TC actions replace action ok index 12",
490         "expExitCode": "0",                       490         "expExitCode": "0",
491         "verifyCmd": "$TC actions ls action ga    491         "verifyCmd": "$TC actions ls action gact",
492         "matchPattern": "action order [0-9]*:     492         "matchPattern": "action order [0-9]*: gact action pass",
493         "matchCount": "1",                        493         "matchCount": "1",
494         "teardown": [                             494         "teardown": [
495             "$TC actions flush action gact"       495             "$TC actions flush action gact"
496         ]                                         496         ]
497     },                                            497     },
498     {                                             498     {
499         "id": "525f",                             499         "id": "525f",
500         "name": "Get gact action by index",       500         "name": "Get gact action by index",
501         "category": [                             501         "category": [
502             "actions",                            502             "actions",
503             "gact"                                503             "gact"
504         ],                                        504         ],
505         "plugins": {                              505         "plugins": {
506            "requires": "nsPlugin"                 506            "requires": "nsPlugin"
507         },                                        507         },
508         "setup": [                                508         "setup": [
509             [                                     509             [
510                 "$TC actions flush action gact    510                 "$TC actions flush action gact",
511                 0,                                511                 0,
512                 1,                                512                 1,
513                 255                               513                 255
514             ],                                    514             ],
515             "$TC actions add action drop index    515             "$TC actions add action drop index 3900800700"
516         ],                                        516         ],
517         "cmdUnderTest": "$TC actions get actio    517         "cmdUnderTest": "$TC actions get action gact index 3900800700",
518         "expExitCode": "0",                       518         "expExitCode": "0",
519         "verifyCmd": "$TC actions get action g    519         "verifyCmd": "$TC actions get action gact index 3900800700",
520         "matchPattern": "index 3900800700",       520         "matchPattern": "index 3900800700",
521         "matchCount": "1",                        521         "matchCount": "1",
522         "teardown": [                             522         "teardown": [
523             "$TC actions flush action gact"       523             "$TC actions flush action gact"
524         ]                                         524         ]
525     },                                            525     },
526     {                                             526     {
527         "id": "1021",                             527         "id": "1021",
528         "name": "Add batch of 32 gact pass act    528         "name": "Add batch of 32 gact pass actions",
529         "category": [                             529         "category": [
530             "actions",                            530             "actions",
531             "gact"                                531             "gact"
532         ],                                        532         ],
533         "plugins": {                              533         "plugins": {
534            "requires": "nsPlugin"                 534            "requires": "nsPlugin"
535         },                                        535         },
536         "setup": [                                536         "setup": [
537             [                                     537             [
538                 "$TC actions flush action gact    538                 "$TC actions flush action gact",
539                 0,                                539                 0,
540                 1,                                540                 1,
541                 255                               541                 255
542             ]                                     542             ]
543         ],                                        543         ],
544         "cmdUnderTest": "bash -c \"for i in \\    544         "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action pass index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"",
545         "expExitCode": "0",                       545         "expExitCode": "0",
546         "verifyCmd": "$TC actions list action     546         "verifyCmd": "$TC actions list action gact",
547         "matchPattern": "^[ \t]+index [0-9]+ r    547         "matchPattern": "^[ \t]+index [0-9]+ ref",
548         "matchCount": "32",                       548         "matchCount": "32",
549         "teardown": [                             549         "teardown": [
550             "$TC actions flush action gact"       550             "$TC actions flush action gact"
551         ]                                         551         ]
552     },                                            552     },
553     {                                             553     {
554         "id": "da7a",                             554         "id": "da7a",
555         "name": "Add batch of 32 gact continue    555         "name": "Add batch of 32 gact continue actions with cookie",
556         "category": [                             556         "category": [
557             "actions",                            557             "actions",
558             "gact"                                558             "gact"
559         ],                                        559         ],
560         "plugins": {                              560         "plugins": {
561            "requires": "nsPlugin"                 561            "requires": "nsPlugin"
562         },                                        562         },
563         "setup": [                                563         "setup": [
564             [                                     564             [
565                 "$TC actions flush action gact    565                 "$TC actions flush action gact",
566                 0,                                566                 0,
567                 1,                                567                 1,
568                 255                               568                 255
569             ]                                     569             ]
570         ],                                        570         ],
571         "cmdUnderTest": "bash -c \"for i in \\    571         "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action continue index \\$i cookie aabbccddeeff112233445566778800a1 \\\"; args=\"\\$args\\$cmd\"; done && $TC actions add \\$args\"",
572         "expExitCode": "0",                       572         "expExitCode": "0",
573         "verifyCmd": "$TC actions list action     573         "verifyCmd": "$TC actions list action gact",
574         "matchPattern": "^[ \t]+index [0-9]+ r    574         "matchPattern": "^[ \t]+index [0-9]+ ref",
575         "matchCount": "32",                       575         "matchCount": "32",
576         "teardown": [                             576         "teardown": [
577             "$TC actions flush action gact"       577             "$TC actions flush action gact"
578         ]                                         578         ]
579     },                                            579     },
580     {                                             580     {
581         "id": "8aa3",                             581         "id": "8aa3",
582         "name": "Delete batch of 32 gact conti    582         "name": "Delete batch of 32 gact continue actions",
583         "category": [                             583         "category": [
584             "actions",                            584             "actions",
585             "gact"                                585             "gact"
586         ],                                        586         ],
587         "plugins": {                              587         "plugins": {
588            "requires": "nsPlugin"                 588            "requires": "nsPlugin"
589         },                                        589         },
590         "setup": [                                590         "setup": [
591             [                                     591             [
592                 "$TC actions flush action gact    592                 "$TC actions flush action gact",
593                 0,                                593                 0,
594                 1,                                594                 1,
595                 255                               595                 255
596             ],                                    596             ],
597             "bash -c \"for i in \\`seq 1 32\\`    597             "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action continue index \\$i \\\"; args=\\\"\\$args\\$cmd\\\"; done && $TC actions add \\$args\""
598         ],                                        598         ],
599         "cmdUnderTest": "bash -c \"for i in \\    599         "cmdUnderTest": "bash -c \"for i in \\`seq 1 32\\`; do cmd=\\\"action gact index \\$i \\\"; args=\"\\$args\\$cmd\"; done && $TC actions del \\$args\"",
600         "expExitCode": "0",                       600         "expExitCode": "0",
601         "verifyCmd": "$TC actions list action     601         "verifyCmd": "$TC actions list action gact",
602         "matchPattern": "^[ \t]+index [0-9]+ r    602         "matchPattern": "^[ \t]+index [0-9]+ ref",
603         "matchCount": "0",                        603         "matchCount": "0",
604         "teardown": []                            604         "teardown": []
605     },                                            605     },
606     {                                             606     {
607         "id": "8e47",                             607         "id": "8e47",
608         "name": "Add gact action with random d    608         "name": "Add gact action with random determ goto chain control action",
609         "category": [                             609         "category": [
610             "actions",                            610             "actions",
611             "gact"                                611             "gact"
612         ],                                        612         ],
613         "plugins": {                              613         "plugins": {
614            "requires": "nsPlugin"                 614            "requires": "nsPlugin"
615         },                                        615         },
616         "setup": [                                616         "setup": [
617             [                                     617             [
618                 "$TC actions flush action gact    618                 "$TC actions flush action gact",
619                 0,                                619                 0,
620                 1,                                620                 1,
621                 255                               621                 255
622             ]                                     622             ]
623         ],                                        623         ],
624         "cmdUnderTest": "$TC actions add actio    624         "cmdUnderTest": "$TC actions add action pass random determ goto chain 1 2 index 90",
625         "expExitCode": "255",                     625         "expExitCode": "255",
626         "verifyCmd": "$TC actions list action     626         "verifyCmd": "$TC actions list action gact",
627         "matchPattern": "action order [0-9]*:     627         "matchPattern": "action order [0-9]*: gact action pass random type determ goto chain 1 val 2.*index 90 ref",
628         "matchCount": "0",                        628         "matchCount": "0",
629         "teardown": [                             629         "teardown": [
630             "$TC actions flush action gact"       630             "$TC actions flush action gact"
631         ]                                         631         ]
632     },                                            632     },
633     {                                             633     {
634         "id": "ca89",                             634         "id": "ca89",
635         "name": "Replace gact action with inva    635         "name": "Replace gact action with invalid goto chain control",
636         "category": [                             636         "category": [
637             "actions",                            637             "actions",
638             "gact"                                638             "gact"
639         ],                                        639         ],
640         "plugins": {                              640         "plugins": {
641            "requires": "nsPlugin"                 641            "requires": "nsPlugin"
642         },                                        642         },
643         "setup": [                                643         "setup": [
644             [                                     644             [
645                 "$TC actions flush action gact    645                 "$TC actions flush action gact",
646                 0,                                646                 0,
647                 1,                                647                 1,
648                 255                               648                 255
649             ],                                    649             ],
650             "$TC actions add action pass rando    650             "$TC actions add action pass random determ drop 2 index 90"
651         ],                                        651         ],
652         "cmdUnderTest": "$TC actions replace a    652         "cmdUnderTest": "$TC actions replace action goto chain 42 random determ drop 5 index 90 cookie c1a0c1a0",
653         "expExitCode": "255",                     653         "expExitCode": "255",
654         "verifyCmd": "$TC actions list action     654         "verifyCmd": "$TC actions list action gact",
655         "matchPattern": "action order [0-9]*:     655         "matchPattern": "action order [0-9]*: gact action pass.*random type determ drop val 2.*index 90 ref",
656         "matchCount": "1",                        656         "matchCount": "1",
657         "teardown": [                             657         "teardown": [
658             "$TC actions flush action gact"       658             "$TC actions flush action gact"
659         ]                                         659         ]
660     },                                            660     },
661     {                                             661     {
662         "id": "95ad",                             662         "id": "95ad",
663         "name": "Add gact pass action with no_    663         "name": "Add gact pass action with no_percpu flag",
664         "category": [                             664         "category": [
665             "actions",                            665             "actions",
666             "gact"                                666             "gact"
667         ],                                        667         ],
668         "plugins": {                              668         "plugins": {
669            "requires": "nsPlugin"                 669            "requires": "nsPlugin"
670         },                                        670         },
671         "setup": [                                671         "setup": [
672             [                                     672             [
673                 "$TC actions flush action gact    673                 "$TC actions flush action gact",
674                 0,                                674                 0,
675                 1,                                675                 1,
676                 255                               676                 255
677             ]                                     677             ]
678         ],                                        678         ],
679         "cmdUnderTest": "$TC actions add actio    679         "cmdUnderTest": "$TC actions add action pass no_percpu",
680         "expExitCode": "0",                       680         "expExitCode": "0",
681         "verifyCmd": "$TC actions list action     681         "verifyCmd": "$TC actions list action gact",
682         "matchPattern": "action order [0-9]*:     682         "matchPattern": "action order [0-9]*: gact action pass.*no_percpu",
683         "matchCount": "1",                        683         "matchCount": "1",
684         "teardown": [                             684         "teardown": [
685             "$TC actions flush action gact"       685             "$TC actions flush action gact"
686         ]                                         686         ]
687     },                                            687     },
688     {                                             688     {
689         "id": "7f52",                             689         "id": "7f52",
690         "name": "Try to flush action which is     690         "name": "Try to flush action which is referenced by filter",
691         "category": [                             691         "category": [
692             "actions",                            692             "actions",
693             "gact"                                693             "gact"
694         ],                                        694         ],
695         "plugins": {                              695         "plugins": {
696             "requires": "nsPlugin"                696             "requires": "nsPlugin"
697         },                                        697         },
698         "setup": [                                698         "setup": [
699             [                                     699             [
700                 "$TC actions flush action gact    700                 "$TC actions flush action gact",
701                 0,                                701                 0,
702                 1,                                702                 1,
703                 255                               703                 255
704             ],                                    704             ],
705             "$TC qdisc add dev $DEV1 ingress",    705             "$TC qdisc add dev $DEV1 ingress",
706             "$TC actions add action pass index    706             "$TC actions add action pass index 1",
707             "$TC filter add dev $DEV1 protocol    707             "$TC filter add dev $DEV1 protocol all ingress prio 1 handle 0x1234 matchall action gact index 1"
708         ],                                        708         ],
709         "cmdUnderTest": "$TC actions flush act    709         "cmdUnderTest": "$TC actions flush action gact",
710         "expExitCode": "1",                       710         "expExitCode": "1",
711         "verifyCmd": "$TC actions ls action ga    711         "verifyCmd": "$TC actions ls action gact",
712         "matchPattern": "total acts 1.*action     712         "matchPattern": "total acts 1.*action order [0-9]*: gact action pass.*index 1 ref 2 bind 1",
713         "matchCount": "1",                        713         "matchCount": "1",
714         "teardown": [                             714         "teardown": [
715             "$TC qdisc del dev $DEV1 ingress",    715             "$TC qdisc del dev $DEV1 ingress",
716             [                                     716             [
717                 "sleep 1; $TC actions flush ac    717                 "sleep 1; $TC actions flush action gact",
718                 0,                                718                 0,
719                 1                                 719                 1
720             ]                                     720             ]
721         ]                                         721         ]
722     },                                            722     },
723     {                                             723     {
724         "id": "ae1e",                             724         "id": "ae1e",
725         "name": "Try to flush actions when las    725         "name": "Try to flush actions when last one is referenced by filter",
726         "category": [                             726         "category": [
727             "actions",                            727             "actions",
728             "gact"                                728             "gact"
729         ],                                        729         ],
730         "plugins": {                              730         "plugins": {
731             "requires": "nsPlugin"                731             "requires": "nsPlugin"
732         },                                        732         },
733         "setup": [                                733         "setup": [
734             [                                     734             [
735                 "$TC actions flush action gact    735                 "$TC actions flush action gact",
736                 0,                                736                 0,
737                 1,                                737                 1,
738                 255                               738                 255
739             ],                                    739             ],
740             "$TC qdisc add dev $DEV1 ingress",    740             "$TC qdisc add dev $DEV1 ingress",
741             [                                     741             [
742                 "$TC actions add action pass i    742                 "$TC actions add action pass index 1",
743                 0,                                743                 0,
744                 1,                                744                 1,
745                 255                               745                 255
746             ],                                    746             ],
747             "$TC actions add action reclassify    747             "$TC actions add action reclassify index 2",
748             "$TC actions add action drop index    748             "$TC actions add action drop index 3",
749             "$TC filter add dev $DEV1 protocol    749             "$TC filter add dev $DEV1 protocol all ingress prio 1 handle 0x1234 matchall action gact index 3"
750         ],                                        750         ],
751         "cmdUnderTest": "$TC actions flush act    751         "cmdUnderTest": "$TC actions flush action gact",
752         "expExitCode": "0",                       752         "expExitCode": "0",
753         "verifyCmd": "$TC actions ls action ga    753         "verifyCmd": "$TC actions ls action gact",
754         "matchPattern": "total acts 1.*action     754         "matchPattern": "total acts 1.*action order [0-9]*: gact action drop.*index 3 ref 2 bind 1",
755         "matchCount": "1",                        755         "matchCount": "1",
756         "teardown": [                             756         "teardown": [
757             "$TC qdisc del dev $DEV1 ingress",    757             "$TC qdisc del dev $DEV1 ingress",
758             [                                     758             [
759                 "sleep 1; $TC actions flush ac    759                 "sleep 1; $TC actions flush action gact",
760                 0,                                760                 0,
761                 1                                 761                 1
762             ]                                     762             ]
763         ]                                         763         ]
764     }                                             764     }
765 ]                                                 765 ]
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php