1[ 2 { 3 "id": "3294", 4 "name": "Create SFB with default setting", 5 "category": [ 6 "qdisc", 7 "sfb" 8 ], 9 "plugins": { 10 "requires": "nsPlugin" 11 }, 12 "setup": [ 13 ], 14 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb", 15 "expExitCode": "0", 16 "verifyCmd": "$TC qdisc show dev $DUMMY", 17 "matchPattern": "qdisc sfb 1: root refcnt [0-9]+ rehash 600s db 60s", 18 "matchCount": "1", 19 "teardown": [ 20 "$TC qdisc del dev $DUMMY handle 1: root" 21 ] 22 }, 23 { 24 "id": "430a", 25 "name": "Create SFB with rehash setting", 26 "category": [ 27 "qdisc", 28 "sfb" 29 ], 30 "plugins": { 31 "requires": "nsPlugin" 32 }, 33 "setup": [ 34 ], 35 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb rehash 60", 36 "expExitCode": "0", 37 "verifyCmd": "$TC qdisc show dev $DUMMY", 38 "matchPattern": "qdisc sfb 1: root refcnt [0-9]+ rehash 60ms db 60s", 39 "matchCount": "1", 40 "teardown": [ 41 "$TC qdisc del dev $DUMMY handle 1: root" 42 ] 43 }, 44 { 45 "id": "3410", 46 "name": "Create SFB with db setting", 47 "category": [ 48 "qdisc", 49 "sfb" 50 ], 51 "plugins": { 52 "requires": "nsPlugin" 53 }, 54 "setup": [ 55 ], 56 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb db 100", 57 "expExitCode": "0", 58 "verifyCmd": "$TC qdisc show dev $DUMMY", 59 "matchPattern": "qdisc sfb 1: root refcnt [0-9]+ rehash 600s db 100ms", 60 "matchCount": "1", 61 "teardown": [ 62 "$TC qdisc del dev $DUMMY handle 1: root" 63 ] 64 }, 65 { 66 "id": "49a0", 67 "name": "Create SFB with limit setting", 68 "category": [ 69 "qdisc", 70 "sfb" 71 ], 72 "plugins": { 73 "requires": "nsPlugin" 74 }, 75 "setup": [ 76 ], 77 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb limit 100", 78 "expExitCode": "0", 79 "verifyCmd": "$TC qdisc show dev $DUMMY", 80 "matchPattern": "qdisc sfb 1: root refcnt [0-9]+ rehash 600s db 60s limit 100p", 81 "matchCount": "1", 82 "teardown": [ 83 "$TC qdisc del dev $DUMMY handle 1: root" 84 ] 85 }, 86 { 87 "id": "1241", 88 "name": "Create SFB with max setting", 89 "category": [ 90 "qdisc", 91 "sfb" 92 ], 93 "plugins": { 94 "requires": "nsPlugin" 95 }, 96 "setup": [ 97 ], 98 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb max 100", 99 "expExitCode": "0", 100 "verifyCmd": "$TC qdisc show dev $DUMMY", 101 "matchPattern": "qdisc sfb 1: root refcnt 2 rehash 600s db 60s.*max 100p", 102 "matchCount": "1", 103 "teardown": [ 104 "$TC qdisc del dev $DUMMY handle 1: root" 105 ] 106 }, 107 { 108 "id": "3249", 109 "name": "Create SFB with target setting", 110 "category": [ 111 "qdisc", 112 "sfb" 113 ], 114 "plugins": { 115 "requires": "nsPlugin" 116 }, 117 "setup": [ 118 ], 119 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb target 100", 120 "expExitCode": "0", 121 "verifyCmd": "$TC qdisc show dev $DUMMY", 122 "matchPattern": "qdisc sfb 1: root refcnt 2 rehash 600s db 60s.*target 100p", 123 "matchCount": "1", 124 "teardown": [ 125 "$TC qdisc del dev $DUMMY handle 1: root" 126 ] 127 }, 128 { 129 "id": "30a9", 130 "name": "Create SFB with increment setting", 131 "category": [ 132 "qdisc", 133 "sfb" 134 ], 135 "plugins": { 136 "requires": "nsPlugin" 137 }, 138 "setup": [ 139 ], 140 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb increment 0.1", 141 "expExitCode": "0", 142 "verifyCmd": "$TC qdisc show dev $DUMMY", 143 "matchPattern": "qdisc sfb 1: root refcnt 2 rehash 600s db 60s.*increment 0.1", 144 "matchCount": "1", 145 "teardown": [ 146 "$TC qdisc del dev $DUMMY handle 1: root" 147 ] 148 }, 149 { 150 "id": "239a", 151 "name": "Create SFB with decrement setting", 152 "category": [ 153 "qdisc", 154 "sfb" 155 ], 156 "plugins": { 157 "requires": "nsPlugin" 158 }, 159 "setup": [ 160 ], 161 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb decrement 0.1", 162 "expExitCode": "0", 163 "verifyCmd": "$TC qdisc show dev $DUMMY", 164 "matchPattern": "qdisc sfb 1: root refcnt 2 rehash 600s db 60s.*decrement 0.1", 165 "matchCount": "1", 166 "teardown": [ 167 "$TC qdisc del dev $DUMMY handle 1: root" 168 ] 169 }, 170 { 171 "id": "9301", 172 "name": "Create SFB with penalty_rate setting", 173 "category": [ 174 "qdisc", 175 "sfb" 176 ], 177 "plugins": { 178 "requires": "nsPlugin" 179 }, 180 "setup": [ 181 ], 182 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb penalty_rate 4000", 183 "expExitCode": "0", 184 "verifyCmd": "$TC qdisc show dev $DUMMY", 185 "matchPattern": "qdisc sfb 1: root refcnt 2 rehash 600s db 60s.*penalty_rate 4000pps", 186 "matchCount": "1", 187 "teardown": [ 188 "$TC qdisc del dev $DUMMY handle 1: root" 189 ] 190 }, 191 { 192 "id": "2a01", 193 "name": "Create SFB with penalty_burst setting", 194 "category": [ 195 "qdisc", 196 "sfb" 197 ], 198 "plugins": { 199 "requires": "nsPlugin" 200 }, 201 "setup": [ 202 ], 203 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb penalty_burst 64", 204 "expExitCode": "0", 205 "verifyCmd": "$TC qdisc show dev $DUMMY", 206 "matchPattern": "qdisc sfb 1: root refcnt 2 rehash 600s db 60s.*penalty_burst 64p", 207 "matchCount": "1", 208 "teardown": [ 209 "$TC qdisc del dev $DUMMY handle 1: root" 210 ] 211 }, 212 { 213 "id": "3209", 214 "name": "Change SFB with rehash setting", 215 "category": [ 216 "qdisc", 217 "sfb" 218 ], 219 "plugins": { 220 "requires": "nsPlugin" 221 }, 222 "setup": [ 223 "$TC qdisc add dev $DUMMY handle 1: root sfb penalty_burst 64" 224 ], 225 "cmdUnderTest": "$TC qdisc change dev $DUMMY handle 1: root sfb rehash 100", 226 "expExitCode": "0", 227 "verifyCmd": "$TC qdisc show dev $DUMMY", 228 "matchPattern": "qdisc sfb 1: root refcnt 2 rehash 100ms db 60s", 229 "matchCount": "1", 230 "teardown": [ 231 "$TC qdisc del dev $DUMMY handle 1: root" 232 ] 233 }, 234 { 235 "id": "5447", 236 "name": "Show SFB class", 237 "category": [ 238 "qdisc", 239 "sfb" 240 ], 241 "plugins": { 242 "requires": "nsPlugin" 243 }, 244 "setup": [ 245 ], 246 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root sfb", 247 "expExitCode": "0", 248 "verifyCmd": "$TC class show dev $DUMMY", 249 "matchPattern": "class sfb 1:", 250 "matchCount": "0", 251 "teardown": [ 252 "$TC qdisc del dev $DUMMY handle 1: root" 253 ] 254 } 255] 256