summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-15 13:40:28 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-15 13:40:28 -0700
commitc8b009ec987d986e25c49ffebe6a0b9cc4f712a9 (patch)
tree2cf1890af3b621703f10b833fd42585136449f0b
parent4f5c0c9f75d04278074dca298b6fe0ab2e73c162 (diff)
downloadvyatta-cfg-qos-c8b009ec987d986e25c49ffebe6a0b9cc4f712a9.tar.gz
vyatta-cfg-qos-c8b009ec987d986e25c49ffebe6a0b9cc4f712a9.zip
Fix setup of ingress qdisc
Need to drop/recreate on changes.
-rwxr-xr-xscripts/vyatta-qos.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl
index 9014c84..b6c2f92 100755
--- a/scripts/vyatta-qos.pl
+++ b/scripts/vyatta-qos.pl
@@ -257,8 +257,10 @@ sub update_ingress {
my $ingress = ingress_policy( $device );
return unless $ingress;
- # Drop existing ingress filters
- system("sudo tc filter dev $device root 2>/dev/null");
+ # Drop existing ingress and recreate
+ system("sudo tc qdisc del dev $device ingress 2>/dev/null");
+ system("sudo tc qdisc add dev $device ingress") == 0
+ or die "Can not set ingress qdisc";
# When doing debugging just echo the commands
my $out;