1[ 2 { 3 "id": "3254", 4 "name": "Create HFSC with default setting", 5 "category": [ 6 "qdisc", 7 "hfsc" 8 ], 9 "plugins": { 10 "requires": "nsPlugin" 11 }, 12 "setup": [], 13 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root hfsc", 14 "expExitCode": "0", 15 "verifyCmd": "$TC qdisc show dev $DUMMY", 16 "matchPattern": "qdisc hfsc 1: root refcnt [0-9]+", 17 "matchCount": "1", 18 "teardown": [ 19 "$TC qdisc del dev $DUMMY handle 1: root" 20 ] 21 }, 22 { 23 "id": "0289", 24 "name": "Create HFSC with class sc and ul rate setting", 25 "category": [ 26 "qdisc", 27 "hfsc" 28 ], 29 "plugins": { 30 "requires": "nsPlugin" 31 }, 32 "setup": [ 33 "$TC qdisc add dev $DUMMY handle 1: root hfsc default 11" 34 ], 35 "cmdUnderTest": "$TC class add dev $DUMMY parent 1: classid 1:1 hfsc sc rate 20000 ul rate 10000", 36 "expExitCode": "0", 37 "verifyCmd": "$TC class show dev $DUMMY", 38 "matchPattern": "class hfsc 1:1 parent 1: sc m1 0bit d 0us m2 20Kbit ul m1 0bit d 0us m2 10Kbit", 39 "matchCount": "1", 40 "teardown": [ 41 "$TC qdisc del dev $DUMMY handle 1: root" 42 ] 43 }, 44 { 45 "id": "846a", 46 "name": "Create HFSC with class sc umax and dmax setting", 47 "category": [ 48 "qdisc", 49 "hfsc" 50 ], 51 "plugins": { 52 "requires": "nsPlugin" 53 }, 54 "setup": [ 55 "$TC qdisc add dev $DUMMY handle 1: root hfsc default 11" 56 ], 57 "cmdUnderTest": "$TC class add dev $DUMMY parent 1: classid 1:1 hfsc sc umax 1540 dmax 5ms rate 10000 ul rate 10000", 58 "expExitCode": "0", 59 "verifyCmd": "$TC class show dev $DUMMY", 60 "matchPattern": "class hfsc 1:1 parent 1: sc m1 2464Kbit d 5ms m2 10Kbit ul m1 0bit d 0us m2 10Kbit", 61 "matchCount": "1", 62 "teardown": [ 63 "$TC qdisc del dev $DUMMY handle 1: root" 64 ] 65 }, 66 { 67 "id": "5413", 68 "name": "Create HFSC with class rt and ls rate setting", 69 "category": [ 70 "qdisc", 71 "hfsc" 72 ], 73 "plugins": { 74 "requires": "nsPlugin" 75 }, 76 "setup": [ 77 "$TC qdisc add dev $DUMMY handle 1: root hfsc default 11" 78 ], 79 "cmdUnderTest": "$TC class add dev $DUMMY parent 1: classid 1:1 hfsc rt rate 20000 ls rate 10000", 80 "expExitCode": "0", 81 "verifyCmd": "$TC class show dev $DUMMY", 82 "matchPattern": "class hfsc 1:1 parent 1: rt m1 0bit d 0us m2 20Kbit ls m1 0bit d 0us m2 10Kbit", 83 "matchCount": "1", 84 "teardown": [ 85 "$TC qdisc del dev $DUMMY handle 1: root" 86 ] 87 }, 88 { 89 "id": "9312", 90 "name": "Create HFSC with class rt umax and dmax setting", 91 "category": [ 92 "qdisc", 93 "hfsc" 94 ], 95 "plugins": { 96 "requires": "nsPlugin" 97 }, 98 "setup": [ 99 "$TC qdisc add dev $DUMMY handle 1: root hfsc default 11" 100 ], 101 "cmdUnderTest": "$TC class add dev $DUMMY parent 1: classid 1:1 hfsc rt umax 1540 dmax 5ms rate 10000 ls rate 10000", 102 "expExitCode": "0", 103 "verifyCmd": "$TC class show dev $DUMMY", 104 "matchPattern": "class hfsc 1:1 parent 1: rt m1 2464Kbit d 5ms m2 10Kbit ls m1 0bit d 0us m2 10Kbit", 105 "matchCount": "1", 106 "teardown": [ 107 "$TC qdisc del dev $DUMMY handle 1: root" 108 ] 109 }, 110 { 111 "id": "6931", 112 "name": "Delete HFSC with handle", 113 "category": [ 114 "qdisc", 115 "hfsc" 116 ], 117 "plugins": { 118 "requires": "nsPlugin" 119 }, 120 "setup": [ 121 "$TC qdisc add dev $DUMMY handle 1: root hfsc default 11" 122 ], 123 "cmdUnderTest": "$TC qdisc del dev $DUMMY handle 1: root", 124 "expExitCode": "0", 125 "verifyCmd": "$TC qdisc show dev $DUMMY", 126 "matchPattern": "qdisc hfsc 1: root refcnt [0-9]+", 127 "matchCount": "0", 128 "teardown": [] 129 }, 130 { 131 "id": "8436", 132 "name": "Show HFSC class", 133 "category": [ 134 "qdisc", 135 "hfsc" 136 ], 137 "plugins": { 138 "requires": "nsPlugin" 139 }, 140 "setup": [], 141 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root hfsc", 142 "expExitCode": "0", 143 "verifyCmd": "$TC class show dev $DUMMY", 144 "matchPattern": "class hfsc 1: root", 145 "matchCount": "1", 146 "teardown": [ 147 "$TC qdisc del dev $DUMMY handle 1: root" 148 ] 149 }, 150 { 151 "id": "bef4", 152 "name": "HFSC rt inner class upgrade to sc", 153 "category": [ 154 "qdisc", 155 "hfsc" 156 ], 157 "plugins": { 158 "requires": "nsPlugin" 159 }, 160 "setup": [ 161 "$TC qdisc add dev $DUMMY handle 1: root hfsc default 1", 162 "$TC class add dev $DUMMY parent 1: classid 1:1 hfsc rt rate 8" 163 ], 164 "cmdUnderTest": "$TC class add dev $DUMMY parent 1:1 classid 1:2 hfsc rt rate 8", 165 "expExitCode": "0", 166 "verifyCmd": "$TC class show dev $DUMMY", 167 "matchPattern": "class hfsc 1:1 parent 1: sc m1 0bit d 0us m2 8bit.*rt m1 0bit d 0us m2 8bit", 168 "matchCount": "1", 169 "teardown": [ 170 "$TC qdisc del dev $DUMMY handle 1: root" 171 ] 172 } 173] 174