1[
2    {
3        "id": "7482",
4        "name": "Create SFQ with default setting",
5        "category": [
6            "qdisc",
7            "sfq"
8        ],
9        "plugins": {
10            "requires": "nsPlugin"
11        },
12        "setup": [
13            "$IP link add dev $DUMMY type dummy || /bin/true"
14        ],
15        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfq",
16        "expExitCode": "0",
17        "verifyCmd": "$TC qdisc show dev $DUMMY",
18        "matchPattern": "qdisc sfq 1: root refcnt [0-9]+ limit 127p quantum.*depth 127 divisor 1024",
19        "matchCount": "1",
20        "teardown": [
21            "$TC qdisc del dev $DUMMY handle 1: root",
22            "$IP link del dev $DUMMY type dummy"
23        ]
24    },
25    {
26        "id": "c186",
27        "name": "Create SFQ with limit setting",
28        "category": [
29            "qdisc",
30            "sfq"
31        ],
32        "plugins": {
33            "requires": "nsPlugin"
34        },
35        "setup": [
36            "$IP link add dev $DUMMY type dummy || /bin/true"
37        ],
38        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfq limit 8",
39        "expExitCode": "0",
40        "verifyCmd": "$TC qdisc show dev $DUMMY",
41        "matchPattern": "qdisc sfq 1: root refcnt [0-9]+ limit 8p",
42        "matchCount": "1",
43        "teardown": [
44            "$TC qdisc del dev $DUMMY handle 1: root",
45            "$IP link del dev $DUMMY type dummy"
46        ]
47    },
48    {
49        "id": "ae23",
50        "name": "Create SFQ with perturb setting",
51        "category": [
52            "qdisc",
53            "sfq"
54        ],
55        "plugins": {
56            "requires": "nsPlugin"
57        },
58        "setup": [
59            "$IP link add dev $DUMMY type dummy || /bin/true"
60        ],
61        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfq perturb 10",
62        "expExitCode": "0",
63        "verifyCmd": "$TC qdisc show dev $DUMMY",
64        "matchPattern": "depth 127 divisor 1024 perturb 10sec",
65        "matchCount": "1",
66        "teardown": [
67            "$TC qdisc del dev $DUMMY handle 1: root",
68            "$IP link del dev $DUMMY type dummy"
69        ]
70    },
71    {
72        "id": "a430",
73        "name": "Create SFQ with quantum setting",
74        "category": [
75            "qdisc",
76            "sfq"
77        ],
78        "plugins": {
79            "requires": "nsPlugin"
80        },
81        "setup": [
82            "$IP link add dev $DUMMY type dummy || /bin/true"
83        ],
84        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfq quantum 9000",
85        "expExitCode": "0",
86        "verifyCmd": "$TC qdisc show dev $DUMMY",
87        "matchPattern": "qdisc sfq 1: root refcnt [0-9]+ limit 127p quantum 9000b depth 127 divisor 1024",
88        "matchCount": "1",
89        "teardown": [
90            "$TC qdisc del dev $DUMMY handle 1: root",
91            "$IP link del dev $DUMMY type dummy"
92        ]
93    },
94    {
95        "id": "4539",
96        "name": "Create SFQ with divisor setting",
97        "category": [
98            "qdisc",
99            "sfq"
100        ],
101        "plugins": {
102            "requires": "nsPlugin"
103        },
104        "setup": [
105            "$IP link add dev $DUMMY type dummy || /bin/true"
106        ],
107        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfq divisor 512",
108        "expExitCode": "0",
109        "verifyCmd": "$TC qdisc show dev $DUMMY",
110        "matchPattern": "qdisc sfq 1: root refcnt [0-9]+ limit 127p quantum 1514b depth 127 divisor 512",
111        "matchCount": "1",
112        "teardown": [
113            "$TC qdisc del dev $DUMMY handle 1: root",
114            "$IP link del dev $DUMMY type dummy"
115        ]
116    },
117    {
118        "id": "b089",
119        "name": "Create SFQ with flows setting",
120        "category": [
121            "qdisc",
122            "sfq"
123        ],
124        "plugins": {
125            "requires": "nsPlugin"
126        },
127        "setup": [
128            "$IP link add dev $DUMMY type dummy || /bin/true"
129        ],
130        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfq flows 20",
131        "expExitCode": "0",
132        "verifyCmd": "$TC qdisc show dev $DUMMY",
133        "matchPattern": "qdisc sfq 1: root refcnt",
134        "matchCount": "1",
135        "teardown": [
136            "$TC qdisc del dev $DUMMY handle 1: root",
137            "$IP link del dev $DUMMY type dummy"
138        ]
139    },
140    {
141        "id": "99a0",
142        "name": "Create SFQ with depth setting",
143        "category": [
144            "qdisc",
145            "sfq"
146        ],
147        "plugins": {
148            "requires": "nsPlugin"
149        },
150        "setup": [
151            "$IP link add dev $DUMMY type dummy || /bin/true"
152        ],
153        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfq depth 64",
154        "expExitCode": "0",
155        "verifyCmd": "$TC qdisc show dev $DUMMY",
156        "matchPattern": "qdisc sfq 1: root refcnt [0-9]+ limit 127p quantum 1514b depth 64 divisor 1024",
157        "matchCount": "1",
158        "teardown": [
159            "$TC qdisc del dev $DUMMY handle 1: root",
160            "$IP link del dev $DUMMY type dummy"
161        ]
162    },
163    {
164        "id": "7389",
165        "name": "Create SFQ with headdrop setting",
166        "category": [
167            "qdisc",
168            "sfq"
169        ],
170        "plugins": {
171            "requires": "nsPlugin"
172        },
173        "setup": [
174            "$IP link add dev $DUMMY type dummy || /bin/true"
175        ],
176        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfq headdrop",
177        "expExitCode": "0",
178        "verifyCmd": "$TC qdisc show dev $DUMMY",
179        "matchPattern": "qdisc sfq 1: root refcnt [0-9]+ limit 127p quantum 1514b depth 127 headdrop divisor 1024",
180        "matchCount": "1",
181        "teardown": [
182            "$TC qdisc del dev $DUMMY handle 1: root",
183            "$IP link del dev $DUMMY type dummy"
184        ]
185    },
186    {
187        "id": "6472",
188        "name": "Create SFQ with redflowlimit setting",
189        "category": [
190            "qdisc",
191            "sfq"
192        ],
193        "plugins": {
194            "requires": "nsPlugin"
195        },
196        "setup": [
197            "$IP link add dev $DUMMY type dummy || /bin/true"
198        ],
199        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfq redflowlimit 100000 min 8000 max 60000 probability 0.20 ecn headdrop",
200        "expExitCode": "0",
201        "verifyCmd": "$TC qdisc show dev $DUMMY",
202        "matchPattern": "qdisc sfq 1: root refcnt [0-9]+ limit 127p quantum 1514b depth 127 headdrop divisor 1024 ewma 6 min 8000b max 60000b probability 0.2 ecn",
203        "matchCount": "1",
204        "teardown": [
205            "$TC qdisc del dev $DUMMY handle 1: root",
206            "$IP link del dev $DUMMY type dummy"
207        ]
208    },
209    {
210        "id": "8929",
211        "name": "Show SFQ class",
212        "category": [
213            "qdisc",
214            "sfq"
215        ],
216        "plugins": {
217            "requires": "nsPlugin"
218        },
219        "setup": [
220            "$IP link add dev $DUMMY type dummy || /bin/true"
221        ],
222        "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfq",
223        "expExitCode": "0",
224        "verifyCmd": "$TC class show dev $DUMMY",
225        "matchPattern": "class sfq 1:",
226        "matchCount": "0",
227        "teardown": [
228            "$TC qdisc del dev $DUMMY handle 1: root",
229            "$IP link del dev $DUMMY type dummy"
230        ]
231    }
232]
233