Projects
openEuler:C
gazelle
_service:tar_scm:0077-log-optimize-lstack-log.p...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0077-log-optimize-lstack-log.patch of Package gazelle
From 10db670bcca6be723361e710625452c42249002a Mon Sep 17 00:00:00 2001 From: yinbin <yinbin8@huawei.com> Date: Sat, 9 Dec 2023 22:31:02 +0800 Subject: [PATCH] add --- src/common/gazelle_reg_msg.h | 2 +- src/lstack/core/lstack_lwip.c | 1 - src/lstack/core/lstack_thread_rpc.c | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/gazelle_reg_msg.h b/src/common/gazelle_reg_msg.h index a944d80..d849cea 100644 --- a/src/common/gazelle_reg_msg.h +++ b/src/common/gazelle_reg_msg.h @@ -22,7 +22,7 @@ #define GAZELLE_MAX_REG_ARGS 32 -#define ENQUEUE_RING_RETRY_TIMEOUT 500 // ms +#define ENQUEUE_RING_RETRY_TIMEOUT 10 // ms #define OPT_BASE_VIRTADDR "--base-virtaddr" #define OPT_FILE_PREFIX "--file-prefix" diff --git a/src/lstack/core/lstack_lwip.c b/src/lstack/core/lstack_lwip.c index 5a719ea..026c870 100644 --- a/src/lstack/core/lstack_lwip.c +++ b/src/lstack/core/lstack_lwip.c @@ -797,7 +797,6 @@ static inline void notice_stack_send(struct lwip_sock *sock, int32_t fd, int32_t if (__atomic_load_n(&sock->call_num, __ATOMIC_ACQUIRE) < 2) { while (rpc_call_send(fd, NULL, len, flags) < 0) { usleep(1000); // 1000: wait 1ms to exec again - LSTACK_LOG(INFO, LSTACK, "rpc_call_send failed, try again\n"); } __sync_fetch_and_add(&sock->call_num, 1); } diff --git a/src/lstack/core/lstack_thread_rpc.c b/src/lstack/core/lstack_thread_rpc.c index 473e908..4aceee6 100644 --- a/src/lstack/core/lstack_thread_rpc.c +++ b/src/lstack/core/lstack_thread_rpc.c @@ -31,7 +31,6 @@ static inline __attribute__((always_inline)) struct rpc_msg *get_rpc_msg(struct struct rpc_msg *msg = NULL; ret = rte_mempool_get(rpc_pool->mempool, (void **)&msg); if (ret < 0) { - LSTACK_LOG(INFO, LSTACK, "rpc pool empty!\n"); errno = ENOMEM; return NULL; } -- 2.27.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
.