From 99bf7fb994365e029518b6f3b8d656054bfe24dc Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Thu, 1 Dec 2011 10:41:03 -0800 Subject: [PATCH] Don't do TC stuff during enable/disable of a shared provider Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Providers.pm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Shorewall/Perl/Shorewall/Providers.pm b/Shorewall/Perl/Shorewall/Providers.pm index 2fd6770ad..b966c88a8 100644 --- a/Shorewall/Perl/Shorewall/Providers.pm +++ b/Shorewall/Perl/Shorewall/Providers.pm @@ -697,7 +697,9 @@ sub add_a_provider( $$ ) { $weight = 1; } - emit( "setup_${dev}_tc" ) if $tcdevices->{$interface}; + unless ( $shared ) { + emit( "setup_${dev}_tc" ) if $tcdevices->{$interface}; + } emit ( qq(progress_message2 " Provider $table ($number) Started") ); @@ -776,9 +778,11 @@ sub add_a_provider( $$ ) { emit (". $undo", "> $undo" ); - emit( '', - "qt \$TC qdisc del dev $physical root", - "qt \$TC qdisc del dev $physical ingress\n" ) if $tcdevices->{$interface}; + unless ( $shared ) { + emit( '', + "qt \$TC qdisc del dev $physical root", + "qt \$TC qdisc del dev $physical ingress\n" ) if $tcdevices->{$interface}; + } emit( "progress_message2 \" Provider $table ($number) stopped\"" );