Conflict if_re driver

From: Budi Janto <budijanto_at_studiokaraoke.co.id>
Date: Sat, 06 Aug 2022 14:47:22 UTC
Hi,


I've running FreeBSD 13.1 RELEASE.

# pciconf -lv
[...]
re0@pci0:3:0:0:	class=0x020000 rev=0x06 hdr=0x00 vendor=0x1186 
device=0x4300 subvendor=0x1186 subdevice=0x4b10
     vendor     = 'D-Link System Inc'
     device     = 'DGE-528T Gigabit Ethernet Adapter'
     class      = network
     subclass   = ethernet
re1@pci0:4:0:0:	class=0x020000 rev=0x05 hdr=0x00 vendor=0x10ec 
device=0x8125 subvendor=0x1458 subdevice=0xe000
     vendor     = 'Realtek Semiconductor Co., Ltd.'
     device     = 'RTL8125 2.5GbE Controller'
     class      = network
     subclass   = ethernet

# ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=201b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,WOL_MAGIC>
	ether 08:5a:11:32:e6:53
	inet 192.168.100.200 netmask 0xffffff00 broadcast 192.168.100.255
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=201b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,WOL_MAGIC>
	ether d8:5e:d3:98:1a:90
	inet 192.168.0.200 netmask 0xffffff00 broadcast 192.168.0.255
	media: Ethernet autoselect (1000baseT <full-duplex>)
	status: active
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

Without installing realtek-re-kmod-196.04 from packages, re1 undetected. 
But if I installing and activated through /boot/loader.conf:

if_re_load="YES"
if_re_name="/boot/modules/if_re.ko"
hw.re.max_rx_mbuf_sz="2048"

re0 always runs 100baseTX, if I disable via /boot/loader.conf. re1 gone 
and re0 back runs 1000baseT. Any suggestion for this problem? Thanks.



-- 
Regards,
Budi Janto