diff options
| author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-03-29 13:51:38 -0700 | 
|---|---|---|
| committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-03-29 13:56:26 -0700 | 
| commit | c8f2c288665143e2b165b7d448555af9d657b56c (patch) | |
| tree | 70d6e77e7a43379029e208e559f15614235efa55 /lib | |
| parent | 0c166d59d9adc0d73bf91f1f9f9b025c09d4948b (diff) | |
| download | vyatta-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')
| -rw-r--r-- | lib/Vyatta/Qos/TrafficLimiter.pm | 11 | 
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() ) { | 
