summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Qos/ShaperClass.pm
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-07-30 11:52:27 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-08-17 17:04:12 -0700
commita88854c2b8b4a3f480c283c78476f456534bb65d (patch)
tree49464c27ae033c05fe1447d678a3e41b1af3d01b /lib/Vyatta/Qos/ShaperClass.pm
parent43948e58dbb50251ae647e153fe204eac84edc3e (diff)
downloadvyatta-cfg-qos-a88854c2b8b4a3f480c283c78476f456534bb65d.tar.gz
vyatta-cfg-qos-a88854c2b8b4a3f480c283c78476f456534bb65d.zip
Make round-robin quantum per class
Bug 5958 (cherry picked from commit 7f42350146525544bd38db2426d6f5c7b99302c2)
Diffstat (limited to 'lib/Vyatta/Qos/ShaperClass.pm')
-rw-r--r--lib/Vyatta/Qos/ShaperClass.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Vyatta/Qos/ShaperClass.pm b/lib/Vyatta/Qos/ShaperClass.pm
index f895239..b84b057 100644
--- a/lib/Vyatta/Qos/ShaperClass.pm
+++ b/lib/Vyatta/Qos/ShaperClass.pm
@@ -49,6 +49,7 @@ sub new {
$self->{_qdisc} = $config->returnValue("queue-type");
$self->{_avgpkt} = $config->returnValue("packet-length");
$self->{_latency} = $config->returnValue("latency");
+ $self->{_quantum} = $config->returnValue("quantum");
$self->{dsmark} = getDsfield( $config->returnValue("set-dscp") );
my @matches = _getMatch("$level match");
@@ -256,6 +257,7 @@ sub gen_class {
print " ceil $ceil" if ($ceil);
print " burst $self->{_burst}" if ( $self->{_burst} );
print " prio $self->{_priority}" if ( $self->{_priority} );
+ print " quantum $self->{_quantum}" if ( $self->{_quantum} );
print "\n";
}