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