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