Hey Guys.
Finally took the plunge and converted one of my Pis to a OpenWRT Router.
I’ve got an USB3 - USB to Ethernet based on a Realtek Chipset for WAN. And Built in Ethernet for LAN.
It’s all working well but the performance of the WAN is around 220-240 Mb/s vs 940+- Mb/s if I hit the ISP ONT directly and bypass the Pi
I know the pi4 is more than capable of gigabit Ethernet. Can one one provide some guidance. I suspect the old driver that ships for the Realtek chipset is to blame since it only seems to connect at 480mbs(USB2.0) but the actual device is on the USB 3.0 hub. And is a USB 3.0 device. Was tested prior on other OSs.
Here's some output from OpenWRT
[ 1090.370910] usb 1-1.2: USB disconnect, device number 5
[ 1106.510098] usb 1-1.1: new high-speed USB device number 6 using xhci_hcd
[ 1106.615182] usb 1-1.1: New USB device found, idVendor=0bda, idProduct=8153, bcdDevice=30.00
[ 1106.623560] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[ 1106.630892] usb 1-1.1: Product: USB 10/100/1000 LAN
[ 1106.635785] usb 1-1.1: Manufacturer: Realtek
[ 1106.640068] usb 1-1.1: SerialNumber: 000001
[ 1106.726407] usb 1-1.1: reset high-speed USB device number 6 using xhci_hcd
[ 1106.867092] r8152 1-1.1:1.0 eth1: v1.10.11
[ 1110.833472] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[ 1110.840210] r8152 1-1.1:1.0 eth1: carrier on
[ 1214.300303] bcmgenet fd580000.ethernet eth0: Link is Down
[ 1214.306086] br-lan: port 1(eth0) entered disabled state
[ 1243.996965] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 1244.005214] br-lan: port 1(eth0) entered blocking state
[ 1244.010457] br-lan: port 1(eth0) entered forwarding state
root@OpenWrt:~# cat /sys/kernel/debug/usb/devices | grep -C13 r8152
P: Vendor=2109 ProdID=3431 Rev= 4.21
S: Product=USB2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=256ms
T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 6 Spd=480 MxCh= 0
D: Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 2
P: Vendor=0bda ProdID=8153 Rev=30.00
S: Manufacturer=Realtek
S: Product=USB 10/100/1000 LAN
S: SerialNumber=000001
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=350mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=00 Driver=r8152
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 2 Ivl=16ms
C: #Ifs= 2 Cfg#= 2 Atr=a0 MxPwr=350mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=06 Prot=00 Driver=
E: Ad=83(I) Atr=03(Int.) MxPS= 16 Ivl=16ms
I: If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 Driver=
I: If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=5000 MxCh= 4
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
```Preformatted text
Bus 002 Device 001: ID 1d6b:0003 Linux 5.4.143 xhci-hcd xHCI Host Controller
Bus 001 Device 006: ID 0bda:8153 Realtek USB 10/100/1000 LAN
Bus 001 Device 002: ID 2109:3431 USB2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.143 xhci-hcd xHCI Host Controller