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

Adrian Chadd <[email protected]>
Newsgroups gmane.os.freebsd.devel.net
Message-ID <CAJ-VmonKGK9e6QC806g9uQsiMwn1qjV6FR4hQN28-KzedzprKA@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.