mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-26 17:43:15 +01:00
Correct sfq handle assignment
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
e69f22725f
commit
deb7d92ded
@ -1409,7 +1409,7 @@ sub setup_traffic_shaping() {
|
|||||||
validate_tc_device while read_a_line;
|
validate_tc_device while read_a_line;
|
||||||
}
|
}
|
||||||
|
|
||||||
my $sfq = $devnum;
|
my $sfq = 0;
|
||||||
my $sfqinhex;
|
my $sfqinhex;
|
||||||
|
|
||||||
$devnum = $devnum > 10 ? 10 : 1;
|
$devnum = $devnum > 10 ? 10 : 1;
|
||||||
@ -1553,7 +1553,9 @@ sub setup_traffic_shaping() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( $tcref->{leaf} && ! $tcref->{pfifo} ) {
|
if ( $tcref->{leaf} && ! $tcref->{pfifo} ) {
|
||||||
$sfqinhex = in_hexp( ++$sfq);
|
1 while $devnums[++$sfq];
|
||||||
|
|
||||||
|
$sfqinhex = in_hexp( $sfq);
|
||||||
if ( $devref->{qdisc} eq 'htb' ) {
|
if ( $devref->{qdisc} eq 'htb' ) {
|
||||||
emit( "run_tc qdisc add dev $device parent $classid handle $sfqinhex: sfq quantum \$quantum limit $tcref->{limit} perturb 10" );
|
emit( "run_tc qdisc add dev $device parent $classid handle $sfqinhex: sfq quantum \$quantum limit $tcref->{limit} perturb 10" );
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user