Commit 26f9096c authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Add UE MTU as an option from config file

parent 58fce642
......@@ -78,6 +78,8 @@ SMF =
DEFAULT_DNS_IPV6_ADDRESS = "2001:4860:4860::8888"; # YOUR DNS CONFIG HERE
DEFAULT_DNS_SEC_IPV6_ADDRESS = "2001:4860:4860::8844"; # YOUR DNS CONFIG HERE
#Default UE MTU
UE_MTU = 1358;
# SUPPORT FEATURES
SUPPORT_FEATURES:
......
......@@ -553,6 +553,7 @@ int smf_config::load(const string& config_file) {
astring.c_str());
}
// UE MTU
smf_cfg.lookupValue(SMF_CONFIG_STRING_UE_MTU, ue_mtu);
// Support features
......@@ -986,6 +987,7 @@ void smf_config::display() {
Logger::smf_app().info(
" Scheduling prio .....: %d",
itti.async_cmd_sched_params.sched_priority);
Logger::smf_app().info("- " SMF_CONFIG_STRING_IP_ADDRESS_POOL ":");
for (int i = 0; i < num_ue_pool; i++) {
std::string range_low(inet_ntoa(ue_pool_range_low[dnn[i].pool_id_iv4]));
......@@ -1044,6 +1046,7 @@ void smf_config::display() {
}
}
Logger::smf_app().info("- Default UE MTU: %d", ue_mtu);
Logger::smf_app().info("- Supported Features:");
Logger::smf_app().info(
" Register to NRF............: %s", register_nrf ? "Yes" : "No");
......@@ -1255,4 +1258,5 @@ bool smf_config::get_nwi_list_index(
nwi_enabled = false;
return false;
}
return true;
}
......@@ -309,7 +309,7 @@ class smf_config {
ue_pool_excluded[i] = {};
}
force_push_pco = true;
ue_mtu = 1500;
ue_mtu = 1358;
itti.itti_timer_sched_params.sched_priority = 85;
itti.n4_sched_params.sched_priority = 84;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment