diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-09 16:38:30 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-07-09 16:38:30 -0700 |
commit | b489e5dd2d18c1fb94165be38a475dd18a9007b2 (patch) | |
tree | db994fca7cd2c7b96d17d7d03d3094cb3149f0fb /lib | |
parent | 6dca7f847c69ff078010e5beecbf832dae210804 (diff) | |
download | vyatta-cfg-qos-b489e5dd2d18c1fb94165be38a475dd18a9007b2.tar.gz vyatta-cfg-qos-b489e5dd2d18c1fb94165be38a475dd18a9007b2.zip |
Remove traffic-limiter outbound
It won't work because of how classifiers interact with policing.
See: http://ace-host.stuart.id.au/russell/files/tc/doc/police.txt
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Vyatta/Qos/TrafficLimiter.pm | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/Vyatta/Qos/TrafficLimiter.pm b/lib/Vyatta/Qos/TrafficLimiter.pm index 0a5809f..665f784 100644 --- a/lib/Vyatta/Qos/TrafficLimiter.pm +++ b/lib/Vyatta/Qos/TrafficLimiter.pm @@ -85,13 +85,11 @@ sub commands { 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; - } + die "traffic-policy limiter only applies for incoming traffic\n" + unless ($direction eq 'in'); + + $parent = 0xffff; + printf "qdisc add dev %s handle %x: ingress\n", $dev, $parent; # find largest class id (to use for default) my $maxid = 0; |