Set quantum in subordinate SFQ class to the MTU for HFSC parents.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-05-18 10:34:46 -07:00
parent 0e59932b8d
commit 5ab6f8e0e5

View File

@ -1547,7 +1547,7 @@ sub setup_traffic_shaping() {
if ( $devref->{qdisc} eq 'htb' ) {
emit( "run_tc qdisc add dev $device parent $classid handle $sfqinhex: sfq quantum \$quantum limit $tcref->{limit} perturb 10" );
} else {
emit( "run_tc qdisc add dev $device parent $classid handle $sfqinhex: sfq limit $tcref->{limit} perturb 10" );
emit( "run_tc qdisc add dev $device parent $classid handle $sfqinhex: sfq quantum \$${dev}_mtu limit $tcref->{limit} perturb 10" );
}
}
#