diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-04-15 13:40:28 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-04-15 13:40:28 -0700 |
commit | c8b009ec987d986e25c49ffebe6a0b9cc4f712a9 (patch) | |
tree | 2cf1890af3b621703f10b833fd42585136449f0b /scripts | |
parent | 4f5c0c9f75d04278074dca298b6fe0ab2e73c162 (diff) | |
download | vyatta-cfg-qos-c8b009ec987d986e25c49ffebe6a0b9cc4f712a9.tar.gz vyatta-cfg-qos-c8b009ec987d986e25c49ffebe6a0b9cc4f712a9.zip |
Fix setup of ingress qdisc
Need to drop/recreate on changes.
Diffstat (limited to 'scripts')
-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; |