Realtek 8157 driver installation (Wavlink WL-NWU340G)

@rebelliouswhiz : it looks like you are on a USB3.1 or USB3.2 GEN1 port which is only 5Gbps.
Only GEN2 ports can do 10Gbps AFAIK.

@DerekG : can you share the link to the no-brand device ? Might give it a try while I wait for the test device they promised.
 
@rebelliouswhiz : it looks like you are on a USB3.1 or USB3.2 GEN1 port which is only 5Gbps.
Only GEN2 ports can do 10Gbps AFAIK.

@DerekG : can you share the link to the no-brand device ? Might give it a try while I wait for the test device they promised.
Right, I am on USB 3.0 (or called USB 3.1, USB 3.2 GEN1, thank you USB-IF!), but I am curious why it's showing 10000 M for DerekG? Is RTL 8157 even capable of doing it with USB 3.2 GEN 2?

And I am also noticing the USB adapter / r8152 driver is causing CPU soft lockup, and causing the node not to respond to the network. Quite unstable, I'd say, but pretty much expected as it's not supported directly at the kernel level.
 
Right, I am on USB 3.0 (or called USB 3.1, USB 3.2 GEN1, thank you USB-IF!), but I am curious why it's showing 10000 M for DerekG? Is RTL 8157 even capable of doing it with USB 3.2 GEN 2?

And I am also noticing the USB adapter / r8152 driver is causing CPU soft lockup, and causing the node not to respond to the network. Quite unstable, I'd say, but pretty much expected as it's not supported directly at the kernel level.
Because he is on a GEN2 port like I am. If you look at my lsusb -t in the very first post, you can see it's also 10000 for me.
That speed is the capability of the port, not the capability of the device.

You can verify the speed the device will negotiate on or the current link speed with ethtool :
1745918350038.png

RTL8157 can do 5Gbps and it fits the throughput (with overhead) of the USB3.1/3.2GEN2.
The lockups were reported by other folks as well but was on the earlier version of the driver.
 
Last edited:
Hi DerekG, I found the same github link as you mentioned. I am using the same deb package, but as far as I see it, it's the same as @sunseeker2k5 's method, just packed in a deb.

I tried to make /etc/modprobe.d/r8152.conf and update-initramfs -u, got no luck, still at 3.39 Gbps.

I notice, when I lsusb -t, my adapters show 5000M speed, not 10000M as yours.

Code:
root@prox0:/etc/modprobe.d# cat r8152.conf
options r8125 aspm=1
options r8125 eee_enable=0
root@prox0:/etc/modprobe.d# lsusb -t
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
    |__ Port 3: Dev 3, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
    |__ Port 4: Dev 4, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/9p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M

Is it possible that your no-brand RTL8157 is actually RTL8159, which offers 10 Gbps?

@rebelliouswhiz,

No, it's definitely an RTL8157, I have multiple 6th Gen mini PC's here in my Proxmox cluster, all of those connect at 5000M (USB.3.0) and then I get the 3.3 Gbits/sec TX/RX and the connection is unstable. On the N150 where it connects at 10000M, it's rock solid.

