Just stumbled onto this old Realtek r8125 issue, and was curious if there was any up to date methods of getting the r8125 driver installed on Rocky? Lots of documentation out there for Debian brands, but not seeing much for us.
Main issue is poor performance when using Rocky Linux on this Realtek 2.5 Gbps NIC. Download speeds are cut nearly in half or worse, compared to other OSes.
Attempted to compile the latest r8125-9.014.01 downloaded from Realtek’s site, but coming up with the familiar “fatal error: linux/pci-aspm.h: No such file or directory” issue. So, before I travel down this path any further, anybody have any updated methods of getting the latest drivers for the RTL8125 NICs?
The baseline is that Rocky has what corresponding RHEL has. Period.
ELRepo start [ELRepo Wiki] maintains many kernel modules that Red Hat has omitted from RHEL, and perhaps some “improved” ones too. They definitely know how to build modules for Enterprise Linux.
Unfortunately, even with the r8125 driver, my speedtest checks are still worse than expected compared to other devices on the same LAN (Intel cards getting ~900 Mbps, but poor Realtek still stuck below ~400 Mbps). I’ll have to keep tshooting this issue.
Thank you though for the quick replies, and at least the driver update process was smooth. Appreciate the guidance.