summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-15 13:43:13 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-15 13:43:13 -0700
commit6972fa7a27b6274abef42d048c8be0939199cf51 (patch)
treee52922af8097d2c79239275bf1617c02f595dc0f
parentb2b68c5608ceff86a475d0b931c096a647ab5e65 (diff)
parentc8b009ec987d986e25c49ffebe6a0b9cc4f712a9 (diff)
downloadvyatta-cfg-qos-6972fa7a27b6274abef42d048c8be0939199cf51.tar.gz
vyatta-cfg-qos-6972fa7a27b6274abef42d048c8be0939199cf51.zip
Merge branch 'larkspur' of vm:git/vyatta-cfg-qos into larkspur
-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;