[FIXED] Realtek RTL8111/8168/8411 flapping on high transfer rates

kauedg

Cadet
Joined
Jan 13, 2021
Messages
7
I've had some issues with the "re0: watchdog timeout" error that happens with RTL8111/8168/8411 adapters (realtek-re-kmod drivers) and this is how I fixed:

1. Create a jail (let's call it 'gcc')
2. Enter the jail (as root user)
# iocage console gcc

3. Get FreeBSD sources and ports repos, compile and install
# pkg install -y git gcc
# sh
# git clone -o freebsd -b releng/$(uname -r | cut -d'-' -f1,1) https://git.FreeBSD.org/src.git /usr/src
# git clone -o freebsd https://git.freebsd.org/ports.git /usr/ports
# cd /usr/ports/net/realtek-re-kmod/
# make install

4. Exit the jail
# exit
# exit
yeah, one from the sh shell and another from the csh shell

5. Backup and copy modules
# cp /boot/modules/if_re.ko /root/if_re.ko.bkp
# cp /mnt/[pool name]/iocage/jails/gcc/root/boot/modules/if_re.ko /boot/modules/

or, alternatively

# cp /mnt/[pool name]/iocage/jails/gcc/root/usr/ports/net/realtek-re-kmod/work/stage/boot/modules/if_re.ko /boot/modules/

6. On the GUI, go to System -> Tunables and add these:
variable: if_re_load
value: YES

variable: if_re_name
value: /boot/modules/if_re.ko

7. Reboot

This is the graph from a file transfer that used to make my interface flap and go down:

truenas 900kbps.png



Source: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=166724#c93
 
Last edited:

somethingweird

Contributor
Joined
Jan 27, 2022
Messages
183
nice - but *might* have to rebuild the driver - after update of CORE
 

das1996

Dabbler
Joined
May 26, 2020
Messages
25
Does this updated driver help any with wol function? Have a rtl8125, but setting wol via ifconfig has no effect. Same nic, setting wol flag via ethtool on debian/scale works just fine.
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
This is for the 1GbE alphabet soup of Realtek NICs, not 2.5GbE
 

das1996

Dabbler
Joined
May 26, 2020
Messages
25
^^The rtl8125 uses the same driver - if_re.ko. Thought perhaps i'd get lucky.
 
Top