1 Star 0 Fork 48

zhangyulongkylinos/lwip

forked from src-openEuler/lwip 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0042-expand-recv-win.patch 1.01 KB
一键复制 编辑 原始数据 按行查看 历史
吴昌盛 提交于 2022-12-18 20:05 . expand rcv wnd and prefetch
From 288d56ebd68f366d3fa2ee1521120016fb21bf31 Mon Sep 17 00:00:00 2001
From: wuchangsheng <wuchangsheng2@huawei.com>
Date: Sat, 17 Dec 2022 19:14:36 +0800
Subject: [PATCH 1/2] expand recv win
---
src/include/lwip/opt.h | 2 +-
src/include/lwipopts.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h
index 9d41a09..718816b 100644
--- a/src/include/lwip/opt.h
+++ b/src/include/lwip/opt.h
@@ -1483,7 +1483,7 @@
*/
#if !defined LWIP_WND_SCALE || defined __DOXYGEN__
#define LWIP_WND_SCALE 1
-#define TCP_RCV_SCALE 0
+#define TCP_RCV_SCALE 6
#endif
/**
diff --git a/src/include/lwipopts.h b/src/include/lwipopts.h
index d7b9635..907c630 100644
--- a/src/include/lwipopts.h
+++ b/src/include/lwipopts.h
@@ -95,7 +95,7 @@
#define TCP_MSS (FRAME_MTU - IP_HLEN - TCP_HLEN)
-#define TCP_WND (40 * TCP_MSS)
+#define TCP_WND (2500 * TCP_MSS)
#define TCP_SND_BUF (2500 * TCP_MSS)
--
2.8.4.windows.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangyulongkylinos/lwip.git
git@gitee.com:zhangyulongkylinos/lwip.git
zhangyulongkylinos
lwip
lwip
master

搜索帮助