Repository navigation
feat(net): add RTL8111/8168 and RTL8125 Ethernet drivers - #8
Merged
Merged
Conversation
Add revision-specific MAC and PHY initialization, embedded RTL8125 firmware, 64-bit coherent DMA rings, copper autonegotiation, bounded error handling and owner-managed shutdown for the supported Realtek PCIe controllers. Integrate CONFIG_R8169 as default built-in or r8169.ko with PCI aliases. Retain the OpenBSD BSD-4-Clause and ISC notices and the Realtek firmware permission, including them in the versioned kernel installation payload. Validate built-in and module builds, ASan/UBSan hardware-boundary and I/O timing tests, and QEMU boot/module cycles with e1000 IPv4/IPv6 regression. The full host suite was interrupted and an existing EEVDF fixture layout assertion failure remains recorded. Physical Realtek PHY, traffic, throughput and timing validation and VMware validation remain pending.
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.
改动
增加原生
r8169网卡驱动,扩大 ReliefNT 的 Realtek PCIe 有线网卡覆盖。-ENODEV。eth0provider,使用单队列轮询、MTU 1500、64 位 DMA 和经典收发描述符。包含 PHY 初始化、链路读取、帧校验、失败回滚和安全卸载。CONFIG_R8169默认内置,支持m生成r8169.ko,提供 8168、8125 的 PCI 模块别名。已合入当前
main的336e2bc,包括移除旧内核诊断模式的改动。分支头为8abccff468ddd2501c6be76d114f229b03f64cba。验证
在合并后的源码上完成以下检查。
python3 tools/test_r8169.py通过,ASan/UBSan 覆盖已登记 MAC 路径、DMA 环边界、错误帧、资源失败、卸载重试,以及真实 I/O 和延时对象。tools/test_install_bundle.py、tools/test_module_layout.py、tools/test_test_ownership.py通过。make的CONFIG_R8169=y内核构建、模块安装通过。make的CONFIG_R8169=m内核、模块及完整install通过。git diff --check origin/main...HEAD通过。验证边界
eth0、单队列轮询。struct task大小及偏移静态断言失败,已记录。全套测试未完成,本次复跑了上述定向检查。ReliefOS 集成
对应的主仓 gitlink 更新与打包验证见关联 PR。ReliefOS #76