Re: Support for newer Ethernet chips in RE(4) driver?

From: Mark Martinec <Mark.Martinec+freebsd_at_ijs.si>
Date: Sat, 9 Oct 2010 03:24:47 +0200
On Friday October 8 2010 19:00:45 Pyun YongHyeon wrote:
> Actually re(4) supports much more controllers than that.
> Man page needs updating to reflect this.

False alarm.  Indeed it does work with RTL8111E.
I was distracted by the lack of its mention on the man page, and
by the presence of a FreeBSD 8.0 re(4) driver on the Realtek's
web page, whose source code is much larger than the base driver
from the FreeBSD 8.1 distribution.

Updating the docs could help others deciding what hw to purchase
or what OS to run on it.

> Does stock re(4) fail to recognize your controller? If yes, please
> send me dmesg output (pciconf output is useless for RealTek
> controllers).

The same report in dmesg comes from using either the base
or the vendor's driver, so no problems there. Here it is anyway
(the second of the two ethernet controllers):

pcib8: <ACPI PCI-PCI bridge> irq 17 at device 28.5 on pci0
pci8: <ACPI PCI bus> on pcib8
re1: <RealTek 8168/8111 B/C/CP/D/DP/E PCIe Gigabit Ethernet> port 
0xbe00-0xbeff
 mem 0xfbaff000-0xfbafffff,0xfbaf8000-0xfbafbfff irq 17 at device 0.0 on pci8
re1: Using 1 MSI messages
re1: Chip rev. 0x2c000000
re1: MAC rev. 0x00000000
miibus1: <MII bus> on re1
rgephy1: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus1
rgephy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 
1000baseT-FDX, auto
re1: Ethernet address: 6c:f0:49:ef:99:e7
re1: [FILTER]

and ifconfig tells:

re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
  options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
  ether 6c:f0:49:ef:99:e7
  inet6 fe80::6ef0:49ff:feef:99e7%re1 prefixlen 64 scopeid 0x2 
  inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255
  nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
  media: Ethernet autoselect (1000baseT <full-duplex>)
  status: active


Thanks for a prompt response!

  Mark
Received on Fri Oct 08 2010 - 23:24:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:08 UTC