fix tunables
This commit is contained in:
parent
82024f9942
commit
3110dec4f3
@ -106,39 +106,39 @@ define(`dflt_or_overr',`ifdef(`$1',$1,$2)')
|
|||||||
#
|
#
|
||||||
# Tunable declaration
|
# Tunable declaration
|
||||||
#
|
#
|
||||||
# cjp: modular policy commented out
|
|
||||||
# until loadable modules support tunables.
|
|
||||||
define(`gen_tunable',`
|
define(`gen_tunable',`
|
||||||
# ifdef(`monolithic_policy',`
|
ifdef(`monolithic_policy',`
|
||||||
bool $1 dflt_or_overr(`$1'_conf,$2);
|
bool $1 dflt_or_overr(`$1'_conf,$2);
|
||||||
# ',`
|
',`
|
||||||
# # loadable module tunable
|
# loadable module tunable
|
||||||
# # declaration will go here
|
# declaration will go here
|
||||||
# # for $1 $2
|
# instead of bool when
|
||||||
# ')
|
# loadable modules support
|
||||||
|
# tunables
|
||||||
|
bool $1 dflt_or_overr($1'_conf,$2);
|
||||||
|
')
|
||||||
')
|
')
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
#
|
#
|
||||||
# Tunable policy handling
|
# Tunable policy handling
|
||||||
#
|
#
|
||||||
# cjp: modular policy commented out
|
|
||||||
# until loadable modules support tunables.
|
|
||||||
define(`tunable_policy',`
|
define(`tunable_policy',`
|
||||||
# ifdef(`monolithic_policy',`
|
ifdef(`monolithic_policy',`
|
||||||
if (`$1') {
|
if (`$1') {
|
||||||
$2
|
$2
|
||||||
} else {
|
} else {
|
||||||
$3
|
$3
|
||||||
}
|
}
|
||||||
# ',`
|
',`
|
||||||
# optional {
|
# structure for tunables
|
||||||
# require { `$1' }
|
# will go here instead of a
|
||||||
# $2
|
# conditional when loadable
|
||||||
# ifelse(`$3',`',`',`
|
# modules support tunables
|
||||||
# } else {
|
if ($1') {
|
||||||
# $3
|
$2
|
||||||
# ')
|
} else {
|
||||||
# }
|
$3
|
||||||
# ')
|
}
|
||||||
|
')
|
||||||
')
|
')
|
||||||
|
Loading…
Reference in New Issue
Block a user