I'm trying to clean up the vendor if_re driver, and could do with some testers

From: Adrian Chadd <adrian_at_freebsd.org>
Date: Thu, 19 Dec 2024 16:37:47 UTC
hi!

I'm trying to clean up the vendor if_re driver. As is, it's a > 30,000 line
single source file driver that badly needs refactoring and a HAL.

I've started down that path here.

https://github.com/erikarn/rtl_bsd_drv/tree/ahc_v1.100

I've started down the path of refactoring out the MAC and PHY specific code
into separate source files. The RTL8125 PHY/MAC source is over 4000 lines -
or ~ 12% of the original driver source by line count. A lot of it is just
MAC/PHY initialisation and what looks like firmware code blobs / patching.
However, this is just a straight up refactor right now - ideally the vendor
driver would actually have methods for all of this in a HAL rather than
giant if/case statements for things.

I'd love some testing and feedback. I have an E3000 2.5G killer NIC in this
laptop here, which is one out of like 97 or so separate MAC variations that
vendor driver claims to support.

Before anyone asks, I'm purposely not shipping it as a port yet - I don't
want to do releases of this thing, I really just want to keep churning on
it quickly until it's in good enough shape to import into FreeBSD. To build
it, look at the 'build.sh' script - you'll just need to change the kernel
source code path.

Thanks!


-adrian