1 Star 0 Fork 48

zhangyulongkylinos/lwip

forked from src-openEuler/lwip 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0026-del-redundant-wait_close-and-move-epoll_events-pos.patch 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
From ab62f970793c257c712c357a6976b9aca2e63b98 Mon Sep 17 00:00:00 2001
From: wu-changsheng <wuchangsheng2@huawei.com>
Date: Tue, 26 Jul 2022 17:36:29 +0800
Subject: [PATCH] del redundant wait_close and move epoll_events pos
---
src/include/lwipsock.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/include/lwipsock.h b/src/include/lwipsock.h
index 500292d..16e0dd3 100644
--- a/src/include/lwipsock.h
+++ b/src/include/lwipsock.h
@@ -98,12 +98,11 @@ struct lwip_sock {
struct list_node recv_list __rte_cache_aligned;
struct list_node event_list __rte_cache_aligned;
struct list_node send_list __rte_cache_aligned;
+ uint32_t epoll_events; /* registered events, EPOLLONESHOT write frequently */
char pad __rte_cache_aligned;
- uint32_t epoll_events; /* registered events */
struct wakeup_poll *wakeup;
epoll_data_t ep_data;
- bool wait_close;
struct lwip_sock *listen_next; /* listenfd list */
struct protocol_stack *stack;
struct rte_ring *recv_ring;
--
2.23.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangyulongkylinos/lwip.git
git@gitee.com:zhangyulongkylinos/lwip.git
zhangyulongkylinos
lwip
lwip
master

搜索帮助