1 Star 0 Fork 103

宋佳佳/third_party_lwip

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
0054-reduce-cpu-usage-when-send.patch 780 Bytes
一键复制 编辑 原始数据 按行查看 历史
Aurora 提交于 2023-12-07 03:26 . update lwip to 2.1.3-39.oe2203sp1
From d3d6f7fa6e755992fd4b75b56681b5e14aa8ba14 Mon Sep 17 00:00:00 2001
From: jiangheng12 <jiangheng14@huawei.com>
Date: Fri, 10 Mar 2023 19:32:48 +0800
Subject: [PATCH] reduce cpu usage when send
---
src/include/lwipsock.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/include/lwipsock.h b/src/include/lwipsock.h
index f78c9cf..810e98f 100644
--- a/src/include/lwipsock.h
+++ b/src/include/lwipsock.h
@@ -33,6 +33,7 @@
#ifndef __LWIPSOCK_H__
#define __LWIPSOCK_H__
+#include <semaphore.h>
#include "lwip/opt.h"
#include "lwip/api.h"
@@ -110,6 +111,7 @@ struct lwip_sock {
struct list_node send_list;
struct pbuf *send_lastdata;
struct pbuf *send_pre_del;
+ sem_t snd_ring_sem;
char pad3 __rte_cache_aligned;
/* nerver change */
--
2.23.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/song-jiajia-hoperun/third_party_lwip.git
git@gitee.com:song-jiajia-hoperun/third_party_lwip.git
song-jiajia-hoperun
third_party_lwip
third_party_lwip
master

搜索帮助