Skip to content

fix: address tcshape qdisc and locking defects - #20

Merged
LucaLin233 merged 5 commits into
mainfrom
fix/issue-19-qdisc-hardening
Aug 18, 2026
Merged

fix: address tcshape qdisc and locking defects#20
LucaLin233 merged 5 commits into
mainfrom
fix/issue-19-qdisc-hardening

Conversation

@LucaLin233

Copy link
Copy Markdown
Owner

修复内容

  • P1:按速率计算 fq limit,移除过大的 flow_limit 与无效 maxrate
  • P2:为 _apply 增加等待锁;服务重启前释放、完成后重取锁;回滚重启同样处理
  • P3-P5:恢复路径改用 replace,速率校验改读 tc -j,区分自定义参数与读取失败
  • P6/P9:清理 ShellCheck 告警与无意义 apply_test_shaper 包装
  • P7:检测 tcshape HTB 下的主动测速,给出警告并写入生成配置头

P2 保持为独立提交:d1fc790

验证

  • bash tests/run.sh
  • shellcheck --severity=warning tools/traffic-shape.sh modules/network-optimize.sh
  • shellcheck -x --severity=error linux_setup.sh modules/*.sh tools/*.sh tests/*.sh

以上均通过。

暂缓

  • P8 未改。当前云端沙箱缺少 CAP_NET_ADMIN,无法按 issue 要求在真实 qdisc 上验证删除 quantum 1514 的影响。

Refs #19

@LucaLin233
LucaLin233 merged commit 95e4a3b into main Aug 18, 2026
2 checks passed
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