tfe_data_recv_thread_num和keepalive_replay_switch使用默认参数1.
This commit is contained in:
@@ -1524,21 +1524,13 @@ extern "C" int kni_init(){
|
||||
KNI_LOG_ERROR(local_logger, "tfe_count is %d, <= 0", tfe_count);
|
||||
goto error_out;
|
||||
}
|
||||
ret = MESA_load_profile_int_nodef(profile, section, "tfe_data_recv_thread_num", &tfe_data_recv_thread_num);
|
||||
if(ret < 0){
|
||||
KNI_LOG_ERROR(local_logger, "MESA_prof_load: tfe_data_recv_thread_num not set, profile is %s, section is %s", profile, section);
|
||||
goto error_out;
|
||||
}
|
||||
ret = MESA_load_profile_int_def(profile, section, "tfe_data_recv_thread_num", &tfe_data_recv_thread_num, 1);
|
||||
ret = MESA_load_profile_string_nodef(profile, section, "local_eth", local_eth, sizeof(local_eth));
|
||||
if(ret < 0){
|
||||
printf("MESA_prof_load: local_eth not set, profile is %s, section is %s", profile, section);
|
||||
goto error_out;
|
||||
}
|
||||
ret = MESA_load_profile_int_nodef(profile, section, "keepalive_replay_switch", &keepalive_replay_switch);
|
||||
if(ret < 0){
|
||||
printf("MESA_prof_load: keepalive_replay_switch not set, profile is %s, section is %s", profile, section);
|
||||
goto error_out;
|
||||
}
|
||||
ret = MESA_load_profile_int_def(profile, section, "keepalive_replay_switch", &keepalive_replay_switch, 1);
|
||||
KNI_LOG_INFO(local_logger, "MESA_prof_load, [%s]:\n log_path: %s\n log_level: %d\n tfe_count: %d\n"
|
||||
"tfe_data_recv_thread_num: %d\n local_eth: %s\n keepalive_replay_switch: %d",
|
||||
section, log_path, log_level, tfe_count, tfe_data_recv_thread_num, local_eth, keepalive_replay_switch);
|
||||
|
||||
Reference in New Issue
Block a user