mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 12:14:32 +01:00
Back out redundant part of recent patch
- setup_traffic_shaping is only called when there are tc devices so the test of @tcdevices in that function is redundant. Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
537f6c157c
commit
e4d66fb5fc
@ -2031,15 +2031,13 @@ sub process_tc() {
|
||||
# Call the setup_${dev}_tc functions
|
||||
#
|
||||
sub setup_traffic_shaping() {
|
||||
if ( @tcdevices ) {
|
||||
save_progress_message q("Setting up Traffic Control...");
|
||||
save_progress_message q("Setting up Traffic Control...");
|
||||
|
||||
for my $device ( @tcdevices ) {
|
||||
my $interfaceref = known_interface( $device );
|
||||
my $dev = chain_base( $interfaceref ? $interfaceref->{physical} : $device );
|
||||
for my $device ( @tcdevices ) {
|
||||
my $interfaceref = known_interface( $device );
|
||||
my $dev = chain_base( $interfaceref ? $interfaceref->{physical} : $device );
|
||||
|
||||
emit "setup_${dev}_tc";
|
||||
}
|
||||
emit "setup_${dev}_tc";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user