RealTek 8169S/8110S support.
Matthew Dillon wrote:
> Do a boot -v and report which MII driver is currently attaching
> to the RE ethernet. It's probably the generic driver (ukphy), in
> which case we will need to port rgephy.c from FreeBSD to DragonFly.
> FreeBSD: sys/dev/mii/rge*
> DragonFly: sys/dev/netif/mii_layer/rge*
> There is some fairly minor porting work that needs to be done,
> which you can look at by looking at the cvs log history for some
> of the other MII source modules in DragonFly.
Please find attached my attempt to import support for the RealTek
8169S/8110S from FreeBSD. This supports my DLink 528(T) Card. Could
someone please review/test? The patch is against HEAD. I ran into two
DragonFly is missing a mii_phy_update() function so I wrote an
rge_phy_update() replacement. I'm not sure this is 100% correct.
The card would not auto-negotiate a 1Gbit connection. I increased the
auto-negotiation interval to 17 seconds from five which solved the
problem. There was PR report with this problem and solution for re(4)
and a Cisco switch but I can no longer find the link.
I can see why the cards are $12. I'm slightly disappointed that two of
these cards back to back only manage ~150Mbit/s but it's an improvement
over my built-in vr0.
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::213:46ff:fe2f:5a8e%re0 prefixlen 64 scopeid 0x3
media: Ethernet autoselect (1000baseT <full-duplex>)
dmesg | grep miibus2
miibus2: <MII bus> on re0
rgephy0: <RTL8169S/8110S media interface> on miibus2