Projects
Eulaceura:Factory
gazelle
_service:obs_scm:0239-WRAP-fix-ltran-mode-did-n...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0239-WRAP-fix-ltran-mode-did-not-bind-kernel-while-open-k.patch of Package gazelle
From 19ba97492e3e658301e801d1866a68ac17d87f2f Mon Sep 17 00:00:00 2001 From: yinbin <yinbin8@huawei.com> Date: Sat, 10 Aug 2024 15:34:42 +0800 Subject: [PATCH] WRAP:fix ltran mode did not bind kernel while open kni --- src/lstack/api/lstack_wrap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lstack/api/lstack_wrap.c b/src/lstack/api/lstack_wrap.c index afcd227..73281e9 100644 --- a/src/lstack/api/lstack_wrap.c +++ b/src/lstack/api/lstack_wrap.c @@ -204,8 +204,9 @@ static int kernel_bind_process(int32_t s, const struct sockaddr *name, socklen_t struct lwip_sock *sock = NULL; int times = 10; int ret = 0; - - if (get_global_cfg_params()->kni_switch == 0 && get_global_cfg_params()->flow_bifurcation == 0) { + /* lstack not sense if ltran enable kni, so only checks use_ltran. */ + if (!get_global_cfg_params()->use_ltran && !get_global_cfg_params()->kni_switch && + !get_global_cfg_params()->flow_bifurcation) { return 0; } ret = posix_api->bind_fn(s, name, namelen); -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2