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

TOMOYO Linux Cross Reference
Linux/tools/testing/selftests/tc-testing/tc-tests/actions/police.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/police.json (Architecture i386) and /tools/testing/selftests/tc-testing/tc-tests/actions/police.json (Architecture alpha)


  1 [                                                   1 [
  2     {                                               2     {
  3         "id": "49aa",                               3         "id": "49aa",
  4         "name": "Add valid basic police action      4         "name": "Add valid basic police action",
  5         "category": [                               5         "category": [
  6             "actions",                              6             "actions",
  7             "police"                                7             "police"
  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 poli     14                 "$TC actions flush action police",
 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 police rate 1kbit burst 10k index 1",
 21         "expExitCode": "0",                        21         "expExitCode": "0",
 22         "verifyCmd": "$TC actions ls action po     22         "verifyCmd": "$TC actions ls action police",
 23         "matchPattern": "action order [0-9]*:      23         "matchPattern": "action order [0-9]*:  police 0x1 rate 1Kbit burst 10Kb",
 24         "matchCount": "1",                         24         "matchCount": "1",
 25         "teardown": [                              25         "teardown": [
 26             "$TC actions flush action police"      26             "$TC actions flush action police"
 27         ]                                          27         ]
 28     },                                             28     },
 29     {                                              29     {
 30         "id": "3abe",                              30         "id": "3abe",
 31         "name": "Add police action with duplic     31         "name": "Add police action with duplicate index",
 32         "category": [                              32         "category": [
 33             "actions",                             33             "actions",
 34             "police"                               34             "police"
 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 poli     41                 "$TC actions flush action police",
 42                 0,                                 42                 0,
 43                 1,                                 43                 1,
 44                 255                                44                 255
 45             ],                                     45             ],
 46             "$TC actions add action police rat     46             "$TC actions add action police rate 4Mbit burst 120k index 9"
 47         ],                                         47         ],
 48         "cmdUnderTest": "$TC actions add actio     48         "cmdUnderTest": "$TC actions add action police rate 8kbit burst 24k index 9",
 49         "expExitCode": "255",                      49         "expExitCode": "255",
 50         "verifyCmd": "$TC actions ls action po     50         "verifyCmd": "$TC actions ls action police",
 51         "matchPattern": "action order [0-9]*:      51         "matchPattern": "action order [0-9]*:  police 0x9",
 52         "matchCount": "1",                         52         "matchCount": "1",
 53         "teardown": [                              53         "teardown": [
 54             "$TC actions flush action police"      54             "$TC actions flush action police"
 55         ]                                          55         ]
 56     },                                             56     },
 57     {                                              57     {
 58         "id": "49fa",                              58         "id": "49fa",
 59         "name": "Add valid police action with      59         "name": "Add valid police action with mtu",
 60         "category": [                              60         "category": [
 61             "actions",                             61             "actions",
 62             "police"                               62             "police"
 63         ],                                         63         ],
 64         "plugins": {                               64         "plugins": {
 65            "requires": "nsPlugin"                  65            "requires": "nsPlugin"
 66         },                                         66         },
 67         "setup": [                                 67         "setup": [
 68             [                                      68             [
 69                 "$TC actions flush action poli     69                 "$TC actions flush action police",
 70                 0,                                 70                 0,
 71                 1,                                 71                 1,
 72                 255                                72                 255
 73             ]                                      73             ]
 74         ],                                         74         ],
 75         "cmdUnderTest": "$TC actions add actio     75         "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 1k index 98",
 76         "expExitCode": "0",                        76         "expExitCode": "0",
 77         "verifyCmd": "$TC actions get action p     77         "verifyCmd": "$TC actions get action police index 98",
 78         "matchPattern": "action order [0-9]*:      78         "matchPattern": "action order [0-9]*:  police 0x62 rate 90Kbit burst 10Kb mtu 1Kb",
 79         "matchCount": "1",                         79         "matchCount": "1",
 80         "teardown": [                              80         "teardown": [
 81             "$TC actions flush action police"      81             "$TC actions flush action police"
 82         ]                                          82         ]
 83     },                                             83     },
 84     {                                              84     {
 85         "id": "7943",                              85         "id": "7943",
 86         "name": "Add valid police action with      86         "name": "Add valid police action with peakrate",
 87         "category": [                              87         "category": [
 88             "actions",                             88             "actions",
 89             "police"                               89             "police"
 90         ],                                         90         ],
 91         "plugins": {                               91         "plugins": {
 92            "requires": "nsPlugin"                  92            "requires": "nsPlugin"
 93         },                                         93         },
 94         "setup": [                                 94         "setup": [
 95             [                                      95             [
 96                 "$TC actions flush action poli     96                 "$TC actions flush action police",
 97                 0,                                 97                 0,
 98                 1,                                 98                 1,
 99                 255                                99                 255
100             ]                                     100             ]
101         ],                                        101         ],
102         "cmdUnderTest": "$TC actions add actio    102         "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100kbit index 3",
103         "expExitCode": "0",                       103         "expExitCode": "0",
104         "verifyCmd": "$TC actions ls action po    104         "verifyCmd": "$TC actions ls action police",
105         "matchPattern": "action order [0-9]*:     105         "matchPattern": "action order [0-9]*:  police 0x3 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Kbit",
106         "matchCount": "1",                        106         "matchCount": "1",
107         "teardown": [                             107         "teardown": [
108             "$TC actions flush action police"     108             "$TC actions flush action police"
109         ]                                         109         ]
110     },                                            110     },
111     {                                             111     {
112         "id": "055e",                             112         "id": "055e",
113         "name": "Add police action with peakra    113         "name": "Add police action with peakrate and no mtu",
114         "category": [                             114         "category": [
115             "actions",                            115             "actions",
116             "police"                              116             "police"
117         ],                                        117         ],
118         "plugins": {                              118         "plugins": {
119            "requires": "nsPlugin"                 119            "requires": "nsPlugin"
120         },                                        120         },
121         "setup": [                                121         "setup": [
122             [                                     122             [
123                 "$TC actions flush action poli    123                 "$TC actions flush action police",
124                 0,                                124                 0,
125                 1,                                125                 1,
126                 255                               126                 255
127             ]                                     127             ]
128         ],                                        128         ],
129         "cmdUnderTest": "$TC actions add actio    129         "cmdUnderTest": "$TC actions add action police rate 5kbit burst 6kb peakrate 10kbit index 9",
130         "expExitCode": "255",                     130         "expExitCode": "255",
131         "verifyCmd": "$TC actions ls action po    131         "verifyCmd": "$TC actions ls action police",
132         "matchPattern": "action order [0-9]*:     132         "matchPattern": "action order [0-9]*:  police 0x9 rate 5Kb burst 10Kb",
133         "matchCount": "0",                        133         "matchCount": "0",
134         "teardown": [                             134         "teardown": [
135             "$TC actions flush action police"     135             "$TC actions flush action police"
136         ]                                         136         ]
137     },                                            137     },
138     {                                             138     {
139         "id": "f057",                             139         "id": "f057",
140         "name": "Add police action with valid     140         "name": "Add police action with valid overhead",
141         "category": [                             141         "category": [
142             "actions",                            142             "actions",
143             "police"                              143             "police"
144         ],                                        144         ],
145         "plugins": {                              145         "plugins": {
146            "requires": "nsPlugin"                 146            "requires": "nsPlugin"
147         },                                        147         },
148         "setup": [                                148         "setup": [
149             [                                     149             [
150                 "$TC actions flush action poli    150                 "$TC actions flush action police",
151                 0,                                151                 0,
152                 1,                                152                 1,
153                 255                               153                 255
154             ]                                     154             ]
155         ],                                        155         ],
156         "cmdUnderTest": "$TC actions add actio    156         "cmdUnderTest": "$TC actions add action police rate 1mbit burst 100k overhead 64 index 64",
157         "expExitCode": "0",                       157         "expExitCode": "0",
158         "verifyCmd": "$TC actions get action p    158         "verifyCmd": "$TC actions get action police index 64",
159         "matchPattern": "action order [0-9]*:     159         "matchPattern": "action order [0-9]*:  police 0x40 rate 1Mbit burst 100Kb mtu 2Kb action reclassify overhead 64b",
160         "matchCount": "1",                        160         "matchCount": "1",
161         "teardown": [                             161         "teardown": [
162             "$TC actions flush action police"     162             "$TC actions flush action police"
163         ]                                         163         ]
164     },                                            164     },
165     {                                             165     {
166         "id": "7ffb",                             166         "id": "7ffb",
167         "name": "Add police action with ethern    167         "name": "Add police action with ethernet linklayer type",
168         "category": [                             168         "category": [
169             "actions",                            169             "actions",
170             "police"                              170             "police"
171         ],                                        171         ],
172         "plugins": {                              172         "plugins": {
173            "requires": "nsPlugin"                 173            "requires": "nsPlugin"
174         },                                        174         },
175         "setup": [                                175         "setup": [
176             [                                     176             [
177                 "$TC actions flush action poli    177                 "$TC actions flush action police",
178                 0,                                178                 0,
179                 1,                                179                 1,
180                 255                               180                 255
181             ]                                     181             ]
182         ],                                        182         ],
183         "cmdUnderTest": "$TC actions add actio    183         "cmdUnderTest": "$TC actions add action police rate 2mbit burst 200k linklayer ethernet index 8",
184         "expExitCode": "0",                       184         "expExitCode": "0",
185         "verifyCmd": "$TC actions show action     185         "verifyCmd": "$TC actions show action police",
186         "matchPattern": "action order [0-9]*:     186         "matchPattern": "action order [0-9]*:  police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify overhead 0b",
187         "matchCount": "1",                        187         "matchCount": "1",
188         "teardown": [                             188         "teardown": [
189             "$TC actions flush action police"     189             "$TC actions flush action police"
190         ]                                         190         ]
191     },                                            191     },
192     {                                             192     {
193         "id": "3dda",                             193         "id": "3dda",
194         "name": "Add police action with atm li    194         "name": "Add police action with atm linklayer type",
195         "category": [                             195         "category": [
196             "actions",                            196             "actions",
197             "police"                              197             "police"
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 poli    204                 "$TC actions flush action police",
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 police rate 2mbit burst 200k linklayer atm index 8",
211         "expExitCode": "0",                       211         "expExitCode": "0",
212         "verifyCmd": "$TC actions show action     212         "verifyCmd": "$TC actions show action police",
213         "matchPattern": "action order [0-9]*:     213         "matchPattern": "action order [0-9]*:  police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify overhead 0b linklayer atm",
214         "matchCount": "1",                        214         "matchCount": "1",
215         "teardown": [                             215         "teardown": [
216             "$TC actions flush action police"     216             "$TC actions flush action police"
217         ]                                         217         ]
218     },                                            218     },
219     {                                             219     {
220         "id": "551b",                             220         "id": "551b",
221         "name": "Add police actions with confo    221         "name": "Add police actions with conform-exceed control continue/drop",
222         "category": [                             222         "category": [
223             "actions",                            223             "actions",
224             "police"                              224             "police"
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 poli    231                 "$TC actions flush action police",
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 police rate 3mbit burst 250k conform-exceed continue/drop index 1",
238         "expExitCode": "0",                       238         "expExitCode": "0",
239         "verifyCmd": "$TC actions get action p    239         "verifyCmd": "$TC actions get action police index 1",
240         "matchPattern": "action order [0-9]*:     240         "matchPattern": "action order [0-9]*:  police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action continue/drop",
241         "matchCount": "1",                        241         "matchCount": "1",
242         "teardown": [                             242         "teardown": [
243             "$TC actions flush action police"     243             "$TC actions flush action police"
244         ]                                         244         ]
245     },                                            245     },
246     {                                             246     {
247         "id": "0c70",                             247         "id": "0c70",
248         "name": "Add police actions with confo    248         "name": "Add police actions with conform-exceed control pass/reclassify",
249         "category": [                             249         "category": [
250             "actions",                            250             "actions",
251             "police"                              251             "police"
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 poli    258                 "$TC actions flush action police",
259                 0,                                259                 0,
260                 1,                                260                 1,
261                 255                               261                 255
262             ]                                     262             ]
263         ],                                        263         ],
264         "cmdUnderTest": "$TC actions add actio    264         "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed pass/reclassify index 4",
265         "expExitCode": "0",                       265         "expExitCode": "0",
266         "verifyCmd": "$TC actions ls action po    266         "verifyCmd": "$TC actions ls action police",
267         "matchPattern": "action order [0-9]*:     267         "matchPattern": "action order [0-9]*:  police 0x4 rate 3Mbit burst 250Kb mtu 2Kb action pass/reclassify",
268         "matchCount": "1",                        268         "matchCount": "1",
269         "teardown": [                             269         "teardown": [
270             "$TC actions flush action police"     270             "$TC actions flush action police"
271         ]                                         271         ]
272     },                                            272     },
273     {                                             273     {
274         "id": "d946",                             274         "id": "d946",
275         "name": "Add police actions with confo    275         "name": "Add police actions with conform-exceed control pass/pipe",
276         "category": [                             276         "category": [
277             "actions",                            277             "actions",
278             "police"                              278             "police"
279         ],                                        279         ],
280         "plugins": {                              280         "plugins": {
281            "requires": "nsPlugin"                 281            "requires": "nsPlugin"
282         },                                        282         },
283         "setup": [                                283         "setup": [
284             [                                     284             [
285                 "$TC actions flush action poli    285                 "$TC actions flush action police",
286                 0,                                286                 0,
287                 1,                                287                 1,
288                 255                               288                 255
289             ]                                     289             ]
290         ],                                        290         ],
291         "cmdUnderTest": "$TC actions add actio    291         "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed pass/pipe index 5",
292         "expExitCode": "0",                       292         "expExitCode": "0",
293         "verifyCmd": "$TC actions ls action po    293         "verifyCmd": "$TC actions ls action police",
294         "matchPattern": "action order [0-9]*:     294         "matchPattern": "action order [0-9]*:  police 0x5 rate 3Mbit burst 250Kb mtu 2Kb action pass/pipe",
295         "matchCount": "1",                        295         "matchCount": "1",
296         "teardown": [                             296         "teardown": [
297             "$TC actions flush action police"     297             "$TC actions flush action police"
298         ]                                         298         ]
299     },                                            299     },
300     {                                             300     {
301         "id": "ddd6",                             301         "id": "ddd6",
302         "name": "Add police action with invali    302         "name": "Add police action with invalid rate value",
303         "category": [                             303         "category": [
304             "actions",                            304             "actions",
305             "police"                              305             "police"
306         ],                                        306         ],
307         "plugins": {                              307         "plugins": {
308            "requires": "nsPlugin"                 308            "requires": "nsPlugin"
309         },                                        309         },
310         "setup": [                                310         "setup": [
311             [                                     311             [
312                 "$TC actions flush action poli    312                 "$TC actions flush action police",
313                 0,                                313                 0,
314                 1,                                314                 1,
315                 255                               315                 255
316             ]                                     316             ]
317         ],                                        317         ],
318         "cmdUnderTest": "$TC actions add actio    318         "cmdUnderTest": "$TC actions add action police rate 3tb burst 250k conform-exceed pass/pipe index 5",
319         "expExitCode": "255",                     319         "expExitCode": "255",
320         "verifyCmd": "$TC actions ls action po    320         "verifyCmd": "$TC actions ls action police",
321         "matchPattern": "action order [0-9]*:     321         "matchPattern": "action order [0-9]*:  police 0x5 rate 3Tb burst 250Kb mtu 2Kb action pass/pipe",
322         "matchCount": "0",                        322         "matchCount": "0",
323         "teardown": [                             323         "teardown": [
324             "$TC actions flush action police"     324             "$TC actions flush action police"
325         ]                                         325         ]
326     },                                            326     },
327     {                                             327     {
328         "id": "f61c",                             328         "id": "f61c",
329         "name": "Add police action with invali    329         "name": "Add police action with invalid burst value",
330         "category": [                             330         "category": [
331             "actions",                            331             "actions",
332             "police"                              332             "police"
333         ],                                        333         ],
334         "plugins": {                              334         "plugins": {
335            "requires": "nsPlugin"                 335            "requires": "nsPlugin"
336         },                                        336         },
337         "setup": [                                337         "setup": [
338             [                                     338             [
339                 "$TC actions flush action poli    339                 "$TC actions flush action police",
340                 0,                                340                 0,
341                 1,                                341                 1,
342                 255                               342                 255
343             ]                                     343             ]
344         ],                                        344         ],
345         "cmdUnderTest": "$TC actions add actio    345         "cmdUnderTest": "$TC actions add action police rate 3kbit burst 250P conform-exceed pass/pipe index 5",
346         "expExitCode": "255",                     346         "expExitCode": "255",
347         "verifyCmd": "$TC actions ls action po    347         "verifyCmd": "$TC actions ls action police",
348         "matchPattern": "action order [0-9]*:     348         "matchPattern": "action order [0-9]*:  police 0x5 rate 3Kbit burst 250Pb mtu 2Kb action pass/pipe",
349         "matchCount": "0",                        349         "matchCount": "0",
350         "teardown": [                             350         "teardown": [
351             "$TC actions flush action police"     351             "$TC actions flush action police"
352         ]                                         352         ]
353     },                                            353     },
354     {                                             354     {
355         "id": "6aaf",                             355         "id": "6aaf",
356         "name": "Add police actions with confo    356         "name": "Add police actions with conform-exceed control pass/pipe [with numeric values]",
357         "category": [                             357         "category": [
358             "actions",                            358             "actions",
359             "police"                              359             "police"
360         ],                                        360         ],
361         "plugins": {                              361         "plugins": {
362            "requires": "nsPlugin"                 362            "requires": "nsPlugin"
363         },                                        363         },
364         "setup": [                                364         "setup": [
365             [                                     365             [
366                 "$TC actions flush action poli    366                 "$TC actions flush action police",
367                 0,                                367                 0,
368                 1,                                368                 1,
369                 255                               369                 255
370             ]                                     370             ]
371         ],                                        371         ],
372         "cmdUnderTest": "$TC actions add actio    372         "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed 0/3 index 1",
373         "expExitCode": "0",                       373         "expExitCode": "0",
374         "verifyCmd": "$TC actions get action p    374         "verifyCmd": "$TC actions get action police index 1",
375         "matchPattern": "action order [0-9]*:     375         "matchPattern": "action order [0-9]*:  police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action pass/pipe",
376         "matchCount": "1",                        376         "matchCount": "1",
377         "teardown": [                             377         "teardown": [
378             "$TC actions flush action police"     378             "$TC actions flush action police"
379         ]                                         379         ]
380     },                                            380     },
381     {                                             381     {
382         "id": "29b1",                             382         "id": "29b1",
383         "name": "Add police actions with confo    383         "name": "Add police actions with conform-exceed control <invalid>/drop",
384         "category": [                             384         "category": [
385             "actions",                            385             "actions",
386             "police"                              386             "police"
387         ],                                        387         ],
388         "plugins": {                              388         "plugins": {
389            "requires": "nsPlugin"                 389            "requires": "nsPlugin"
390         },                                        390         },
391         "setup": [                                391         "setup": [
392             [                                     392             [
393                 "$TC actions flush action poli    393                 "$TC actions flush action police",
394                 0,                                394                 0,
395                 1,                                395                 1,
396                 255                               396                 255
397             ]                                     397             ]
398         ],                                        398         ],
399         "cmdUnderTest": "$TC actions add actio    399         "cmdUnderTest": "$TC actions add action police rate 3mbit burst 250k conform-exceed 10/drop index 1",
400         "expExitCode": "255",                     400         "expExitCode": "255",
401         "verifyCmd": "$TC actions ls action po    401         "verifyCmd": "$TC actions ls action police",
402         "matchPattern": "action order [0-9]*:     402         "matchPattern": "action order [0-9]*:  police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action ",
403         "matchCount": "0",                        403         "matchCount": "0",
404         "teardown": [                             404         "teardown": [
405             "$TC actions flush action police"     405             "$TC actions flush action police"
406         ]                                         406         ]
407     },                                            407     },
408     {                                             408     {
409         "id": "c26f",                             409         "id": "c26f",
410         "name": "Add police action with invali    410         "name": "Add police action with invalid peakrate value",
411         "category": [                             411         "category": [
412             "actions",                            412             "actions",
413             "police"                              413             "police"
414         ],                                        414         ],
415         "plugins": {                              415         "plugins": {
416            "requires": "nsPlugin"                 416            "requires": "nsPlugin"
417         },                                        417         },
418         "setup": [                                418         "setup": [
419             [                                     419             [
420                 "$TC actions flush action poli    420                 "$TC actions flush action police",
421                 0,                                421                 0,
422                 1,                                422                 1,
423                 255                               423                 255
424             ]                                     424             ]
425         ],                                        425         ],
426         "cmdUnderTest": "$TC actions add actio    426         "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100T index 1",
427         "expExitCode": "255",                     427         "expExitCode": "255",
428         "verifyCmd": "$TC actions ls action po    428         "verifyCmd": "$TC actions ls action police",
429         "matchPattern": "action order [0-9]*:     429         "matchPattern": "action order [0-9]*:  police 0x1 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Tbit",
430         "matchCount": "0",                        430         "matchCount": "0",
431         "teardown": [                             431         "teardown": [
432             "$TC actions flush action police"     432             "$TC actions flush action police"
433         ]                                         433         ]
434     },                                            434     },
435     {                                             435     {
436         "id": "db04",                             436         "id": "db04",
437         "name": "Add police action with invali    437         "name": "Add police action with invalid mtu value",
438         "category": [                             438         "category": [
439             "actions",                            439             "actions",
440             "police"                              440             "police"
441         ],                                        441         ],
442         "plugins": {                              442         "plugins": {
443            "requires": "nsPlugin"                 443            "requires": "nsPlugin"
444         },                                        444         },
445         "setup": [                                445         "setup": [
446             [                                     446             [
447                 "$TC actions flush action poli    447                 "$TC actions flush action police",
448                 0,                                448                 0,
449                 1,                                449                 1,
450                 255                               450                 255
451             ]                                     451             ]
452         ],                                        452         ],
453         "cmdUnderTest": "$TC actions add actio    453         "cmdUnderTest": "$TC actions add action police rate 10kbit burst 10k mtu 2Pbit index 1",
454         "expExitCode": "255",                     454         "expExitCode": "255",
455         "verifyCmd": "$TC actions ls action po    455         "verifyCmd": "$TC actions ls action police",
456         "matchPattern": "action order [0-9]*:     456         "matchPattern": "action order [0-9]*:  police 0x1 rate 10Kbit burst 1Kb mtu 2Pb",
457         "matchCount": "0",                        457         "matchCount": "0",
458         "teardown": [                             458         "teardown": [
459             "$TC actions flush action police"     459             "$TC actions flush action police"
460         ]                                         460         ]
461     },                                            461     },
462     {                                             462     {
463         "id": "f3c9",                             463         "id": "f3c9",
464         "name": "Add police action with cookie    464         "name": "Add police action with cookie",
465         "category": [                             465         "category": [
466             "actions",                            466             "actions",
467             "police"                              467             "police"
468         ],                                        468         ],
469         "plugins": {                              469         "plugins": {
470            "requires": "nsPlugin"                 470            "requires": "nsPlugin"
471         },                                        471         },
472         "setup": [                                472         "setup": [
473             [                                     473             [
474                 "$TC actions flush action poli    474                 "$TC actions flush action police",
475                 0,                                475                 0,
476                 1,                                476                 1,
477                 255                               477                 255
478             ]                                     478             ]
479         ],                                        479         ],
480         "cmdUnderTest": "$TC actions add actio    480         "cmdUnderTest": "$TC actions add action police rate 10mbit burst 10k index 1 cookie a1b1c1d1e1f12233bb",
481         "expExitCode": "0",                       481         "expExitCode": "0",
482         "verifyCmd": "$TC actions get action p    482         "verifyCmd": "$TC actions get action police index 1",
483         "matchPattern": "action order [0-9]*:     483         "matchPattern": "action order [0-9]*:  police 0x1 rate 10Mbit burst 10Kb mtu 2Kb.*cookie a1b1c1d1e1f12233bb",
484         "matchCount": "1",                        484         "matchCount": "1",
485         "teardown": [                             485         "teardown": [
486             "$TC actions flush action police"     486             "$TC actions flush action police"
487         ]                                         487         ]
488     },                                            488     },
489     {                                             489     {
490         "id": "d190",                             490         "id": "d190",
491         "name": "Add police action with maximu    491         "name": "Add police action with maximum index",
492         "category": [                             492         "category": [
493             "actions",                            493             "actions",
494             "police"                              494             "police"
495         ],                                        495         ],
496         "plugins": {                              496         "plugins": {
497            "requires": "nsPlugin"                 497            "requires": "nsPlugin"
498         },                                        498         },
499         "setup": [                                499         "setup": [
500             [                                     500             [
501                 "$TC actions flush action poli    501                 "$TC actions flush action police",
502                 0,                                502                 0,
503                 1,                                503                 1,
504                 255                               504                 255
505             ]                                     505             ]
506         ],                                        506         ],
507         "cmdUnderTest": "$TC actions add actio    507         "cmdUnderTest": "$TC actions add action police rate 10mbit burst 10k index 4294967295",
508         "expExitCode": "0",                       508         "expExitCode": "0",
509         "verifyCmd": "$TC actions get action p    509         "verifyCmd": "$TC actions get action police index 4294967295",
510         "matchPattern": "action order [0-9]*:     510         "matchPattern": "action order [0-9]*:  police 0xffffffff rate 10Mbit burst 10Kb mtu 2Kb",
511         "matchCount": "1",                        511         "matchCount": "1",
512         "teardown": [                             512         "teardown": [
513             "$TC actions flush action police"     513             "$TC actions flush action police"
514         ]                                         514         ]
515     },                                            515     },
516     {                                             516     {
517         "id": "336e",                             517         "id": "336e",
518         "name": "Delete police action",           518         "name": "Delete police action",
519         "category": [                             519         "category": [
520             "actions",                            520             "actions",
521             "police"                              521             "police"
522         ],                                        522         ],
523         "plugins": {                              523         "plugins": {
524            "requires": "nsPlugin"                 524            "requires": "nsPlugin"
525         },                                        525         },
526         "setup": [                                526         "setup": [
527             [                                     527             [
528                 "$TC actions flush action poli    528                 "$TC actions flush action police",
529                 0,                                529                 0,
530                 1,                                530                 1,
531                 255                               531                 255
532             ],                                    532             ],
533             "$TC actions add action police rat    533             "$TC actions add action police rate 5mbit burst 2m index 12"
534         ],                                        534         ],
535         "cmdUnderTest": "$TC actions delete ac    535         "cmdUnderTest": "$TC actions delete action police index 12",
536         "expExitCode": "0",                       536         "expExitCode": "0",
537         "verifyCmd": "$TC actions ls action po    537         "verifyCmd": "$TC actions ls action police",
538         "matchPattern": "action order [0-9]*:     538         "matchPattern": "action order [0-9]*:  police 0xc rate 5Mb burst 2Mb",
539         "matchCount": "0",                        539         "matchCount": "0",
540         "teardown": [                             540         "teardown": [
541             "$TC actions flush action police"     541             "$TC actions flush action police"
542         ]                                         542         ]
543     },                                            543     },
544     {                                             544     {
545         "id": "77fa",                             545         "id": "77fa",
546         "name": "Get single police action from    546         "name": "Get single police action from many actions",
547         "category": [                             547         "category": [
548             "actions",                            548             "actions",
549             "police"                              549             "police"
550         ],                                        550         ],
551         "plugins": {                              551         "plugins": {
552            "requires": "nsPlugin"                 552            "requires": "nsPlugin"
553         },                                        553         },
554         "setup": [                                554         "setup": [
555             [                                     555             [
556                 "$TC actions flush action poli    556                 "$TC actions flush action police",
557                 0,                                557                 0,
558                 1,                                558                 1,
559                 255                               559                 255
560             ],                                    560             ],
561             "$TC actions add action police rat    561             "$TC actions add action police rate 1mbit burst 100k index 1",
562             "$TC actions add action police rat    562             "$TC actions add action police rate 2mbit burst 200k index 2",
563             "$TC actions add action police rat    563             "$TC actions add action police rate 3mbit burst 300k index 3",
564             "$TC actions add action police rat    564             "$TC actions add action police rate 4mbit burst 400k index 4",
565             "$TC actions add action police rat    565             "$TC actions add action police rate 5mbit burst 500k index 5",
566             "$TC actions add action police rat    566             "$TC actions add action police rate 6mbit burst 600k index 6",
567             "$TC actions add action police rat    567             "$TC actions add action police rate 7mbit burst 700k index 7",
568             "$TC actions add action police rat    568             "$TC actions add action police rate 8mbit burst 800k index 8"
569         ],                                        569         ],
570         "cmdUnderTest": "$TC actions get actio    570         "cmdUnderTest": "$TC actions get action police index 4",
571         "expExitCode": "0",                       571         "expExitCode": "0",
572         "verifyCmd": "$TC actions get action p    572         "verifyCmd": "$TC actions get action police index 4",
573         "matchPattern": "action order [0-9]*:     573         "matchPattern": "action order [0-9]*:  police 0x4 rate 4Mbit burst 400Kb",
574         "matchCount": "1",                        574         "matchCount": "1",
575         "teardown": [                             575         "teardown": [
576             "$TC actions flush action police"     576             "$TC actions flush action police"
577         ]                                         577         ]
578     },                                            578     },
579     {                                             579     {
580         "id": "aa43",                             580         "id": "aa43",
581         "name": "Get single police action with    581         "name": "Get single police action without specifying index",
582         "category": [                             582         "category": [
583             "actions",                            583             "actions",
584             "police"                              584             "police"
585         ],                                        585         ],
586         "plugins": {                              586         "plugins": {
587            "requires": "nsPlugin"                 587            "requires": "nsPlugin"
588         },                                        588         },
589         "setup": [                                589         "setup": [
590             [                                     590             [
591                 "$TC actions flush action poli    591                 "$TC actions flush action police",
592                 0,                                592                 0,
593                 1,                                593                 1,
594                 255                               594                 255
595             ],                                    595             ],
596             "$TC actions add action police rat    596             "$TC actions add action police rate 1mbit burst 100k index 1"
597         ],                                        597         ],
598         "cmdUnderTest": "$TC actions get actio    598         "cmdUnderTest": "$TC actions get action police",
599         "expExitCode": "255",                     599         "expExitCode": "255",
600         "verifyCmd": "$TC actions get action p    600         "verifyCmd": "$TC actions get action police",
601         "matchPattern": "action order [0-9]*:     601         "matchPattern": "action order [0-9]*:  police",
602         "matchCount": "0",                        602         "matchCount": "0",
603         "teardown": [                             603         "teardown": [
604             "$TC actions flush action police"     604             "$TC actions flush action police"
605         ]                                         605         ]
606     },                                            606     },
607     {                                             607     {
608         "id": "858b",                             608         "id": "858b",
609         "name": "List police actions",            609         "name": "List police actions",
610         "category": [                             610         "category": [
611             "actions",                            611             "actions",
612             "police"                              612             "police"
613         ],                                        613         ],
614         "plugins": {                              614         "plugins": {
615            "requires": "nsPlugin"                 615            "requires": "nsPlugin"
616         },                                        616         },
617         "setup": [                                617         "setup": [
618             [                                     618             [
619                 "$TC actions flush action poli    619                 "$TC actions flush action police",
620                 0,                                620                 0,
621                 1,                                621                 1,
622                 255                               622                 255
623             ],                                    623             ],
624             "$TC actions add action police rat    624             "$TC actions add action police rate 1mbit burst 100k index 1",
625             "$TC actions add action police rat    625             "$TC actions add action police rate 2mbit burst 200k index 2",
626             "$TC actions add action police rat    626             "$TC actions add action police rate 3mbit burst 300k index 3",
627             "$TC actions add action police rat    627             "$TC actions add action police rate 4mbit burst 400k index 4",
628             "$TC actions add action police rat    628             "$TC actions add action police rate 5mbit burst 500k index 5",
629             "$TC actions add action police rat    629             "$TC actions add action police rate 6mbit burst 600k index 6",
630             "$TC actions add action police rat    630             "$TC actions add action police rate 7mbit burst 700k index 7",
631             "$TC actions add action police rat    631             "$TC actions add action police rate 8mbit burst 800k index 8"
632         ],                                        632         ],
633         "cmdUnderTest": "$TC actions list acti    633         "cmdUnderTest": "$TC actions list action police",
634         "expExitCode": "0",                       634         "expExitCode": "0",
635         "verifyCmd": "$TC actions ls action po    635         "verifyCmd": "$TC actions ls action police",
636         "matchPattern": "action order [0-9]*:     636         "matchPattern": "action order [0-9]*:  police 0x[1-8] rate [1-8]Mbit burst [1-8]00Kb",
637         "matchCount": "8",                        637         "matchCount": "8",
638         "teardown": [                             638         "teardown": [
639             "$TC actions flush action police"     639             "$TC actions flush action police"
640         ]                                         640         ]
641     },                                            641     },
642     {                                             642     {
643         "id": "1c3a",                             643         "id": "1c3a",
644         "name": "Flush police actions",           644         "name": "Flush police actions",
645         "category": [                             645         "category": [
646             "actions",                            646             "actions",
647             "police"                              647             "police"
648         ],                                        648         ],
649         "plugins": {                              649         "plugins": {
650            "requires": "nsPlugin"                 650            "requires": "nsPlugin"
651         },                                        651         },
652         "setup": [                                652         "setup": [
653             "$TC actions add action police rat    653             "$TC actions add action police rate 1mbit burst 100k index 1",
654             "$TC actions add action police rat    654             "$TC actions add action police rate 2mbit burst 200k index 2",
655             "$TC actions add action police rat    655             "$TC actions add action police rate 3mbit burst 300k index 3",
656             "$TC actions add action police rat    656             "$TC actions add action police rate 4mbit burst 400k index 4",
657             "$TC actions add action police rat    657             "$TC actions add action police rate 5mbit burst 500k index 5",
658             "$TC actions add action police rat    658             "$TC actions add action police rate 6mbit burst 600k index 6",
659             "$TC actions add action police rat    659             "$TC actions add action police rate 7mbit burst 700k index 7",
660             "$TC actions add action police rat    660             "$TC actions add action police rate 8mbit burst 800k index 8"
661         ],                                        661         ],
662         "cmdUnderTest": "$TC actions flush act    662         "cmdUnderTest": "$TC actions flush action police",
663         "expExitCode": "0",                       663         "expExitCode": "0",
664         "verifyCmd": "$TC actions ls action po    664         "verifyCmd": "$TC actions ls action police",
665         "matchPattern": "action order [0-9]*:     665         "matchPattern": "action order [0-9]*:  police",
666         "matchCount": "0",                        666         "matchCount": "0",
667         "teardown": [                             667         "teardown": [
668             ""                                    668             ""
669         ]                                         669         ]
670     },                                            670     },
671     {                                             671     {
672         "id": "7326",                             672         "id": "7326",
673         "name": "Add police action with contro    673         "name": "Add police action with control continue",
674         "category": [                             674         "category": [
675             "actions",                            675             "actions",
676             "police"                              676             "police"
677         ],                                        677         ],
678         "plugins": {                              678         "plugins": {
679            "requires": "nsPlugin"                 679            "requires": "nsPlugin"
680         },                                        680         },
681         "setup": [                                681         "setup": [
682             [                                     682             [
683                 "$TC actions flush action poli    683                 "$TC actions flush action police",
684                 0,                                684                 0,
685                 1,                                685                 1,
686                 255                               686                 255
687             ]                                     687             ]
688         ],                                        688         ],
689         "cmdUnderTest": "$TC actions add actio    689         "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m continue index 1",
690         "expExitCode": "0",                       690         "expExitCode": "0",
691         "verifyCmd": "$TC actions get action p    691         "verifyCmd": "$TC actions get action police index 1",
692         "matchPattern": "action order [0-9]*:     692         "matchPattern": "action order [0-9]*:  police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action continue",
693         "matchCount": "1",                        693         "matchCount": "1",
694         "teardown": [                             694         "teardown": [
695             "$TC actions flush action police"     695             "$TC actions flush action police"
696         ]                                         696         ]
697     },                                            697     },
698     {                                             698     {
699         "id": "34fa",                             699         "id": "34fa",
700         "name": "Add police action with contro    700         "name": "Add police action with control drop",
701         "category": [                             701         "category": [
702             "actions",                            702             "actions",
703             "police"                              703             "police"
704         ],                                        704         ],
705         "plugins": {                              705         "plugins": {
706            "requires": "nsPlugin"                 706            "requires": "nsPlugin"
707         },                                        707         },
708         "setup": [                                708         "setup": [
709             [                                     709             [
710                 "$TC actions flush action poli    710                 "$TC actions flush action police",
711                 0,                                711                 0,
712                 1,                                712                 1,
713                 255                               713                 255
714             ]                                     714             ]
715         ],                                        715         ],
716         "cmdUnderTest": "$TC actions add actio    716         "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m drop index 1",
717         "expExitCode": "0",                       717         "expExitCode": "0",
718         "verifyCmd": "$TC actions ls action po    718         "verifyCmd": "$TC actions ls action police",
719         "matchPattern": "action order [0-9]*:     719         "matchPattern": "action order [0-9]*:  police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action drop",
720         "matchCount": "1",                        720         "matchCount": "1",
721         "teardown": [                             721         "teardown": [
722             "$TC actions flush action police"     722             "$TC actions flush action police"
723         ]                                         723         ]
724     },                                            724     },
725     {                                             725     {
726         "id": "8dd5",                             726         "id": "8dd5",
727         "name": "Add police action with contro    727         "name": "Add police action with control ok",
728         "category": [                             728         "category": [
729             "actions",                            729             "actions",
730             "police"                              730             "police"
731         ],                                        731         ],
732         "plugins": {                              732         "plugins": {
733            "requires": "nsPlugin"                 733            "requires": "nsPlugin"
734         },                                        734         },
735         "setup": [                                735         "setup": [
736             [                                     736             [
737                 "$TC actions flush action poli    737                 "$TC actions flush action police",
738                 0,                                738                 0,
739                 1,                                739                 1,
740                 255                               740                 255
741             ]                                     741             ]
742         ],                                        742         ],
743         "cmdUnderTest": "$TC actions add actio    743         "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m ok index 1",
744         "expExitCode": "0",                       744         "expExitCode": "0",
745         "verifyCmd": "$TC actions ls action po    745         "verifyCmd": "$TC actions ls action police",
746         "matchPattern": "action order [0-9]*:     746         "matchPattern": "action order [0-9]*:  police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action pass",
747         "matchCount": "1",                        747         "matchCount": "1",
748         "teardown": [                             748         "teardown": [
749             "$TC actions flush action police"     749             "$TC actions flush action police"
750         ]                                         750         ]
751     },                                            751     },
752     {                                             752     {
753         "id": "b9d1",                             753         "id": "b9d1",
754         "name": "Add police action with contro    754         "name": "Add police action with control reclassify",
755         "category": [                             755         "category": [
756             "actions",                            756             "actions",
757             "police"                              757             "police"
758         ],                                        758         ],
759         "plugins": {                              759         "plugins": {
760            "requires": "nsPlugin"                 760            "requires": "nsPlugin"
761         },                                        761         },
762         "setup": [                                762         "setup": [
763             [                                     763             [
764                 "$TC actions flush action poli    764                 "$TC actions flush action police",
765                 0,                                765                 0,
766                 1,                                766                 1,
767                 255                               767                 255
768             ]                                     768             ]
769         ],                                        769         ],
770         "cmdUnderTest": "$TC actions add actio    770         "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m reclassify index 1",
771         "expExitCode": "0",                       771         "expExitCode": "0",
772         "verifyCmd": "$TC actions get action p    772         "verifyCmd": "$TC actions get action police index 1",
773         "matchPattern": "action order [0-9]*:     773         "matchPattern": "action order [0-9]*:  police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action reclassify",
774         "matchCount": "1",                        774         "matchCount": "1",
775         "teardown": [                             775         "teardown": [
776             "$TC actions flush action police"     776             "$TC actions flush action police"
777         ]                                         777         ]
778     },                                            778     },
779     {                                             779     {
780         "id": "c534",                             780         "id": "c534",
781         "name": "Add police action with contro    781         "name": "Add police action with control pipe",
782         "category": [                             782         "category": [
783             "actions",                            783             "actions",
784             "police"                              784             "police"
785         ],                                        785         ],
786         "plugins": {                              786         "plugins": {
787            "requires": "nsPlugin"                 787            "requires": "nsPlugin"
788         },                                        788         },
789         "setup": [                                789         "setup": [
790             [                                     790             [
791                 "$TC actions flush action poli    791                 "$TC actions flush action police",
792                 0,                                792                 0,
793                 1,                                793                 1,
794                 255                               794                 255
795             ]                                     795             ]
796         ],                                        796         ],
797         "cmdUnderTest": "$TC actions add actio    797         "cmdUnderTest": "$TC actions add action police rate 7mbit burst 1m pipe index 1",
798         "expExitCode": "0",                       798         "expExitCode": "0",
799         "verifyCmd": "$TC actions ls action po    799         "verifyCmd": "$TC actions ls action police",
800         "matchPattern": "action order [0-9]*:     800         "matchPattern": "action order [0-9]*:  police 0x1 rate 7Mbit burst 1024Kb mtu 2Kb action pipe",
801         "matchCount": "1",                        801         "matchCount": "1",
802         "teardown": [                             802         "teardown": [
803             "$TC actions flush action police"     803             "$TC actions flush action police"
804         ]                                         804         ]
805     },                                            805     },
806     {                                             806     {
807         "id": "b48b",                             807         "id": "b48b",
808         "name": "Add police action with exceed    808         "name": "Add police action with exceed goto chain control action",
809         "category": [                             809         "category": [
810             "actions",                            810             "actions",
811             "police"                              811             "police"
812         ],                                        812         ],
813         "plugins": {                              813         "plugins": {
814            "requires": "nsPlugin"                 814            "requires": "nsPlugin"
815         },                                        815         },
816         "setup": [                                816         "setup": [
817             [                                     817             [
818                 "$TC actions flush action poli    818                 "$TC actions flush action police",
819                 0,                                819                 0,
820                 1,                                820                 1,
821                 255                               821                 255
822             ]                                     822             ]
823         ],                                        823         ],
824         "cmdUnderTest": "$TC actions add actio    824         "cmdUnderTest": "$TC actions add action police rate 1mbit burst 1k conform-exceed pass / goto chain 42",
825         "expExitCode": "255",                     825         "expExitCode": "255",
826         "verifyCmd": "$TC actions ls action po    826         "verifyCmd": "$TC actions ls action police",
827         "matchPattern": "action order [0-9]*:     827         "matchPattern": "action order [0-9]*:  police 0x1 rate 1Mbit burst 1Kb mtu 2Kb action pass/goto chain 42",
828         "matchCount": "0",                        828         "matchCount": "0",
829         "teardown": [                             829         "teardown": [
830             "$TC actions flush action police"     830             "$TC actions flush action police"
831         ]                                         831         ]
832     },                                            832     },
833     {                                             833     {
834         "id": "689e",                             834         "id": "689e",
835         "name": "Replace police action with in    835         "name": "Replace police action with invalid goto chain control",
836         "category": [                             836         "category": [
837             "actions",                            837             "actions",
838             "police"                              838             "police"
839         ],                                        839         ],
840         "plugins": {                              840         "plugins": {
841            "requires": "nsPlugin"                 841            "requires": "nsPlugin"
842         },                                        842         },
843         "setup": [                                843         "setup": [
844             [                                     844             [
845                 "$TC actions flush action poli    845                 "$TC actions flush action police",
846                 0,                                846                 0,
847                 1,                                847                 1,
848                 255                               848                 255
849             ],                                    849             ],
850             "$TC actions add action police rat    850             "$TC actions add action police rate 3mbit burst 250k drop index 90"
851         ],                                        851         ],
852         "cmdUnderTest": "$TC actions replace a    852         "cmdUnderTest": "$TC actions replace action police rate 3mbit burst 250k goto chain 42 index 90 cookie c1a0c1a0",
853         "expExitCode": "255",                     853         "expExitCode": "255",
854         "verifyCmd": "$TC actions get action p    854         "verifyCmd": "$TC actions get action police index 90",
855         "matchPattern": "action order [0-9]*:     855         "matchPattern": "action order [0-9]*:  police 0x5a rate 3Mbit burst 250Kb mtu 2Kb action drop",
856         "matchCount": "1",                        856         "matchCount": "1",
857         "teardown": [                             857         "teardown": [
858             "$TC actions flush action police"     858             "$TC actions flush action police"
859         ]                                         859         ]
860     },                                            860     },
861     {                                             861     {
862         "id": "cdd7",                             862         "id": "cdd7",
863         "name": "Add valid police action with     863         "name": "Add valid police action with packets per second rate limit",
864         "category": [                             864         "category": [
865             "actions",                            865             "actions",
866             "police"                              866             "police"
867         ],                                        867         ],
868         "plugins": {                              868         "plugins": {
869            "requires": "nsPlugin"                 869            "requires": "nsPlugin"
870         },                                        870         },
871         "setup": [                                871         "setup": [
872             [                                     872             [
873                 "$TC actions flush action poli    873                 "$TC actions flush action police",
874                 0,                                874                 0,
875                 1,                                875                 1,
876                 255                               876                 255
877             ]                                     877             ]
878         ],                                        878         ],
879         "cmdUnderTest": "$TC actions add actio    879         "cmdUnderTest": "$TC actions add action police pkts_rate 1000 pkts_burst 200 index 1",
880         "expExitCode": "0",                       880         "expExitCode": "0",
881         "verifyCmd": "$TC actions ls action po    881         "verifyCmd": "$TC actions ls action police",
882         "matchPattern": "action order [0-9]*:     882         "matchPattern": "action order [0-9]*:  police 0x1 rate 0bit burst 0b mtu 4096Mb pkts_rate 1000 pkts_burst 200",
883         "matchCount": "1",                        883         "matchCount": "1",
884         "teardown": [                             884         "teardown": [
885             "$TC actions flush action police"     885             "$TC actions flush action police"
886         ]                                         886         ]
887     },                                            887     },
888     {                                             888     {
889         "id": "f5bc",                             889         "id": "f5bc",
890         "name": "Add invalid police action wit    890         "name": "Add invalid police action with both bps and pps",
891         "category": [                             891         "category": [
892             "actions",                            892             "actions",
893             "police"                              893             "police"
894         ],                                        894         ],
895         "plugins": {                              895         "plugins": {
896            "requires": "nsPlugin"                 896            "requires": "nsPlugin"
897         },                                        897         },
898         "setup": [                                898         "setup": [
899             [                                     899             [
900                 "$TC actions flush action poli    900                 "$TC actions flush action police",
901                 0,                                901                 0,
902                 1,                                902                 1,
903                 255                               903                 255
904             ]                                     904             ]
905         ],                                        905         ],
906         "cmdUnderTest": "$TC actions add actio    906         "cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k pkts_rate 1000 pkts_burst 200 index 1",
907         "expExitCode": "255",                     907         "expExitCode": "255",
908         "verifyCmd": "$TC actions ls action po    908         "verifyCmd": "$TC actions ls action police",
909         "matchPattern": "action order [0-9]*:     909         "matchPattern": "action order [0-9]*:  police 0x1 ",
910         "matchCount": "0",                        910         "matchCount": "0",
911         "teardown": [                             911         "teardown": [
912             "$TC actions flush action police"     912             "$TC actions flush action police"
913         ]                                         913         ]
914     },                                            914     },
915     {                                             915     {
916         "id": "7d64",                             916         "id": "7d64",
917         "name": "Add police action with skip_h    917         "name": "Add police action with skip_hw option",
918         "category": [                             918         "category": [
919             "actions",                            919             "actions",
920             "police"                              920             "police"
921         ],                                        921         ],
922         "plugins": {                              922         "plugins": {
923            "requires": "nsPlugin"                 923            "requires": "nsPlugin"
924         },                                        924         },
925         "setup": [                                925         "setup": [
926             [                                     926             [
927                 "$TC actions flush action poli    927                 "$TC actions flush action police",
928                 0,                                928                 0,
929                 1,                                929                 1,
930                 255                               930                 255
931             ]                                     931             ]
932         ],                                        932         ],
933         "cmdUnderTest": "$TC actions add actio    933         "cmdUnderTest": "$TC actions add action police rate 1kbit burst 10k index 100 skip_hw",
934         "expExitCode": "0",                       934         "expExitCode": "0",
935         "verifyCmd": "$TC actions ls action po    935         "verifyCmd": "$TC actions ls action police | grep skip_hw",
936         "matchPattern": "skip_hw",                936         "matchPattern": "skip_hw",
937         "matchCount": "1",                        937         "matchCount": "1",
938         "teardown": [                             938         "teardown": [
939             "$TC actions flush action police"     939             "$TC actions flush action police"
940         ]                                         940         ]
941     }                                             941     }
942 ]                                                 942 ]
                                                      

~ [ 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