diff --git a/entry/src/kni_entry.cpp b/entry/src/kni_entry.cpp index a468be4..fea579c 100644 --- a/entry/src/kni_entry.cpp +++ b/entry/src/kni_entry.cpp @@ -1525,21 +1525,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);