xref: /linux/tools/testing/selftests/tc-testing/tc-tests/qdiscs/cake.json (revision e7d759f31ca295d589f7420719c311870bb3166f)
1[
2    {
3        "id": "1212",
4        "name": "Create CAKE with default setting",
5        "category": [
6            "qdisc",
7            "cake"
8        ],
9        "plugins": {
10            "requires": "nsPlugin"
11        },
12        "setup": [
13        ],
14        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake",
15        "expExitCode": "0",
16        "verifyCmd": "$TC qdisc show dev $DUMMY",
17        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv3 triple-isolate nonat nowash no-ack-filter split-gso rtt 100ms raw overhead",
18        "matchCount": "1",
19        "teardown": [
20            "$TC qdisc del dev $DUMMY handle 1: root"
21        ]
22    },
23    {
24        "id": "3281",
25        "name": "Create CAKE with bandwidth limit",
26        "category": [
27            "qdisc",
28            "cake"
29        ],
30        "plugins": {
31            "requires": "nsPlugin"
32        },
33        "setup": [
34        ],
35        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake bandwidth 1000",
36        "expExitCode": "0",
37        "verifyCmd": "$TC qdisc show dev $DUMMY",
38        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth 1Kbit diffserv3 triple-isolate nonat nowash no-ack-filter split-gso rtt 100ms raw overhead",
39        "matchCount": "1",
40        "teardown": [
41            "$TC qdisc del dev $DUMMY handle 1: root"
42        ]
43    },
44    {
45        "id": "c940",
46        "name": "Create CAKE with autorate-ingress flag",
47        "category": [
48            "qdisc",
49            "cake"
50        ],
51        "plugins": {
52            "requires": "nsPlugin"
53        },
54        "setup": [
55        ],
56        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake autorate-ingress",
57        "expExitCode": "0",
58        "verifyCmd": "$TC qdisc show dev $DUMMY",
59        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited autorate-ingress diffserv3 triple-isolate nonat nowash no-ack-filter split-gso rtt 100ms raw overhead",
60        "matchCount": "1",
61        "teardown": [
62            "$TC qdisc del dev $DUMMY handle 1: root"
63        ]
64    },
65    {
66        "id": "2310",
67        "name": "Create CAKE with rtt time",
68        "category": [
69            "qdisc",
70            "cake"
71        ],
72        "plugins": {
73            "requires": "nsPlugin"
74        },
75        "setup": [
76        ],
77        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake rtt 200",
78        "expExitCode": "0",
79        "verifyCmd": "$TC qdisc show dev $DUMMY",
80        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv3 triple-isolate nonat nowash no-ack-filter split-gso rtt 200us raw overhead",
81        "matchCount": "1",
82        "teardown": [
83            "$TC qdisc del dev $DUMMY handle 1: root"
84        ]
85    },
86    {
87        "id": "2385",
88        "name": "Create CAKE with besteffort flag",
89        "category": [
90            "qdisc",
91            "cake"
92        ],
93        "plugins": {
94            "requires": "nsPlugin"
95        },
96        "setup": [
97        ],
98        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake besteffort",
99        "expExitCode": "0",
100        "verifyCmd": "$TC qdisc show dev $DUMMY",
101        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited besteffort triple-isolate nonat nowash no-ack-filter split-gso rtt 100ms raw overhead",
102        "matchCount": "1",
103        "teardown": [
104            "$TC qdisc del dev $DUMMY handle 1: root"
105        ]
106    },
107    {
108        "id": "a032",
109        "name": "Create CAKE with diffserv8 flag",
110        "category": [
111            "qdisc",
112            "cake"
113        ],
114        "plugins": {
115            "requires": "nsPlugin"
116        },
117        "setup": [
118        ],
119        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake diffserv8",
120        "expExitCode": "0",
121        "verifyCmd": "$TC qdisc show dev $DUMMY",
122        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv8 triple-isolate nonat nowash no-ack-filter split-gso rtt 100ms raw overhead",
123        "matchCount": "1",
124        "teardown": [
125            "$TC qdisc del dev $DUMMY handle 1: root"
126        ]
127    },
128    {
129        "id": "2349",
130        "name": "Create CAKE with diffserv4 flag",
131        "category": [
132            "qdisc",
133            "cake"
134        ],
135        "plugins": {
136            "requires": "nsPlugin"
137        },
138        "setup": [
139        ],
140        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake diffserv4",
141        "expExitCode": "0",
142        "verifyCmd": "$TC qdisc show dev $DUMMY",
143        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv4 triple-isolate nonat nowash no-ack-filter split-gso rtt 100ms raw overhead",
144        "matchCount": "1",
145        "teardown": [
146            "$TC qdisc del dev $DUMMY handle 1: root"
147        ]
148    },
149    {
150        "id": "8472",
151        "name": "Create CAKE with flowblind flag",
152        "category": [
153            "qdisc",
154            "cake"
155        ],
156        "plugins": {
157            "requires": "nsPlugin"
158        },
159        "setup": [
160        ],
161        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake flowblind",
162        "expExitCode": "0",
163        "verifyCmd": "$TC qdisc show dev $DUMMY",
164        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv3 flowblind nonat nowash no-ack-filter split-gso rtt 100ms raw overhead",
165        "matchCount": "1",
166        "teardown": [
167            "$TC qdisc del dev $DUMMY handle 1: root"
168        ]
169    },
170    {
171        "id": "2341",
172        "name": "Create CAKE with dsthost and nat flag",
173        "category": [
174            "qdisc",
175            "cake"
176        ],
177        "plugins": {
178            "requires": "nsPlugin"
179        },
180        "setup": [
181        ],
182        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake dsthost nat",
183        "expExitCode": "0",
184        "verifyCmd": "$TC qdisc show dev $DUMMY",
185        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv3 dsthost nat nowash no-ack-filter split-gso rtt 100ms raw overhead",
186        "matchCount": "1",
187        "teardown": [
188            "$TC qdisc del dev $DUMMY handle 1: root"
189        ]
190    },
191    {
192        "id": "5134",
193        "name": "Create CAKE with wash flag",
194        "category": [
195            "qdisc",
196            "cake"
197        ],
198        "plugins": {
199            "requires": "nsPlugin"
200        },
201        "setup": [
202        ],
203        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake hosts wash",
204        "expExitCode": "0",
205        "verifyCmd": "$TC qdisc show dev $DUMMY",
206        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv3 hosts nonat wash no-ack-filter split-gso rtt 100ms raw overhead",
207        "matchCount": "1",
208        "teardown": [
209            "$TC qdisc del dev $DUMMY handle 1: root"
210        ]
211    },
212    {
213        "id": "2302",
214        "name": "Create CAKE with flowblind and no-split-gso flag",
215        "category": [
216            "qdisc",
217            "cake"
218        ],
219        "plugins": {
220            "requires": "nsPlugin"
221        },
222        "setup": [
223        ],
224        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake flowblind no-split-gso",
225        "expExitCode": "0",
226        "verifyCmd": "$TC qdisc show dev $DUMMY",
227        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv3 flowblind nonat nowash no-ack-filter no-split-gso rtt 100ms raw overhead",
228        "matchCount": "1",
229        "teardown": [
230            "$TC qdisc del dev $DUMMY handle 1: root"
231        ]
232    },
233    {
234        "id": "0768",
235        "name": "Create CAKE with dual-srchost and ack-filter flag",
236        "category": [
237            "qdisc",
238            "cake"
239        ],
240        "plugins": {
241            "requires": "nsPlugin"
242        },
243        "setup": [
244        ],
245        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake dual-srchost ack-filter",
246        "expExitCode": "0",
247        "verifyCmd": "$TC qdisc show dev $DUMMY",
248        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv3 dual-srchost nonat nowash ack-filter split-gso rtt 100ms raw overhead",
249        "matchCount": "1",
250        "teardown": [
251            "$TC qdisc del dev $DUMMY handle 1: root"
252        ]
253    },
254    {
255        "id": "0238",
256        "name": "Create CAKE with dual-dsthost and ack-filter-aggressive flag",
257        "category": [
258            "qdisc",
259            "cake"
260        ],
261        "plugins": {
262            "requires": "nsPlugin"
263        },
264        "setup": [
265        ],
266        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake dual-dsthost ack-filter-aggressive",
267        "expExitCode": "0",
268        "verifyCmd": "$TC qdisc show dev $DUMMY",
269        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv3 dual-dsthost nonat nowash ack-filter-aggressive split-gso rtt 100ms raw overhead",
270        "matchCount": "1",
271        "teardown": [
272            "$TC qdisc del dev $DUMMY handle 1: root"
273        ]
274    },
275    {
276        "id": "6572",
277        "name": "Create CAKE with memlimit and ptm flag",
278        "category": [
279            "qdisc",
280            "cake"
281        ],
282        "plugins": {
283            "requires": "nsPlugin"
284        },
285        "setup": [
286        ],
287        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake memlimit 10000 ptm",
288        "expExitCode": "0",
289        "verifyCmd": "$TC qdisc show dev $DUMMY",
290        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv3 triple-isolate nonat nowash no-ack-filter split-gso rtt 100ms raw ptm overhead 0 memlimit 10000b",
291        "matchCount": "1",
292        "teardown": [
293            "$TC qdisc del dev $DUMMY handle 1: root"
294        ]
295    },
296    {
297        "id": "2436",
298        "name": "Create CAKE with fwmark and atm flag",
299        "category": [
300            "qdisc",
301            "cake"
302        ],
303        "plugins": {
304            "requires": "nsPlugin"
305        },
306        "setup": [
307        ],
308        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake fwmark 8 atm",
309        "expExitCode": "0",
310        "verifyCmd": "$TC qdisc show dev $DUMMY",
311        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv3 triple-isolate nonat nowash no-ack-filter split-gso rtt 100ms raw atm overhead 0 fwmark 0x8",
312        "matchCount": "1",
313        "teardown": [
314            "$TC qdisc del dev $DUMMY handle 1: root"
315        ]
316    },
317    {
318        "id": "3984",
319        "name": "Create CAKE with overhead and mpu",
320        "category": [
321            "qdisc",
322            "cake"
323        ],
324        "plugins": {
325            "requires": "nsPlugin"
326        },
327        "setup": [
328        ],
329        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake overhead 128 mpu 256",
330        "expExitCode": "0",
331        "verifyCmd": "$TC qdisc show dev $DUMMY",
332        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv3 triple-isolate nonat nowash no-ack-filter split-gso rtt 100ms noatm overhead 128 mpu 256",
333        "matchCount": "1",
334        "teardown": [
335            "$TC qdisc del dev $DUMMY handle 1: root"
336        ]
337    },
338    {
339        "id": "5421",
340        "name": "Create CAKE with conservative and ingress flag",
341        "category": [
342            "qdisc",
343            "cake"
344        ],
345        "plugins": {
346            "requires": "nsPlugin"
347        },
348        "setup": [
349        ],
350        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake conservative ingress",
351        "expExitCode": "0",
352        "verifyCmd": "$TC qdisc show dev $DUMMY",
353        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv3 triple-isolate nonat nowash ingress no-ack-filter split-gso rtt 100ms atm overhead 48",
354        "matchCount": "1",
355        "teardown": [
356            "$TC qdisc del dev $DUMMY handle 1: root"
357        ]
358    },
359    {
360        "id": "6854",
361        "name": "Delete CAKE with conservative and ingress flag",
362        "category": [
363            "qdisc",
364            "cake"
365        ],
366        "plugins": {
367            "requires": "nsPlugin"
368        },
369        "setup": [
370            "$TC qdisc add dev $DUMMY handle 1: root cake conservative ingress"
371        ],
372        "cmdUnderTest": "$TC qdisc del dev $DUMMY handle 1: root",
373        "expExitCode": "0",
374        "verifyCmd": "$TC qdisc show dev $DUMMY",
375        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv3 triple-isolate nonat nowash ingress no-ack-filter split-gso rtt 100ms atm overhead 48",
376        "matchCount": "0",
377        "teardown": [
378        ]
379    },
380    {
381        "id": "2342",
382        "name": "Replace CAKE with mpu",
383        "category": [
384            "qdisc",
385            "cake"
386        ],
387        "plugins": {
388            "requires": "nsPlugin"
389        },
390        "setup": [
391            "$TC qdisc add dev $DUMMY handle 1: root cake overhead 128 mpu 256"
392        ],
393        "cmdUnderTest": "$TC qdisc replace dev $DUMMY handle 1: root cake mpu 128",
394        "expExitCode": "0",
395        "verifyCmd": "$TC qdisc show dev $DUMMY",
396        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv3 triple-isolate nonat nowash no-ack-filter split-gso rtt 100ms noatm overhead 128 mpu 128",
397        "matchCount": "1",
398        "teardown": [
399            "$TC qdisc del dev $DUMMY handle 1: root"
400        ]
401    },
402    {
403        "id": "2313",
404        "name": "Change CAKE with mpu",
405        "category": [
406            "qdisc",
407            "cake"
408        ],
409        "plugins": {
410            "requires": "nsPlugin"
411        },
412        "setup": [
413            "$TC qdisc add dev $DUMMY handle 1: root cake overhead 128 mpu 256"
414        ],
415        "cmdUnderTest": "$TC qdisc change dev $DUMMY handle 1: root cake mpu 128",
416        "expExitCode": "0",
417        "verifyCmd": "$TC qdisc show dev $DUMMY",
418        "matchPattern": "qdisc cake 1: root refcnt [0-9]+ bandwidth unlimited diffserv3 triple-isolate nonat nowash no-ack-filter split-gso rtt 100ms noatm overhead 128 mpu 128",
419        "matchCount": "1",
420        "teardown": [
421            "$TC qdisc del dev $DUMMY handle 1: root"
422        ]
423    },
424    {
425        "id": "4365",
426        "name": "Show CAKE class",
427        "category": [
428            "qdisc",
429            "cake"
430        ],
431        "plugins": {
432            "requires": "nsPlugin"
433        },
434        "setup": [
435        ],
436        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root cake",
437        "expExitCode": "0",
438        "verifyCmd": "$TC class show dev $DUMMY",
439        "matchPattern": "class cake",
440        "matchCount": "0",
441        "teardown": [
442            "$TC qdisc del dev $DUMMY handle 1: root"
443        ]
444    }
445]
446