From c8f2c288665143e2b165b7d448555af9d657b56c Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 29 Mar 2010 13:51:38 -0700 Subject: Allow any Qos policy to be used for input Bug 5123 Add ability to use traffic-shaper and other policies for input traffic. --- lib/Vyatta/Qos/TrafficLimiter.pm | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lib') 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() ) { -- cgit v1.2.3