Repository navigation
feat(network): integrate multi-NIC support with merged ReliefNT main - #78
Merged
Merged
Conversation
Leonmmcoset
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联改动
本 PR 以 ReliefOS
main为目标,接续因目标分支feature/realtek-network被删除而自动关闭的 PR #77。Realtek 系统集成 PR #76 已合并。原 PR #77 · 已合并 PR #76ReliefNT 多网卡实现已合并到
main。本轮将kernel/reliefntgitlink 更新至最新提交e92dd2f31aceea70f4aa7e50f5de4d218eed4258,本地内核子模块已同步到main。ReliefNT #9本轮更新验证
e92dd2f的源码树与此前验证的31223b1完全一致,树对象均为20dfbf887835c18349c026626431eb916b6ef26f。test_net_device.py、test_net_multi_interface.py、test_abi_layout.py及两仓测试归属检查,全部通过。810b30fb更新 gitlink 至已经发布的 ReliefNTmain提交。下方记录涵盖多网卡实现阶段的编译、测试与运行验证。
更新内容
为内核新增的多个独立以太网接口适配系统启动配置、DHCP、DNS 和 Network Controller。
reliefos-dhcp从/proc/net/dev枚举接口,逐卡准备配置和启动 DHCP 监督器。/etc/reliefos/network.conf,其他接口使用/etc/reliefos/network.d/ethN.conf。逐卡校验配置、文件所有权、目录和接口身份。接口卸载重载后可能得到新的
ethN名称,配置按实际接口名称选择。编译验证
测试验证
多网卡实现阶段的所选回归检查通过。
tests/build/test-network-profile.sh覆盖逐卡模式、DNS 优先级、租约隔离、PID 身份及定向应用。tests/build/test-network-controller.sh覆盖模型、配置保存/恢复、冲突处理及真实 worker IPC。tools/test_openrc_resolver.py与tools/test_test_ownership.py通过。运行验证
ip addr、ip route和 proc 查询工作。已知边界
prepare成功,两个自动化三网卡来宾也通过。此项仍待复现定位。/sys/class/net完整导出仍待扩展。