accept线程与kni通信默认使用v3方案(iptables+NFQ)

This commit is contained in:
luwenpeng
2021-11-20 17:22:19 +03:00
parent 16b4a62942
commit ad481d77d9
2 changed files with 4 additions and 4 deletions

View File

@@ -1,8 +1,8 @@
[system]
nr_worker_threads=8
enable_kni_v1=0
enable_kni_v2=1
enable_kni_v3=0
enable_kni_v2=0
enable_kni_v3=1
# Only when (disable_coredump == 1 || (enable_breakpad == 1 && enable_breakpad_upload == 1)) is satisfied, the core will not be generated locally
disable_coredump=0

View File

@@ -507,8 +507,8 @@ int tfe_stat_init(struct tfe_proxy * proxy, const char * profile)
void tfe_proxy_acceptor_init(struct tfe_proxy * proxy, const char * profile)
{
MESA_load_profile_uint_def(profile, "system", "enable_kni_v1", &proxy->en_kni_v1_acceptor, 0);
MESA_load_profile_uint_def(profile, "system", "enable_kni_v2", &proxy->en_kni_v2_acceptor, 1);
MESA_load_profile_uint_def(profile, "system", "enable_kni_v3", &proxy->en_kni_v3_acceptor, 0);
MESA_load_profile_uint_def(profile, "system", "enable_kni_v2", &proxy->en_kni_v2_acceptor, 0);
MESA_load_profile_uint_def(profile, "system", "enable_kni_v3", &proxy->en_kni_v3_acceptor, 1);
int ret = proxy->en_kni_v1_acceptor + proxy->en_kni_v2_acceptor + proxy->en_kni_v3_acceptor;
CHECK_OR_EXIT((ret == 1), "Invalid KNI acceptor. Exit.");