Improve assignment of class ID for SFQ classses

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2010-02-17 07:41:30 -08:00
parent 115ce7b87d
commit 5649dbf9a8

View File

@ -1334,7 +1334,7 @@ sub setup_traffic_shaping() {
} }
} }
my $sfq = in_hex4( ( $devref->{number} << 8 ) | $classnum ); my $sfq = in_hexp( ( ( hex_value $devref->{number} ) << 8 ) | ( hex_value( $classnum ) & 0xff ) );
if ( $tcref->{leaf} && ! $tcref->{pfifo} ) { if ( $tcref->{leaf} && ! $tcref->{pfifo} ) {
emit( "run_tc qdisc add dev $device parent $classid handle $sfq: sfq quantum \$quantum limit $tcref->{limit} perturb 10" ); emit( "run_tc qdisc add dev $device parent $classid handle $sfq: sfq quantum \$quantum limit $tcref->{limit} perturb 10" );