From a6fc0cd96c30422732fd4006dfed22fedc4c624d Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 7 Jun 2010 10:34:51 -0700 Subject: Revert "Allow any Qos policy to be used for input" This reverts commit c8f2c288665143e2b165b7d448555af9d657b56c. Conflicts: scripts/vyatta-qos.pl --- lib/Vyatta/Qos/TrafficLimiter.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lib/Vyatta') diff --git a/lib/Vyatta/Qos/TrafficLimiter.pm b/lib/Vyatta/Qos/TrafficLimiter.pm index 246d593..2d973c5 100644 --- a/lib/Vyatta/Qos/TrafficLimiter.pm +++ b/lib/Vyatta/Qos/TrafficLimiter.pm @@ -76,8 +76,17 @@ sub _define { } sub commands { - my ( $self, $dev, $parent ) = @_; + my ( $self, $dev, $direction ) = @_; 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