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