summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Qos/ShaperClass.pm
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-20 16:46:24 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-20 16:46:24 -0700
commit49d4456f54d7a73ae06276f2ebf58e5f6f3039de (patch)
treec0a8420acc1169dfeffb99925d4be354999debf7 /lib/Vyatta/Qos/ShaperClass.pm
parent9e2906ce7755f1723d345d36db7364df1e0b6a03 (diff)
downloadvyatta-cfg-qos-49d4456f54d7a73ae06276f2ebf58e5f6f3039de.tar.gz
vyatta-cfg-qos-49d4456f54d7a73ae06276f2ebf58e5f6f3039de.zip
Fix calculation of RED parameters
The latency value is in microseconds.
Diffstat (limited to 'lib/Vyatta/Qos/ShaperClass.pm')
-rw-r--r--lib/Vyatta/Qos/ShaperClass.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Vyatta/Qos/ShaperClass.pm b/lib/Vyatta/Qos/ShaperClass.pm
index 482ec09..d89dfb9 100644
--- a/lib/Vyatta/Qos/ShaperClass.pm
+++ b/lib/Vyatta/Qos/ShaperClass.pm
@@ -159,7 +159,8 @@ sub fifoQdisc {
sub redQdisc {
my ( $self, $dev, $rate ) = @_;
my $avg = 1000;
- my ($qmin, $qmax, $burst) = RedParam($rate, 500, $avg);
+ my $latency = 100000; # 100 ms
+ my ($qmin, $qmax, $burst) = RedParam($rate, $latency, $avg);
my $limit = $self->{_limit};
my $qlimit;