diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-27 10:32:25 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-27 10:32:25 -0700 |
commit | 1e6b847205ba24e673152b8e67764145105b0062 (patch) | |
tree | d4c8ec8c2ad8f108f85f250ce99f5bb17afc27e0 /lib/Vyatta/Qos | |
parent | e35844c1a764d8fe669ff36d2d91f7e0f93593ce (diff) | |
download | vyatta-cfg-qos-1e6b847205ba24e673152b8e67764145105b0062.tar.gz vyatta-cfg-qos-1e6b847205ba24e673152b8e67764145105b0062.zip |
Fix setup of DP Virtual Queues
Was refering to VQ incorrectly, they are not subclasses in GRED
Diffstat (limited to 'lib/Vyatta/Qos')
-rw-r--r-- | lib/Vyatta/Qos/RandomDetect.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Vyatta/Qos/RandomDetect.pm b/lib/Vyatta/Qos/RandomDetect.pm index 67bbd73..1918711 100644 --- a/lib/Vyatta/Qos/RandomDetect.pm +++ b/lib/Vyatta/Qos/RandomDetect.pm @@ -104,12 +104,12 @@ sub commands { printf "filter add dev %s parent %x:0 protocol ip prio 1 ", $dev, $root; - print " tcindex mask 0xe0 shift 5\n"; + print "tcindex mask 0xe0 shift 5\n"; # 3. Define GRED with unmatched traffic going to index 0 printf "qdisc add dev %s parent %x:0 handle %x:0 gred ", $dev, $root, $root+1; - print " setup DPs 8 default 0 grio\n"; + print "setup DPs 8 default 0 grio\n"; # set VQ parameters for ( my $i = 0 ; $i <= 7 ; $i++ ) { @@ -118,10 +118,10 @@ sub commands { my $qmax = $param->{'max-threshold'}; my $prob = $param->{'mark-probability'}; - printf "qdisc change dev %s parent %x:%x", $dev, $root+1, $i; + printf "qdisc change dev %s handle %x:0 gred", $dev, $root+1, $i; printf " limit %dK min %dK max %dK avpkt 1K", 4 * $qmax, $qmin, $qmax; printf " burst %d bandwidth %d probability %f DP %d prio %d\n", - ( 2 * $qmin + $qmax ) / 3, $rate, $prob, $i, $i; + ( 2 * $qmin + $qmax ) / 3, $rate, $prob, $i, 8-$i; } } |