xref: /linux/tools/testing/selftests/tc-testing/tc-tests/qdiscs/multiq.json (revision 8a922b7728a93d837954315c98b84f6b78de0c4f)
1[
2    {
3        "id": "20ba",
4        "name": "Add multiq Qdisc to multi-queue device (8 queues)",
5        "category": [
6            "qdisc",
7            "multiq"
8        ],
9        "plugins": {
10            "requires": "nsPlugin"
11        },
12        "setup": [
13            "echo \"1 1 8\" > /sys/bus/netdevsim/new_device"
14        ],
15        "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: multiq",
16        "expExitCode": "0",
17        "verifyCmd": "$TC qdisc show dev $ETH",
18        "matchPattern": "qdisc multiq 1: root refcnt [0-9]+ bands 8",
19        "matchCount": "1",
20        "teardown": [
21            "echo \"1\" > /sys/bus/netdevsim/del_device"
22        ]
23    },
24    {
25        "id": "4301",
26        "name": "List multiq Class",
27        "category": [
28            "qdisc",
29            "multiq"
30        ],
31        "plugins": {
32            "requires": "nsPlugin"
33        },
34        "setup": [
35            "echo \"1 1 8\" > /sys/bus/netdevsim/new_device"
36        ],
37        "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: multiq",
38        "expExitCode": "0",
39        "verifyCmd": "$TC class show dev $ETH",
40        "matchPattern": "class multiq 1:[0-9]+ parent 1:",
41        "matchCount": "8",
42        "teardown": [
43            "echo \"1\" > /sys/bus/netdevsim/del_device"
44        ]
45    },
46    {
47        "id": "7832",
48        "name": "Delete nonexistent multiq Qdisc",
49        "category": [
50            "qdisc",
51            "multiq"
52        ],
53        "plugins": {
54            "requires": "nsPlugin"
55        },
56        "setup": [
57            "echo \"1 1 4\" > /sys/bus/netdevsim/new_device"
58        ],
59        "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1: multiq",
60        "expExitCode": "2",
61        "verifyCmd": "$TC qdisc show dev $ETH",
62        "matchPattern": "qdisc multiq 1: root",
63        "matchCount": "0",
64        "teardown": [
65            "echo \"1\" > /sys/bus/netdevsim/del_device"
66        ]
67    },
68    {
69        "id": "2891",
70        "name": "Delete multiq Qdisc twice",
71        "category": [
72            "qdisc",
73            "multiq"
74        ],
75        "plugins": {
76            "requires": "nsPlugin"
77        },
78        "setup": [
79            "echo \"1 1 8\" > /sys/bus/netdevsim/new_device",
80            "$TC qdisc add dev $ETH root handle 1: multiq",
81            "$TC qdisc del dev $ETH root handle 1:"
82        ],
83        "cmdUnderTest": "$TC qdisc del dev $ETH root handle 1:",
84        "expExitCode": "2",
85        "verifyCmd": "$TC qdisc show dev $ETH",
86        "matchPattern": "qdisc mqprio 1: root",
87        "matchCount": "0",
88        "teardown": [
89            "echo \"1\" > /sys/bus/netdevsim/del_device"
90        ]
91    },
92    {
93        "id": "1329",
94        "name": "Add multiq Qdisc to single-queue device",
95        "category": [
96            "qdisc",
97            "multiq"
98        ],
99        "plugins": {
100            "requires": "nsPlugin"
101        },
102        "setup": [
103            "echo \"1 1\" > /sys/bus/netdevsim/new_device"
104        ],
105        "cmdUnderTest": "$TC qdisc add dev $ETH root handle 1: multiq",
106        "expExitCode": "2",
107        "verifyCmd": "$TC qdisc show dev $ETH",
108        "matchPattern": "qdisc multiq 1: root",
109        "matchCount": "0",
110        "teardown": [
111            "echo \"1\" > /sys/bus/netdevsim/del_device"
112        ]
113    }
114]
115