File Index
Files and directories
Sign in
FILE

fifo.json

File preview with syntax highlighting.

linux-6.19.14/tools/testing/selftests/tc-testing/tc-tests/qdiscs/fifo.json JSON
  1[
  2    {
  3        "id": "a519",
  4        "name": "Add bfifo qdisc with system default parameters on egress",
  5        "category": [
  6            "qdisc",
  7            "fifo"
  8        ],
  9        "plugins": {
 10            "requires": "nsPlugin"
 11        },
 12        "setup": [
 13        ],
 14        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root bfifo",
 15        "expExitCode": "0",
 16        "verifyCmd": "$TC qdisc show dev $DUMMY",
 17        "matchPattern": "qdisc bfifo 1: root.*limit [0-9]+b",
 18        "matchCount": "1",
 19        "teardown": [
 20            "$TC qdisc del dev $DUMMY handle 1: root bfifo"
 21        ]
 22    },
 23    {
 24        "id": "585c",
 25        "name": "Add pfifo qdisc with system default parameters on egress",
 26        "category": [
 27            "qdisc",
 28            "fifo"
 29        ],
 30        "plugins": {
 31            "requires": "nsPlugin"
 32        },
 33        "setup": [
 34        ],
 35        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root pfifo",
 36        "expExitCode": "0",
 37        "verifyCmd": "$TC qdisc show dev $DUMMY",
 38        "matchPattern": "qdisc pfifo 1: root.*limit [0-9]+p",
 39        "matchCount": "1",
 40        "teardown": [
 41            "$TC qdisc del dev $DUMMY handle 1: root pfifo"
 42        ]
 43    },
 44    {
 45        "id": "a86e",
 46        "name": "Add bfifo qdisc with system default parameters on egress with handle of maximum value",
 47        "category": [
 48            "qdisc",
 49            "fifo"
 50        ],
 51        "plugins": {
 52            "requires": "nsPlugin"
 53        },
 54        "setup": [
 55        ],
 56        "cmdUnderTest": "$TC qdisc add dev $DUMMY root handle ffff: bfifo",
 57        "expExitCode": "0",
 58        "verifyCmd": "$TC qdisc show dev $DUMMY",
 59        "matchPattern": "qdisc bfifo ffff: root.*limit [0-9]+b",
 60        "matchCount": "1",
 61        "teardown": [
 62            "$TC qdisc del dev $DUMMY handle ffff: root bfifo"
 63        ]
 64    },
 65    {
 66        "id": "9ac8",
 67        "name": "Add bfifo qdisc on egress with queue size of 3000 bytes",
 68        "category": [
 69            "qdisc",
 70            "fifo"
 71        ],
 72        "plugins": {
 73            "requires": "nsPlugin"
 74        },
 75        "setup": [
 76        ],
 77        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root bfifo limit 3000b",
 78        "expExitCode": "0",
 79        "verifyCmd": "$TC qdisc show dev $DUMMY",
 80        "matchPattern": "qdisc bfifo 1: root.*limit 3000b",
 81        "matchCount": "1",
 82        "teardown": [
 83            "$TC qdisc del dev $DUMMY handle 1: root bfifo"
 84        ]
 85    },
 86    {
 87        "id": "f4e6",
 88        "name": "Add pfifo qdisc on egress with queue size of 3000 packets",
 89        "category": [
 90            "qdisc",
 91            "fifo"
 92        ],
 93        "plugins": {
 94            "requires": "nsPlugin"
 95        },
 96        "setup": [
 97            "$IP link set dev $DUMMY txqueuelen 3000"
 98        ],
 99        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root pfifo limit 3000",
100        "expExitCode": "0",
101        "verifyCmd": "$TC qdisc show dev $DUMMY",
102        "matchPattern": "qdisc pfifo 1: root.*limit 3000p",
103        "matchCount": "1",
104        "teardown": [
105            "$TC qdisc del dev $DUMMY handle 1: root pfifo"
106        ]
107    },
108    {
109        "id": "b1b1",
110        "name": "Add bfifo qdisc with system default parameters on egress with invalid handle exceeding maximum value",
111        "category": [
112            "qdisc",
113            "fifo"
114        ],
115        "plugins": {
116            "requires": "nsPlugin"
117        },
118        "setup": [
119        ],
120        "cmdUnderTest": "$TC qdisc add dev $DUMMY root handle 10000: bfifo",
121        "expExitCode": "255",
122        "verifyCmd": "$TC qdisc show dev $DUMMY",
123        "matchPattern": "qdisc bfifo 10000: root.*limit [0-9]+b",
124        "matchCount": "0",
125        "teardown": [
126        ]
127    },
128    {
129        "id": "8d5e",
130        "name": "Add bfifo qdisc on egress with unsupported argument",
131        "category": [
132            "qdisc",
133            "fifo"
134        ],
135        "plugins": {
136            "requires": "nsPlugin"
137        },
138        "setup": [
139        ],
140        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root bfifo foorbar",
141        "expExitCode": "1",
142        "verifyCmd": "$TC qdisc show dev $DUMMY",
143        "matchPattern": "qdisc bfifo 1: root",
144        "matchCount": "0",
145        "teardown": [
146        ]
147    },
148    {
149        "id": "7787",
150        "name": "Add pfifo qdisc on egress with unsupported argument",
151        "category": [
152            "qdisc",
153            "fifo"
154        ],
155        "plugins": {
156            "requires": "nsPlugin"
157        },
158        "setup": [
159        ],
160        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root pfifo foorbar",
161        "expExitCode": "1",
162        "verifyCmd": "$TC qdisc show dev $DUMMY",
163        "matchPattern": "qdisc pfifo 1: root",
164        "matchCount": "0",
165        "teardown": [
166        ]
167    },
168    {
169        "id": "c4b6",
170        "name": "Replace bfifo qdisc on egress with new queue size",
171        "category": [
172            "qdisc",
173            "fifo"
174        ],
175        "plugins": {
176            "requires": "nsPlugin"
177        },
178        "setup": [
179            "$IP link set dev $DUMMY txqueuelen 1000",
180            "$TC qdisc add dev $DUMMY handle 1: root bfifo"
181        ],
182        "cmdUnderTest": "$TC qdisc replace dev $DUMMY handle 1: root bfifo limit 3000b",
183        "expExitCode": "0",
184        "verifyCmd": "$TC qdisc show dev $DUMMY",
185        "matchPattern": "qdisc bfifo 1: root.*limit 3000b",
186        "matchCount": "1",
187        "teardown": [
188            "$TC qdisc del dev $DUMMY handle 1: root bfifo"
189        ]
190    },
191    {
192        "id": "3df6",
193        "name": "Replace pfifo qdisc on egress with new queue size",
194        "category": [
195            "qdisc",
196            "fifo"
197        ],
198        "plugins": {
199            "requires": "nsPlugin"
200        },
201        "setup": [
202            "$IP link set dev $DUMMY txqueuelen 1000",
203            "$TC qdisc add dev $DUMMY handle 1: root pfifo"
204        ],
205        "cmdUnderTest": "$TC qdisc replace dev $DUMMY handle 1: root pfifo limit 30",
206        "expExitCode": "0",
207        "verifyCmd": "$TC qdisc show dev $DUMMY",
208        "matchPattern": "qdisc pfifo 1: root.*limit 30p",
209        "matchCount": "1",
210        "teardown": [
211            "$TC qdisc del dev $DUMMY handle 1: root pfifo"
212        ]
213    },
214    {
215        "id": "7a67",
216        "name": "Add bfifo qdisc on egress with queue size in invalid format",
217        "category": [
218            "qdisc",
219            "fifo"
220        ],
221        "plugins": {
222            "requires": "nsPlugin"
223        },
224        "setup": [
225        ],
226        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root bfifo limit foo-bar",
227        "expExitCode": "1",
228        "verifyCmd": "$TC qdisc show dev $DUMMY",
229        "matchPattern": "qdisc bfifo 1: root.*limit foo-bar",
230        "matchCount": "0",
231        "teardown": [
232        ]
233    },
234    {
235        "id": "1298",
236        "name": "Add duplicate bfifo qdisc on egress",
237        "category": [
238            "qdisc",
239            "fifo"
240        ],
241        "plugins": {
242            "requires": "nsPlugin"
243        },
244        "setup": [
245            "$TC qdisc add dev $DUMMY handle 1: root bfifo"
246        ],
247        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root bfifo",
248        "expExitCode": "2",
249        "verifyCmd": "$TC qdisc show dev $DUMMY",
250        "matchPattern": "qdisc bfifo 1: root",
251        "matchCount": "1",
252        "teardown": [
253            "$TC qdisc del dev $DUMMY handle 1: root bfifo"
254        ]
255    },
256    {
257        "id": "45a0",
258        "name": "Delete nonexistent bfifo qdisc",
259        "category": [
260            "qdisc",
261            "fifo"
262        ],
263        "plugins": {
264            "requires": "nsPlugin"
265        },
266        "setup": [
267        ],
268        "cmdUnderTest": "$TC qdisc del dev $DUMMY root handle 1: bfifo",
269        "expExitCode": "2",
270        "verifyCmd": "$TC qdisc show dev $DUMMY",
271        "matchPattern": "qdisc bfifo 1: root",
272        "matchCount": "0",
273        "teardown": [
274        ]
275    },
276    {
277        "id": "972b",
278        "name": "Add prio qdisc on egress with invalid format for handles",
279        "category": [
280            "qdisc",
281            "fifo"
282        ],
283        "plugins": {
284            "requires": "nsPlugin"
285        },
286        "setup": [
287        ],
288        "cmdUnderTest": "$TC qdisc add dev $DUMMY root handle 123^ bfifo limit 100b",
289        "expExitCode": "255",
290        "verifyCmd": "$TC qdisc show dev $DUMMY",
291        "matchPattern": "qdisc bfifo 123 root",
292        "matchCount": "0",
293        "teardown": [
294        ]
295    },
296    {
297        "id": "4d39",
298        "name": "Delete bfifo qdisc twice",
299        "category": [
300            "qdisc",
301            "fifo"
302        ],
303        "plugins": {
304            "requires": "nsPlugin"
305        },
306        "setup": [
307            "$TC qdisc add dev $DUMMY root handle 1: bfifo",
308            "$TC qdisc del dev $DUMMY root handle 1: bfifo"
309        ],
310        "cmdUnderTest": "$TC qdisc del dev $DUMMY handle 1: root bfifo",
311        "expExitCode": "2",
312        "verifyCmd": "$TC qdisc show dev $DUMMY",
313        "matchPattern": "qdisc bfifo 1: root",
314        "matchCount": "0",
315        "teardown": [
316	]
317    },
318    {
319        "id": "d774",
320        "name": "Check pfifo_head_drop qdisc enqueue behaviour when limit == 0",
321        "category": [
322            "qdisc",
323            "pfifo_head_drop"
324        ],
325        "plugins": {
326            "requires": "nsPlugin"
327        },
328        "setup": [
329            "$IP addr add 10.10.10.10/24 dev $DUMMY || true",
330            "$TC qdisc add dev $DUMMY root handle 1: pfifo_head_drop limit 0",
331            "$IP link set dev $DUMMY up || true"
332        ],
333        "cmdUnderTest": "ping -c2 -W0.01 -I $DUMMY 10.10.10.1",
334        "expExitCode": "1",
335        "verifyCmd": "$TC -s qdisc show dev $DUMMY",
336        "matchPattern": "dropped 2",
337        "matchCount": "1",
338        "teardown": [
339        ]
340    }
341]
~/ Read-only file preview.