1 Star 0 Fork 32

zhangju1/gazelle

forked from src-openEuler/gazelle 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0077-log-optimize-lstack-log.patch 1.87 KB
一键复制 编辑 原始数据 按行查看 历史
yinbin6 提交于 2023-12-09 23:07 . sync upstream patch
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangju1/gazelle.git
git@gitee.com:zhangju1/gazelle.git
zhangju1
gazelle
gazelle
master

搜索帮助