summaryrefslogtreecommitdiff
path: root/lib/Vyatta/Qos
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-29 13:51:38 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-29 13:56:26 -0700
commitc8f2c288665143e2b165b7d448555af9d657b56c (patch)
tree70d6e77e7a43379029e208e559f15614235efa55 /lib/Vyatta/Qos
parent0c166d59d9adc0d73bf91f1f9f9b025c09d4948b (diff)
downloadvyatta-cfg-qos-c8f2c288665143e2b165b7d448555af9d657b56c.tar.gz
vyatta-cfg-qos-c8f2c288665143e2b165b7d448555af9d657b56c.zip
Allow any Qos policy to be used for input
Bug 5123 Add ability to use traffic-shaper and other policies for input traffic.
Diffstat (limited to 'lib/Vyatta/Qos')
-rw-r--r--lib/Vyatta/Qos/TrafficLimiter.pm11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/Vyatta/Qos/TrafficLimiter.pm b/lib/Vyatta/Qos/TrafficLimiter.pm
index ff4a8d2..1ac61b2 100644
--- a/lib/Vyatta/Qos/TrafficLimiter.pm
+++ b/lib/Vyatta/Qos/TrafficLimiter.pm
@@ -76,17 +76,8 @@ sub _define {
}
sub commands {
- my ( $self, $dev, $direction ) = @_;
+ my ( $self, $dev, $parent ) = @_;
my $classes = $self->{_classes};
- my $parent;
-
- if ($direction eq 'in') {
- $parent = 0xffff;
- printf "qdisc add dev %s handle %x: ingress\n", $dev, $parent;
- } else {
- $parent = 1;
- printf "qdisc add dev %s handle $x: prio\n", $dev, $parent;
- }
foreach my $class (@$classes) {
foreach my $match ( $class->matchRules() ) {