Flechsenhaar, Jon J
2006-Oct-18 17:04 UTC
Errors with GRED after upgrading to 2.6.18 kernel
ALL: <<diffserv-gred_10-06>> I have attached the current script that I am using. $TC qdisc add dev $EDEV parent 2:20 gred setup DPs 3 default 2 grio $TC qdisc change dev $EDEV parent 2:20 gred DP 1 limit $lim min $minTh max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability 0.02 prio 2 $TC qdisc change dev $EDEV parent 2:20 gred DP 2 limit $lim min $minTh max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability 0.04 prio 3 $TC qdisc change dev $EDEV parent 2:20 gred DP 3 limit $lim min $minTh max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability 0.06 prio 4 ### GRED for AF2 $TC qdisc add dev $EDEV parent 2:30 gred setup DPs 3 default 2 grio $TC qdisc change dev $EDEV parent 2:30 gred DP 1 limit $lim min $minTh max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability 0.02 prio 2 $TC qdisc change dev $EDEV parent 2:30 gred DP 2 limit $lim min $minTh max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability 0.04 prio 3 $TC qdisc change dev $EDEV parent 2:30 gred DP 3 limit $lim min $minTh max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability 0.06 prio 4 ### GRED for AF3 $TC qdisc add dev $EDEV parent 2:40 gred setup DPs 3 default 2 grio $TC qdisc change dev $EDEV parent 2:40 gred DP 1 limit $lim min $minTh max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability 0.02 prio 2 $TC qdisc change dev $EDEV parent 2:40 gred DP 2 limit $lim min $minTh max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability 0.04 prio 3 $TC qdisc change dev $EDEV parent 2:40 gred DP 3 limit $lim min $minTh max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability 0.06 prio 4 ### GRED for AF4 $TC qdisc add dev $EDEV parent 2:50 gred setup DPs 3 default 2 grio $TC qdisc change dev $EDEV parent 2:50 gred DP 1 limit $lim min $minTh max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability 0.02 prio 2 $TC qdisc change dev $EDEV parent 2:50 gred DP 2 limit $lim min $minTh max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability 0.04 prio 3 $TC qdisc change dev $EDEV parent 2:50 gred DP 3 limit $lim min $minTh max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability 0.06 prio 4 Each DP3 line gives me an error. If I comment it out the error goes away. The line translates to below. I get an error with the following line ++ /usr/sbin/tc qdisc change dev eth0 parent 2:20 gred DP 3 limit 60kb min 10kb max 20kb avpkt 1500 burst 9 bandwidth 500kbit probability 0.06 prio 4 RTNETLINK answers: Invalid argument after each DP 3 on each gred. This starting happening after I upgraded to 2.6.18 from 2.4.20 kernel. Anyone have any ideas? Jon Flechsenhaar Boeing WNW Team Network Services (714)-762-1231 202-E7 _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Flechsenhaar, Jon J wrote:> ALL: > > > <<diffserv-gred_10-06>> > > I have attached the current script that I am using. > > $TC qdisc add dev $EDEV parent 2:20 gred setup DPs 3 default 2 grio > $TC qdisc change dev $EDEV parent 2:20 gred DP 1 limit $lim min $minTh > max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability > 0.02 prio 2 > $TC qdisc change dev $EDEV parent 2:20 gred DP 2 limit $lim min $minTh > max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability > 0.04 prio 3 > $TC qdisc change dev $EDEV parent 2:20 gred DP 3 limit $lim min $minTh > max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability > 0.06 prio 4 > ### GRED for AF2 > > $TC qdisc add dev $EDEV parent 2:30 gred setup DPs 3 default 2 grio > $TC qdisc change dev $EDEV parent 2:30 gred DP 1 limit $lim min $minTh > max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability > 0.02 prio 2 > $TC qdisc change dev $EDEV parent 2:30 gred DP 2 limit $lim min $minTh > max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability > 0.04 prio 3 > $TC qdisc change dev $EDEV parent 2:30 gred DP 3 limit $lim min $minTh > max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability > 0.06 prio 4 > ### GRED for AF3 > > $TC qdisc add dev $EDEV parent 2:40 gred setup DPs 3 default 2 grio > $TC qdisc change dev $EDEV parent 2:40 gred DP 1 limit $lim min $minTh > max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability > 0.02 prio 2 > $TC qdisc change dev $EDEV parent 2:40 gred DP 2 limit $lim min $minTh > max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability > 0.04 prio 3 > $TC qdisc change dev $EDEV parent 2:40 gred DP 3 limit $lim min $minTh > max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability > 0.06 prio 4 > ### GRED for AF4 > > $TC qdisc add dev $EDEV parent 2:50 gred setup DPs 3 default 2 grio > $TC qdisc change dev $EDEV parent 2:50 gred DP 1 limit $lim min $minTh > max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability > 0.02 prio 2 > $TC qdisc change dev $EDEV parent 2:50 gred DP 2 limit $lim min $minTh > max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability > 0.04 prio 3 > $TC qdisc change dev $EDEV parent 2:50 gred DP 3 limit $lim min $minTh > max $maxTh avpkt $avgPL burst $bursty bandwidth $netBand probability > 0.06 prio 4 > > Each DP3 line gives me an error. If I comment it out the error goes > away. The line translates to below. > > I get an error with the following line > ++ /usr/sbin/tc qdisc change dev eth0 parent 2:20 gred DP 3 limit 60kb > min 10kb max 20kb avpkt 1500 burst 9 bandwidth 500kbit probability 0.06 > prio 4 RTNETLINK answers: Invalid argument > > after each DP 3 on each gred. > > This starting happening after I upgraded to 2.6.18 from 2.4.20 kernel. > Anyone have any ideas?I would ask on netdev about this one - I don''t use GRED - the last changes I can remember were by Thomas Graf, I don''t think he lurks here anymore. Andy.
Patrick McHardy
2006-Nov-11 13:53 UTC
Re: Errors with GRED after upgrading to 2.6.18 kernel
Flechsenhaar, Jon J wrote:> $TC qdisc add dev $EDEV parent 2:20 gred setup DPs 3 default 2 grio> after each DP 3 on each gred. > > This starting happening after I upgraded to 2.6.18 from 2.4.20 kernel. > Anyone have any ideas?ยดI think DPs start at zero, so you have 0, 1 and 2. 3 is out of bounds and is reported as an error in current kernel.