4 "name": "Create RED with no flags",
10 "requires": "nsPlugin"
13 "$IP link add dev $DUMMY type dummy || /bin/true"
15 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red limit 1M avpkt 1500 min 100K max 300K",
17 "verifyCmd": "$TC qdisc show dev $DUMMY",
18 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb $",
21 "$TC qdisc del dev $DUMMY handle 1: root",
22 "$IP link del dev $DUMMY type dummy"
27 "name": "Create RED with adaptive flag",
33 "requires": "nsPlugin"
36 "$IP link add dev $DUMMY type dummy || /bin/true"
38 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red adaptive limit 1M avpkt 1500 min 100K max 300K",
40 "verifyCmd": "$TC qdisc show dev $DUMMY",
41 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb adaptive $",
44 "$TC qdisc del dev $DUMMY handle 1: root",
45 "$IP link del dev $DUMMY type dummy"
50 "name": "Create RED with ECN flag",
56 "requires": "nsPlugin"
59 "$IP link add dev $DUMMY type dummy || /bin/true"
61 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red ecn limit 1M avpkt 1500 min 100K max 300K",
63 "verifyCmd": "$TC qdisc show dev $DUMMY",
64 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb ecn $",
67 "$TC qdisc del dev $DUMMY handle 1: root",
68 "$IP link del dev $DUMMY type dummy"
73 "name": "Create RED with flags ECN, adaptive",
79 "requires": "nsPlugin"
82 "$IP link add dev $DUMMY type dummy || /bin/true"
84 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red ecn adaptive limit 1M avpkt 1500 min 100K max 300K",
86 "verifyCmd": "$TC qdisc show dev $DUMMY",
87 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb ecn adaptive $",
90 "$TC qdisc del dev $DUMMY handle 1: root",
91 "$IP link del dev $DUMMY type dummy"
96 "name": "Create RED with flags ECN, harddrop",
102 "requires": "nsPlugin"
105 "$IP link add dev $DUMMY type dummy || /bin/true"
107 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red ecn harddrop limit 1M avpkt 1500 min 100K max 300K",
109 "verifyCmd": "$TC qdisc show dev $DUMMY",
110 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb ecn harddrop $",
113 "$TC qdisc del dev $DUMMY handle 1: root",
114 "$IP link del dev $DUMMY type dummy"
119 "name": "Create RED with flags ECN, nodrop",
125 "requires": "nsPlugin"
128 "$IP link add dev $DUMMY type dummy || /bin/true"
130 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red ecn nodrop limit 1M avpkt 1500 min 100K max 300K",
132 "verifyCmd": "$TC qdisc show dev $DUMMY",
133 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb ecn nodrop $",
136 "$TC qdisc del dev $DUMMY handle 1: root",
137 "$IP link del dev $DUMMY type dummy"
142 "name": "Fail to create RED with only nodrop flag",
148 "requires": "nsPlugin"
151 "$IP link add dev $DUMMY type dummy || /bin/true"
153 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red nodrop limit 1M avpkt 1500 min 100K max 300K",
155 "verifyCmd": "$TC qdisc show dev $DUMMY",
156 "matchPattern": "qdisc red",
159 "$IP link del dev $DUMMY type dummy"
164 "name": "Create RED with flags ECN, nodrop, harddrop",
170 "requires": "nsPlugin"
173 "$IP link add dev $DUMMY type dummy || /bin/true"
175 "cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root red ecn harddrop nodrop limit 1M avpkt 1500 min 100K max 300K",
177 "verifyCmd": "$TC qdisc show dev $DUMMY",
178 "matchPattern": "qdisc red 1: root .* limit 1Mb min 100Kb max 300Kb ecn harddrop nodrop $",
181 "$TC qdisc del dev $DUMMY handle 1: root",
182 "$IP link del dev $DUMMY type dummy"