summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2024-06-21 14:08:38 +0800
committerfumingwei <[email protected]>2024-06-21 14:08:38 +0800
commit5d583dd5fe24aa02dffafd0b8e93ecd7ed061aa8 (patch)
tree0e66725e07439de23c27ce91527533a28aa7093c
parentb0354fd10080af2e939c85a1e85778dd5e79698a (diff)
feature: set reassembled_packets_num default value to 8.v21.09.05dev-21.09
-rw-r--r--conf/kni/kni.conf2
-rw-r--r--entry/src/kni_entry.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/conf/kni/kni.conf b/conf/kni/kni.conf
index 2b685d4..9a4625e 100644
--- a/conf/kni/kni.conf
+++ b/conf/kni/kni.conf
@@ -9,7 +9,7 @@ src_mac_addr = 00:0e:c6:d6:72:c1
dst_mac_addr = fe:65:b7:03:50:bd
-reassembled_packets_num = 2
+reassembled_packets_num = 8
[tfe0]
enabled = 1
diff --git a/entry/src/kni_entry.cpp b/entry/src/kni_entry.cpp
index f7ac99a..1671f45 100644
--- a/entry/src/kni_entry.cpp
+++ b/entry/src/kni_entry.cpp
@@ -2612,7 +2612,7 @@ extern "C" int kni_init(){
//kni_git_log
KNI_LOG_ERROR(local_logger, "----------kni version = %s-----------", kni_git_verison);
- MESA_load_profile_int_def(profile, section, "reassembled_packets_num", &(g_kni_handle->reassembled_packets_num), 2);
+ MESA_load_profile_int_def(profile, section, "reassembled_packets_num", &(g_kni_handle->reassembled_packets_num), 8);
char deploy_mode[KNI_SYMBOL_MAX];
ret = MESA_load_profile_string_def(profile, section, "deploy_mode", deploy_mode, sizeof(deploy_mode), "normal");
g_kni_handle->deploy_mode = KNI_DEPLOY_MODE_NORMAL;