diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-04-15 13:43:13 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-04-15 13:43:13 -0700 |
commit | 6972fa7a27b6274abef42d048c8be0939199cf51 (patch) | |
tree | e52922af8097d2c79239275bf1617c02f595dc0f | |
parent | b2b68c5608ceff86a475d0b931c096a647ab5e65 (diff) | |
parent | c8b009ec987d986e25c49ffebe6a0b9cc4f712a9 (diff) | |
download | vyatta-cfg-qos-6972fa7a27b6274abef42d048c8be0939199cf51.tar.gz vyatta-cfg-qos-6972fa7a27b6274abef42d048c8be0939199cf51.zip |
Merge branch 'larkspur' of vm:git/vyatta-cfg-qos into larkspur
-rwxr-xr-x | scripts/vyatta-qos.pl | 6 |
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; |