Block the r8169 driver to use r8125 driver in 6.9.2


Recommended Posts

  • 6 months later...
  • 2 weeks later...

I`m wandering how to block the R8165 driver in use switch to r8125 driver.

 

        

        Capabilities: [20c v1] L1 PM Substates
                L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
                          PortCommonModeRestoreTime=150us PortTPowerOnTime=150us
                L1SubCtl1: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2- ASPM_L1.1-
                           T_CommonMode=0us LTR1.2_Threshold=294912ns
                L1SubCtl2: T_PwrOn=150us
        Capabilities: [21c v1] Vendor Specific Information: ID=0002 Rev=4 Len=100 <?>
        Kernel driver in use: r8169
        Kernel modules: r8169, r8125


       

Link to comment

WARNING: I don't know if this is the correct way to block the r8169 driver

 

Slackware seems to block drivers via a file created in:

 

/boot/config/modprobe.d

 

Depending on what you read, the file should be called either "blacklist" or "blacklist.conf" - I created both just to be sure.

 

The file contains a single line:

 

blacklist r8169

 

It seems to have works and I now see this line in the log:

 

Oct 27 18:45:03 kernel: r8125 2.5Gigabit Ethernet driver 9.005.01-NAPI loaded

 

Edited by ThatDude
Link to comment

Update: After 14 hours of uptime my network remains stable with no dropouts and a solid 2.5GB link.

 

> iperf3 -c 192.168.100.250 -w 128k
Connecting to host 192.168.100.250, port 5201
[  5] local 192.168.100.30 port 49367 connected to 192.168.100.250 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   274 MBytes  2.30 Gbits/sec                  
[  5]   1.00-2.00   sec   274 MBytes  2.30 Gbits/sec                  
[  5]   2.00-3.00   sec   275 MBytes  2.31 Gbits/sec                  
[  5]   3.00-4.00   sec   274 MBytes  2.30 Gbits/sec                  
[  5]   4.00-5.00   sec   274 MBytes  2.30 Gbits/sec                  
[  5]   5.00-6.00   sec   275 MBytes  2.30 Gbits/sec                  
[  5]   6.00-7.00   sec   273 MBytes  2.29 Gbits/sec                  
[  5]   7.00-8.00   sec   274 MBytes  2.30 Gbits/sec                  
[  5]   8.00-9.00   sec   275 MBytes  2.30 Gbits/sec                  
[  5]   9.00-10.00  sec   274 MBytes  2.30 Gbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.00  sec  2.68 GBytes  2.30 Gbits/sec                  sender
[  5]   0.00-10.00  sec  2.68 GBytes  2.30 Gbits/sec                  receiver

 

  • Like 1
Link to comment
  • 6 months later...

Hey folks - @ThatDude especially,

 

I've blacklisted the r8169 driver as above, and looking at the logs appears to show the correct driver being loaded:

 

r8125 2.5Gigabit Ethernet driver 9.005.01-NAPI loaded

 

However, I'm only seeing a 1G link. Were there any other tweaks that were required?

Edited by dannygreg
Formatting
Link to comment
4 hours ago, dannygreg said:

Hey folks - @ThatDude especially,

 

I've blacklisted the r8169 driver as above, and looking at the logs appears to show the correct driver being loaded:

 

r8125 2.5Gigabit Ethernet driver 9.005.01-NAPI loaded

 

However, I'm only seeing a 1G link. Were there any other tweaks that were required?

 

I had so many seemingly random issues with that driver in subsequent beta versions of unRAID that I gave up and just bought a dual-port Intel 10Gb card from eBay, it was £30 ($35) and has been rock solid, it's 561FLR-T in case you're interested, note I searched for this card on the forum here before I bought it and found only 1 reference stated that it did not, but it has been fine for me - so YMMV.

 

My takeaway is that Realtek just don't have reliable 2.5Gb drivers on Linux, I passed the 2.5Gb card through to a KVM Win11 gaming PC and it run's flawlessly at full speed 🤷‍♂️

Edited by ThatDude
Link to comment
17 hours ago, dannygreg said:

Fair enough!

 

Fwiw it turned out to be a negotiation issue on my switch rather than the NIC. Fixed it to 2.5G and have a solid link on the latest Unraid release.

Hopefully it's fixed! I found that mine would work for a couple of days before dropping out, requiring either a physical cable reset on the server or a switch reboot. This only happened on unRIAD, my Windows boxes have been solid for months.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.