summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;