Other points noted during my testing here, I have a 6th Gen Windows Mini PC and that RTL8157 is connected via a powered USB hub, that connection is more stable (doesn't drop the connection) than if the adapter is connected direct to the PC, however Tx/Rx is still 3.3Gits/sec.

I also checked on my 11th Gen laptop (which is supposed to have USB3.2 & USB4 ports, yet in that case even though the Windows shows it's connected at 5Gbe, the Tx/Rx is still at 3.3Gbits/sec in iperf3.

So with that I conclude that if the USB only connects at 5000M then the Tx/Rx rate will be 3.3. only AND that the power draw by the adapter is also having an effect on the stability.

Key for me was to get the N150 connected at as fast a speed as possible, so that issue is solved for me. For the other 6th Gen PC I have a couple of the RTL8126 PCI M.2 cards on order, which I will install in the WiFi M.2 slot, and I suspect that will provide the 5Gbe correctly (although it's not critical for my home lab).

DerekG
 
Because he is on a GEN2 port like I am. If you look at my lsusb -t in the very first post, you can see it's also 10000 for me.
That speed is the capability of the port, not the capability of the device.

You can verify the speed the device will negotiate on or the current link speed with ethtool :
View attachment 85546

RTL8157 can do 5Gbps and it fits the throughput (with overhead) of the USB3.1/3.2GEN2.
The lockups were reported by other folks as well but was on the earlier version of the driver.
Thanks for the explanation! I missed that info... I guess that's it for my use case then.
 
@rebelliouswhiz,

No, it's definitely an RTL8157, I have multiple 6th Gen mini PC's here in my Proxmox cluster, all of those connect at 5000M (USB.3.0) and then I get the 3.3 Gbits/sec TX/RX and the connection is unstable. On the N150 where it connects at 10000M, it's rock solid.

Other points noted during my testing here, I have a 6th Gen Windows Mini PC and that RTL8157 is connected via a powered USB hub, that connection is more stable (doesn't drop the connection) than if the adapter is connected direct to the PC, however Tx/Rx is still 3.3Gits/sec.

I also checked on my 11th Gen laptop (which is supposed to have USB3.2 & USB4 ports, yet in that case even though the Windows shows it's connected at 5Gbe, the Tx/Rx is still at 3.3Gbits/sec in iperf3.

So with that I conclude that if the USB only connects at 5000M then the Tx/Rx rate will be 3.3. only AND that the power draw by the adapter is also having an effect on the stability.

Key for me was to get the N150 connected at as fast a speed as possible, so that issue is solved for me. For the other 6th Gen PC I have a couple of the RTL8126 PCI M.2 cards on order, which I will install in the WiFi M.2 slot, and I suspect that will provide the 5Gbe correctly (although it's not critical for my home lab).

DerekG
Thanks @DerekG ! I guess my speed is as good as I possibly can... I am now considering buying a few mini PC with N150...
 
@rebelliouswhiz,

No, it's definitely an RTL8157, I have multiple 6th Gen mini PC's here in my Proxmox cluster, all of those connect at 5000M (USB.3.0) and then I get the 3.3 Gbits/sec TX/RX and the connection is unstable. On the N150 where it connects at 10000M, it's rock solid.

Other points noted during my testing here, I have a 6th Gen Windows Mini PC and that RTL8157 is connected via a powered USB hub, that connection is more stable (doesn't drop the connection) than if the adapter is connected direct to the PC, however Tx/Rx is still 3.3Gits/sec.

I also checked on my 11th Gen laptop (which is supposed to have USB3.2 & USB4 ports, yet in that case even though the Windows shows it's connected at 5Gbe, the Tx/Rx is still at 3.3Gbits/sec in iperf3.

So with that I conclude that if the USB only connects at 5000M then the Tx/Rx rate will be 3.3. only AND that the power draw by the adapter is also having an effect on the stability.

Key for me was to get the N150 connected at as fast a speed as possible, so that issue is solved for me. For the other 6th Gen PC I have a couple of the RTL8126 PCI M.2 cards on order, which I will install in the WiFi M.2 slot, and I suspect that will provide the 5Gbe correctly (although it's not critical for my home lab).

DerekG
What is the non-branded USB NIC you managed to get 5 Gbps with ?
 
@rebelliouswhiz : it looks like you are on a USB3.1 or USB3.2 GEN1 port which is only 5Gbps.
Only GEN2 ports can do 10Gbps AFAIK.

@DerekG : can you share the link to the no-brand device ? Might give it a try while I wait for the test device they promised.

Hi Sunseeker2k5,

Thanks for all the work you've put into investigating this issue, you are right, the USB standards committee really dropped the ball when it comes to the USB3.x specs. There are some USB 3.1 which do communicate @ 10000M, but it seems that most only communicate @ 5000M.

I'm confused as to why your adapter has the reduced 3.3 Tx/Rx rate in the original post, as the USB is @ 10000M, but then I get the same on my 11th Gen Win laptop too.

This is the no brand RTL8157 I'm using:
https://www.aliexpress.com/item/100...order_list.order_list_main.107.65471802vUaI76

But to be honest I also have the WisPi model and am unable to see any difference, regardless of which PC they are used on:
https://www.aliexpress.com/item/100...order_list.order_list_main.188.65471802vUaI76

When I have some time I'll start investigating the USB power drawn by these adapters because I'm sure that is key to the stability issues.

All the best out there

DerekG
 
Power and chipset were the two items cited by Wavlink customer support as well.
Provided that i tried it on 2 different platforms : AMD (3700x on x570) and Intel (N100) I don't think it was the chipset.
Which could boil it down to the power as in both cases power was provided by the USB-C port itself.