4 "name": "Create SFB with default setting",
10 "requires": "nsPlugin"
13 "$IP link add dev $DUMMY type dummy || /bin/true"
15 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb",
17 "verifyCmd": "$TC qdisc show dev $DUMMY",
18 "matchPattern": "qdisc sfb 1: root refcnt [0-9]+ rehash 600s db 60s",
21 "$TC qdisc del dev $DUMMY handle 1: root",
22 "$IP link del dev $DUMMY type dummy"
27 "name": "Create SFB with rehash setting",
33 "requires": "nsPlugin"
36 "$IP link add dev $DUMMY type dummy || /bin/true"
38 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb rehash 60",
40 "verifyCmd": "$TC qdisc show dev $DUMMY",
41 "matchPattern": "qdisc sfb 1: root refcnt [0-9]+ rehash 60ms db 60s",
44 "$TC qdisc del dev $DUMMY handle 1: root",
45 "$IP link del dev $DUMMY type dummy"
50 "name": "Create SFB with db setting",
56 "requires": "nsPlugin"
59 "$IP link add dev $DUMMY type dummy || /bin/true"
61 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb db 10",
63 "verifyCmd": "$TC qdisc show dev $DUMMY",
64 "matchPattern": "qdisc sfb 1: root refcnt [0-9]+ rehash 600s db 10ms",
67 "$TC qdisc del dev $DUMMY handle 1: root",
68 "$IP link del dev $DUMMY type dummy"
73 "name": "Create SFB with limit setting",
79 "requires": "nsPlugin"
82 "$IP link add dev $DUMMY type dummy || /bin/true"
84 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb limit 100",
86 "verifyCmd": "$TC qdisc show dev $DUMMY",
87 "matchPattern": "qdisc sfb 1: root refcnt [0-9]+ rehash 600s db 60s limit 100p",
90 "$TC qdisc del dev $DUMMY handle 1: root",
91 "$IP link del dev $DUMMY type dummy"
96 "name": "Create SFB with max setting",
102 "requires": "nsPlugin"
105 "$IP link add dev $DUMMY type dummy || /bin/true"
107 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb max 100",
109 "verifyCmd": "$TC qdisc show dev $DUMMY",
110 "matchPattern": "qdisc sfb 1: root refcnt 2 rehash 600s db 60s.*max 100p",
113 "$TC qdisc del dev $DUMMY handle 1: root",
114 "$IP link del dev $DUMMY type dummy"
119 "name": "Create SFB with target setting",
125 "requires": "nsPlugin"
128 "$IP link add dev $DUMMY type dummy || /bin/true"
130 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb target 100",
132 "verifyCmd": "$TC qdisc show dev $DUMMY",
133 "matchPattern": "qdisc sfb 1: root refcnt 2 rehash 600s db 60s.*target 100p",
136 "$TC qdisc del dev $DUMMY handle 1: root",
137 "$IP link del dev $DUMMY type dummy"
142 "name": "Create SFB with increment setting",
148 "requires": "nsPlugin"
151 "$IP link add dev $DUMMY type dummy || /bin/true"
153 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb increment 0.1",
155 "verifyCmd": "$TC qdisc show dev $DUMMY",
156 "matchPattern": "qdisc sfb 1: root refcnt 2 rehash 600s db 60s.*increment 0.1",
159 "$TC qdisc del dev $DUMMY handle 1: root",
160 "$IP link del dev $DUMMY type dummy"
165 "name": "Create SFB with decrement setting",
171 "requires": "nsPlugin"
174 "$IP link add dev $DUMMY type dummy || /bin/true"
176 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb decrement 0.1",
178 "verifyCmd": "$TC qdisc show dev $DUMMY",
179 "matchPattern": "qdisc sfb 1: root refcnt 2 rehash 600s db 60s.*decrement 0.1",
182 "$TC qdisc del dev $DUMMY handle 1: root",
183 "$IP link del dev $DUMMY type dummy"
188 "name": "Create SFB with penalty_rate setting",
194 "requires": "nsPlugin"
197 "$IP link add dev $DUMMY type dummy || /bin/true"
199 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb penalty_rate 4000",
201 "verifyCmd": "$TC qdisc show dev $DUMMY",
202 "matchPattern": "qdisc sfb 1: root refcnt 2 rehash 600s db 60s.*penalty_rate 4000pps",
205 "$TC qdisc del dev $DUMMY handle 1: root",
206 "$IP link del dev $DUMMY type dummy"
211 "name": "Create SFB with penalty_burst setting",
217 "requires": "nsPlugin"
220 "$IP link add dev $DUMMY type dummy || /bin/true"
222 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb penalty_burst 64",
224 "verifyCmd": "$TC qdisc show dev $DUMMY",
225 "matchPattern": "qdisc sfb 1: root refcnt 2 rehash 600s db 60s.*penalty_burst 64p",
228 "$TC qdisc del dev $DUMMY handle 1: root",
229 "$IP link del dev $DUMMY type dummy"
234 "name": "Change SFB with rehash setting",
240 "requires": "nsPlugin"
243 "$IP link add dev $DUMMY type dummy || /bin/true",
244 "$TC qdisc add dev $DUMMY handle 1: root sfb penalty_burst 64"
246 "cmdUnderTest": "$TC qdisc change dev $DUMMY handle 1: root sfb rehash 100",
248 "verifyCmd": "$TC qdisc show dev $DUMMY",
249 "matchPattern": "qdisc sfb 1: root refcnt 2 rehash 100ms db 60s",
252 "$TC qdisc del dev $DUMMY handle 1: root",
253 "$IP link del dev $DUMMY type dummy"
258 "name": "Show SFB class",
264 "requires": "nsPlugin"
267 "$IP link add dev $DUMMY type dummy || /bin/true"
269 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb",
271 "verifyCmd": "$TC class show dev $DUMMY",
272 "matchPattern": "class sfb 1:",
275 "$TC qdisc del dev $DUMMY handle 1: root",
276 "$IP link del dev $DUMMY type dummy"