xref: /openbmc/linux/tools/testing/selftests/tc-testing/tc-tests/qdiscs/codel.json (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*412233b1SZhengchao Shao[
2*412233b1SZhengchao Shao    {
3*412233b1SZhengchao Shao        "id": "983a",
4*412233b1SZhengchao Shao        "name": "Create CODEL with default setting",
5*412233b1SZhengchao Shao        "category": [
6*412233b1SZhengchao Shao            "qdisc",
7*412233b1SZhengchao Shao            "codel"
8*412233b1SZhengchao Shao        ],
9*412233b1SZhengchao Shao        "plugins": {
10*412233b1SZhengchao Shao            "requires": "nsPlugin"
11*412233b1SZhengchao Shao        },
12*412233b1SZhengchao Shao        "setup": [
13*412233b1SZhengchao Shao            "$IP link add dev $DUMMY type dummy || /bin/true"
14*412233b1SZhengchao Shao        ],
15*412233b1SZhengchao Shao        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root codel",
16*412233b1SZhengchao Shao        "expExitCode": "0",
17*412233b1SZhengchao Shao        "verifyCmd": "$TC qdisc show dev $DUMMY",
18*412233b1SZhengchao Shao        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1000p target 5ms interval 100ms",
19*412233b1SZhengchao Shao        "matchCount": "1",
20*412233b1SZhengchao Shao        "teardown": [
21*412233b1SZhengchao Shao            "$TC qdisc del dev $DUMMY handle 1: root",
22*412233b1SZhengchao Shao            "$IP link del dev $DUMMY type dummy"
23*412233b1SZhengchao Shao        ]
24*412233b1SZhengchao Shao    },
25*412233b1SZhengchao Shao    {
26*412233b1SZhengchao Shao        "id": "38aa",
27*412233b1SZhengchao Shao        "name": "Create CODEL with limit packet setting",
28*412233b1SZhengchao Shao        "category": [
29*412233b1SZhengchao Shao            "qdisc",
30*412233b1SZhengchao Shao            "codel"
31*412233b1SZhengchao Shao        ],
32*412233b1SZhengchao Shao        "plugins": {
33*412233b1SZhengchao Shao            "requires": "nsPlugin"
34*412233b1SZhengchao Shao        },
35*412233b1SZhengchao Shao        "setup": [
36*412233b1SZhengchao Shao            "$IP link add dev $DUMMY type dummy || /bin/true"
37*412233b1SZhengchao Shao        ],
38*412233b1SZhengchao Shao        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root codel limit 1500",
39*412233b1SZhengchao Shao        "expExitCode": "0",
40*412233b1SZhengchao Shao        "verifyCmd": "$TC qdisc show dev $DUMMY",
41*412233b1SZhengchao Shao        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1500p target 5ms interval 100ms",
42*412233b1SZhengchao Shao        "matchCount": "1",
43*412233b1SZhengchao Shao        "teardown": [
44*412233b1SZhengchao Shao            "$TC qdisc del dev $DUMMY handle 1: root",
45*412233b1SZhengchao Shao            "$IP link del dev $DUMMY type dummy"
46*412233b1SZhengchao Shao        ]
47*412233b1SZhengchao Shao    },
48*412233b1SZhengchao Shao    {
49*412233b1SZhengchao Shao        "id": "9178",
50*412233b1SZhengchao Shao        "name": "Create CODEL with target setting",
51*412233b1SZhengchao Shao        "category": [
52*412233b1SZhengchao Shao            "qdisc",
53*412233b1SZhengchao Shao            "codel"
54*412233b1SZhengchao Shao        ],
55*412233b1SZhengchao Shao        "plugins": {
56*412233b1SZhengchao Shao            "requires": "nsPlugin"
57*412233b1SZhengchao Shao        },
58*412233b1SZhengchao Shao        "setup": [
59*412233b1SZhengchao Shao            "$IP link add dev $DUMMY type dummy || /bin/true"
60*412233b1SZhengchao Shao        ],
61*412233b1SZhengchao Shao        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root codel target 100ms",
62*412233b1SZhengchao Shao        "expExitCode": "0",
63*412233b1SZhengchao Shao        "verifyCmd": "$TC qdisc show dev $DUMMY",
64*412233b1SZhengchao Shao        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1000p target 100ms interval 100ms",
65*412233b1SZhengchao Shao        "matchCount": "1",
66*412233b1SZhengchao Shao        "teardown": [
67*412233b1SZhengchao Shao            "$TC qdisc del dev $DUMMY handle 1: root",
68*412233b1SZhengchao Shao            "$IP link del dev $DUMMY type dummy"
69*412233b1SZhengchao Shao        ]
70*412233b1SZhengchao Shao    },
71*412233b1SZhengchao Shao    {
72*412233b1SZhengchao Shao        "id": "78d1",
73*412233b1SZhengchao Shao        "name": "Create CODEL with interval setting",
74*412233b1SZhengchao Shao        "category": [
75*412233b1SZhengchao Shao            "qdisc",
76*412233b1SZhengchao Shao            "codel"
77*412233b1SZhengchao Shao        ],
78*412233b1SZhengchao Shao        "plugins": {
79*412233b1SZhengchao Shao            "requires": "nsPlugin"
80*412233b1SZhengchao Shao        },
81*412233b1SZhengchao Shao        "setup": [
82*412233b1SZhengchao Shao            "$IP link add dev $DUMMY type dummy || /bin/true"
83*412233b1SZhengchao Shao        ],
84*412233b1SZhengchao Shao        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root codel interval 20ms",
85*412233b1SZhengchao Shao        "expExitCode": "0",
86*412233b1SZhengchao Shao        "verifyCmd": "$TC qdisc show dev $DUMMY",
87*412233b1SZhengchao Shao        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1000p target 5ms interval 20ms",
88*412233b1SZhengchao Shao        "matchCount": "1",
89*412233b1SZhengchao Shao        "teardown": [
90*412233b1SZhengchao Shao            "$TC qdisc del dev $DUMMY handle 1: root",
91*412233b1SZhengchao Shao            "$IP link del dev $DUMMY type dummy"
92*412233b1SZhengchao Shao        ]
93*412233b1SZhengchao Shao    },
94*412233b1SZhengchao Shao    {
95*412233b1SZhengchao Shao        "id": "238a",
96*412233b1SZhengchao Shao        "name": "Create CODEL with ecn setting",
97*412233b1SZhengchao Shao        "category": [
98*412233b1SZhengchao Shao            "qdisc",
99*412233b1SZhengchao Shao            "codel"
100*412233b1SZhengchao Shao        ],
101*412233b1SZhengchao Shao        "plugins": {
102*412233b1SZhengchao Shao            "requires": "nsPlugin"
103*412233b1SZhengchao Shao        },
104*412233b1SZhengchao Shao        "setup": [
105*412233b1SZhengchao Shao            "$IP link add dev $DUMMY type dummy || /bin/true"
106*412233b1SZhengchao Shao        ],
107*412233b1SZhengchao Shao        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root codel ecn",
108*412233b1SZhengchao Shao        "expExitCode": "0",
109*412233b1SZhengchao Shao        "verifyCmd": "$TC qdisc show dev $DUMMY",
110*412233b1SZhengchao Shao        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1000p target 5ms interval 100ms ecn",
111*412233b1SZhengchao Shao        "matchCount": "1",
112*412233b1SZhengchao Shao        "teardown": [
113*412233b1SZhengchao Shao            "$TC qdisc del dev $DUMMY handle 1: root",
114*412233b1SZhengchao Shao            "$IP link del dev $DUMMY type dummy"
115*412233b1SZhengchao Shao        ]
116*412233b1SZhengchao Shao    },
117*412233b1SZhengchao Shao    {
118*412233b1SZhengchao Shao        "id": "939c",
119*412233b1SZhengchao Shao        "name": "Create CODEL with ce_threshold setting",
120*412233b1SZhengchao Shao        "category": [
121*412233b1SZhengchao Shao            "qdisc",
122*412233b1SZhengchao Shao            "codel"
123*412233b1SZhengchao Shao        ],
124*412233b1SZhengchao Shao        "plugins": {
125*412233b1SZhengchao Shao            "requires": "nsPlugin"
126*412233b1SZhengchao Shao        },
127*412233b1SZhengchao Shao        "setup": [
128*412233b1SZhengchao Shao            "$IP link add dev $DUMMY type dummy || /bin/true"
129*412233b1SZhengchao Shao        ],
130*412233b1SZhengchao Shao        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root codel ce_threshold 20ms",
131*412233b1SZhengchao Shao        "expExitCode": "0",
132*412233b1SZhengchao Shao        "verifyCmd": "$TC qdisc show dev $DUMMY",
133*412233b1SZhengchao Shao        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1000p target 5ms ce_threshold 20ms interval 100ms",
134*412233b1SZhengchao Shao        "matchCount": "1",
135*412233b1SZhengchao Shao        "teardown": [
136*412233b1SZhengchao Shao            "$TC qdisc del dev $DUMMY handle 1: root",
137*412233b1SZhengchao Shao            "$IP link del dev $DUMMY type dummy"
138*412233b1SZhengchao Shao        ]
139*412233b1SZhengchao Shao    },
140*412233b1SZhengchao Shao    {
141*412233b1SZhengchao Shao        "id": "8380",
142*412233b1SZhengchao Shao        "name": "Delete CODEL with valid handle",
143*412233b1SZhengchao Shao        "category": [
144*412233b1SZhengchao Shao            "qdisc",
145*412233b1SZhengchao Shao            "codel"
146*412233b1SZhengchao Shao        ],
147*412233b1SZhengchao Shao        "plugins": {
148*412233b1SZhengchao Shao            "requires": "nsPlugin"
149*412233b1SZhengchao Shao        },
150*412233b1SZhengchao Shao        "setup": [
151*412233b1SZhengchao Shao            "$IP link add dev $DUMMY type dummy || /bin/true",
152*412233b1SZhengchao Shao            "$TC qdisc add dev $DUMMY handle 1: root codel"
153*412233b1SZhengchao Shao        ],
154*412233b1SZhengchao Shao        "cmdUnderTest": "$TC qdisc del dev $DUMMY handle 1: root",
155*412233b1SZhengchao Shao        "expExitCode": "0",
156*412233b1SZhengchao Shao        "verifyCmd": "$TC qdisc show dev $DUMMY",
157*412233b1SZhengchao Shao        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 1000p target 5ms interval 100ms",
158*412233b1SZhengchao Shao        "matchCount": "0",
159*412233b1SZhengchao Shao        "teardown": [
160*412233b1SZhengchao Shao            "$IP link del dev $DUMMY type dummy"
161*412233b1SZhengchao Shao        ]
162*412233b1SZhengchao Shao    },
163*412233b1SZhengchao Shao    {
164*412233b1SZhengchao Shao        "id": "289c",
165*412233b1SZhengchao Shao        "name": "Replace CODEL with limit setting",
166*412233b1SZhengchao Shao        "category": [
167*412233b1SZhengchao Shao            "qdisc",
168*412233b1SZhengchao Shao            "codel"
169*412233b1SZhengchao Shao        ],
170*412233b1SZhengchao Shao        "plugins": {
171*412233b1SZhengchao Shao            "requires": "nsPlugin"
172*412233b1SZhengchao Shao        },
173*412233b1SZhengchao Shao        "setup": [
174*412233b1SZhengchao Shao            "$IP link add dev $DUMMY type dummy || /bin/true",
175*412233b1SZhengchao Shao            "$TC qdisc add dev $DUMMY handle 1: root codel"
176*412233b1SZhengchao Shao        ],
177*412233b1SZhengchao Shao        "cmdUnderTest": "$TC qdisc replace dev $DUMMY handle 1: root codel limit 5000",
178*412233b1SZhengchao Shao        "expExitCode": "0",
179*412233b1SZhengchao Shao        "verifyCmd": "$TC qdisc show dev $DUMMY",
180*412233b1SZhengchao Shao        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 5000p target 5ms interval 100ms",
181*412233b1SZhengchao Shao        "matchCount": "1",
182*412233b1SZhengchao Shao        "teardown": [
183*412233b1SZhengchao Shao            "$TC qdisc del dev $DUMMY handle 1: root",
184*412233b1SZhengchao Shao            "$IP link del dev $DUMMY type dummy"
185*412233b1SZhengchao Shao        ]
186*412233b1SZhengchao Shao    },
187*412233b1SZhengchao Shao    {
188*412233b1SZhengchao Shao        "id": "0648",
189*412233b1SZhengchao Shao        "name": "Change CODEL with limit setting",
190*412233b1SZhengchao Shao        "category": [
191*412233b1SZhengchao Shao            "qdisc",
192*412233b1SZhengchao Shao            "codel"
193*412233b1SZhengchao Shao        ],
194*412233b1SZhengchao Shao        "plugins": {
195*412233b1SZhengchao Shao            "requires": "nsPlugin"
196*412233b1SZhengchao Shao        },
197*412233b1SZhengchao Shao        "setup": [
198*412233b1SZhengchao Shao            "$IP link add dev $DUMMY type dummy || /bin/true",
199*412233b1SZhengchao Shao            "$TC qdisc add dev $DUMMY handle 1: root codel"
200*412233b1SZhengchao Shao        ],
201*412233b1SZhengchao Shao        "cmdUnderTest": "$TC qdisc change dev $DUMMY handle 1: root codel limit 100",
202*412233b1SZhengchao Shao        "expExitCode": "0",
203*412233b1SZhengchao Shao        "verifyCmd": "$TC qdisc show dev $DUMMY",
204*412233b1SZhengchao Shao        "matchPattern": "qdisc codel 1: root refcnt [0-9]+ limit 100p target 5ms interval 100ms",
205*412233b1SZhengchao Shao        "matchCount": "1",
206*412233b1SZhengchao Shao        "teardown": [
207*412233b1SZhengchao Shao            "$TC qdisc del dev $DUMMY handle 1: root",
208*412233b1SZhengchao Shao            "$IP link del dev $DUMMY type dummy"
209*412233b1SZhengchao Shao        ]
210*412233b1SZhengchao Shao    }
211*412233b1SZhengchao Shao]
212