Skip to content

Port upstream network stack fixes and GSO/GRO optimizations - #23

Open
chenx-dust wants to merge 7 commits into
MetaCubeX:metafrom
chenx-dust:patch-3
Open

chenx-dust wants to merge 7 commits into
MetaCubeX:metafrom
chenx-dust:patch-3

Conversation

@chenx-dust

Copy link
Copy Markdown

分支基于 #22

修改内容

移植 SagerNet/sing-tun@90628e0 中的修复和优化:

  • 修复接口监控状态的并发访问。
  • 修正 gVisor ICMP 的 IPv4/IPv6 协议族选择。
  • 减少不必要的 TCP 握手监听 goroutine。
  • System TCP NAT 使用增量校验和更新。
  • 缩短 TCP NAT 超时清理的排他锁持有时间。
  • 优化 GSO 头部复制和伪首部校验和计算。
  • 优化 Linux GRO flow key 构造及缓冲区写入。

未移植

  • Flow 调度与 MTU 优化:当前分支没有对应模块。
  • TCP RX/TX 默认缓冲区常量修正:当前使用独立配置,不存在常量颠倒问题。
  • UDP PullUp 优化:当前收包接口和缓冲区管理方式与上游不同,需要单独适配。

chenx-dust and others added 7 commits September 9, 2026 23:45
Upstream-commit: SagerNet@90628e0
Co-authored-by: 世界 <i@sekai.icu>
Upstream-commit: SagerNet@90628e0
Co-authored-by: 世界 <i@sekai.icu>
Upstream-commit: SagerNet@90628e0
Co-authored-by: 世界 <i@sekai.icu>
Upstream-commit: SagerNet@90628e0
Co-authored-by: 世界 <i@sekai.icu>
Upstream-commit: SagerNet@90628e0
Co-authored-by: 世界 <i@sekai.icu>
Upstream-commit: SagerNet@90628e0
Co-authored-by: 世界 <i@sekai.icu>
Upstream-commit: SagerNet@90628e0
Co-authored-by: 世界 <i@sekai.icu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant