diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-04-15 16:05:38 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-04-15 16:05:38 -0700 |
commit | 4a59bd28bf2d7c901505be21db4bc12415f0711d (patch) | |
tree | 83071a84292b9d5af68d04f04e37e9044e93d691 /scripts | |
parent | dcb38ff84cd943eeee3c78754d93507796224fba (diff) | |
download | vyatta-cfg-qos-4a59bd28bf2d7c901505be21db4bc12415f0711d.tar.gz vyatta-cfg-qos-4a59bd28bf2d7c901505be21db4bc12415f0711d.zip |
Fix modification of input-policy
If policy changes, then the whole ingress qdisc needs to be
reloaded.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-qos.pl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl index b6c2f92..0fd003f 100755 --- a/scripts/vyatta-qos.pl +++ b/scripts/vyatta-qos.pl @@ -254,11 +254,12 @@ sub update_ingress { die "$device not present\n" unless (-d "/sys/class/net/$device"); - my $ingress = ingress_policy( $device ); - return unless $ingress; - # Drop existing ingress and recreate system("sudo tc qdisc del dev $device ingress 2>/dev/null"); + + my $ingress = ingress_policy( $device ); + return unless $ingress; + system("sudo tc qdisc add dev $device ingress") == 0 or die "Can not set ingress qdisc"; |