mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-28 00:59:07 +01:00
Omit estimator when no avrate.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
cfa33e894f
commit
b9a7374130
@ -581,13 +581,13 @@ sub handle_in_bandwidth( $$ ) {
|
|||||||
emit ( "run_tc qdisc add dev $physical handle ffff: ingress" );
|
emit ( "run_tc qdisc add dev $physical handle ffff: ingress" );
|
||||||
|
|
||||||
if ( have_capability 'BASIC_FILTER' ) {
|
if ( have_capability 'BASIC_FILTER' ) {
|
||||||
emit( "run_tc filter add dev $physical parent ffff: protocol all prio 10 " .
|
emit( "run_tc filter add dev $physical parent ffff: protocol all prio 10 " );
|
||||||
"\\\n estimator $in_interval $in_decay basic \\" );
|
|
||||||
|
|
||||||
if ( $in_rate ) {
|
if ( $in_rate ) {
|
||||||
emit( " police mpu 64 rate ${in_rate}kbit burst $in_burst action drop\n" );
|
emit( " police mpu 64 rate ${in_rate}kbit burst $in_burst action drop\n" );
|
||||||
} else {
|
} else {
|
||||||
emit( " police avrate ${in_avrate}kbit action drop\n" );
|
emit( " estimator $in_interval $in_decay basic \\",
|
||||||
|
" police avrate ${in_avrate}kbit action drop\n" );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
emit( "run_tc filter add dev $physical parent ffff: protocol all prio 10 " .
|
emit( "run_tc filter add dev $physical parent ffff: protocol all prio 10 " .
|
||||||
|
Loading…
Reference in New Issue
Block a user