HAL支持mrglobal.conf模板中poll_wait_throttle字段调整

This commit is contained in:
wangmenglan
2023-07-14 17:50:17 +08:00
parent 859e5c0607
commit d0cd8e8ca8
2 changed files with 4 additions and 0 deletions

View File

@@ -7,3 +7,4 @@
# MRZCPD_DIRECT_PKTMBUF=
# MRZCPD_INDIRECT_PKTMBUF=
# MRZCPD_POLL_WAIT_THROTTLE=

View File

@@ -19,6 +19,7 @@ MRZCPD_IOCORE=
CLIXON_IOCORE=
MRZCPD_DIRECT_PKTMBUF=
MRZCPD_INDIRECT_PKTMBUF=
MRZCPD_POLL_WAIT_THROTTLE=512
load_tsg_os_HAL_config()
{
@@ -59,6 +60,8 @@ set_tsg_clixon_conf()
[ -f ${mrglobal_cfg_template} ] && sed -i "s/^iocore=.*$/iocore=${MRZCPD_IOCORE}/g" ${mrglobal_cfg_template}
[ -f ${mrglobal_cfg_template} ] && sed -i "s/^poll_wait_throttle=.*$/poll_wait_throttle=${MRZCPD_POLL_WAIT_THROTTLE}/g" ${mrglobal_cfg_template}
[ -f ${tsg_clixon_cfg_file} ] && sed -i "s/^cpu_range=.*$/cpu_range=${CLIXON_IOCORE}/g" ${tsg_clixon_cfg_file}
}