bb-qq / r8152

Synology DSM driver for Realtek RTL8152/RTL8153/RTL8156 based adapters
GNU General Public License v2.0
2.06k stars 184 forks source link

[Works] DS416Play with ULT-WIIQ USB 2.5Gb #328

Open JBPhoenix opened 1 year ago

JBPhoenix commented 1 year ago

Description of the problem

Working fine on DS416Play's front port with ULT-WIIQ USB 2.5Gb.

Description of your products

  • DS416Play
    • Linux DS416Play 3.10.108 #42962 SMP Mon May 29 14:35:41 CST 2023 x86_64 GNU/Linux synology_braswell_416play
    • DSM 7.1.1-42962 Update 6
  • USB 2.5G Ethernet Adapter ULT-WIIQ. Amazon UK: B09DZ2L8XN

Description of your environment

  • connect directly to a Windows 10 PC
    • PC: Realtek Gaming 2.5GbE Family Controller - 2019 X570 board so I think just a standard RTL8125? Driver Version 10.65.421.2023
  • Cat 6

Output of lsusb command

|__usb1          1d6b:0002:0310 09  2.00  480MBit/s 0mA 1IF  (xhci_hcd 0000:00:14.0) hub
  |__1-5         f400:f400:0100 00  2.00  480MBit/s 200mA 1IF  (Synology DiskStation 65006350CCE41654)
|__usb2          1d6b:0003:0310 09  3.00 5000MBit/s 0mA 1IF  (xhci_hcd 0000:00:14.0) hub
  |__2-2         0bda:8156:3104 00  3.20 5000MBit/s 256mA 1IF  (Realtek USB 10/100/1G/2.5G LAN 4013000001)
|__usb3          1d6b:0002:0310 09  2.00  480MBit/s 0mA 1IF  (Linux 3.10.108 etxhci_hcd-170202 Etron xHCI Host Controller 0000:04:00.0) hub
  |__3-1         051d:0002:0090 00  2.00   12MBit/s 2mA 1IF  (American Power Conversion Back-UPS ES 850G2 FW:938.a2 .I USB FW:a2  5B2124T35043  )
|__usb4          1d6b:0003:0310 09  3.00 5000MBit/s 0mA 1IF  (Linux 3.10.108 etxhci_hcd-170202 Etron xHCI Host Controller 0000:04:00.0) hub

Output of ifconfig -a command

[snip]
eth2      Link encap:Ethernet  HWaddr 00:E0:4C:68:01:52
          inet addr:169.254.234.76  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::2e0:4cff:fe68:152/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:9000  Metric:1
          RX packets:2098475 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2486674 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14429698354 (13.4 GiB)  TX bytes:17265218770 (16.0 GiB)
[snip]

So far so good. Warm to the touch after heavy use but not too warm. Jumbo frames (9K) enabled easily on both sides.

Iperf

Gets just shy of 2.5Gbits/s either direction with the front port.

Send from PC

./iperf3 -c 169.254.234.76
Connecting to host 169.254.234.76, port 5201
[  4] local 169.254.252.117 port 61828 connected to 169.254.234.76 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   293 MBytes  2.46 Gbits/sec
[  4]   1.00-2.00   sec   294 MBytes  2.46 Gbits/sec
[  4]   2.00-3.00   sec   287 MBytes  2.41 Gbits/sec
[  4]   3.00-4.00   sec   292 MBytes  2.45 Gbits/sec
[  4]   4.00-5.00   sec   275 MBytes  2.30 Gbits/sec
[  4]   5.00-6.00   sec   288 MBytes  2.42 Gbits/sec
[  4]   6.00-7.00   sec   283 MBytes  2.37 Gbits/sec
[  4]   7.00-8.00   sec   287 MBytes  2.41 Gbits/sec
[  4]   8.00-9.00   sec   289 MBytes  2.42 Gbits/sec
[  4]   9.00-10.00  sec   284 MBytes  2.38 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  2.80 GBytes  2.41 Gbits/sec                  sender
[  4]   0.00-10.00  sec  2.80 GBytes  2.41 Gbits/sec                  receiver

send from NAS

./iperf3 -c 169.254.234.76 -R
Connecting to host 169.254.234.76, port 5201
Reverse mode, remote host 169.254.234.76 is sending
[  4] local 169.254.252.117 port 61424 connected to 169.254.234.76 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   283 MBytes  2.38 Gbits/sec
[  4]   1.00-2.00   sec   295 MBytes  2.47 Gbits/sec
[  4]   2.00-3.00   sec   295 MBytes  2.47 Gbits/sec
[  4]   3.00-4.00   sec   294 MBytes  2.46 Gbits/sec
[  4]   4.00-5.00   sec   290 MBytes  2.43 Gbits/sec
[  4]   5.00-6.00   sec   295 MBytes  2.48 Gbits/sec
[  4]   6.00-7.00   sec   293 MBytes  2.46 Gbits/sec
[  4]   7.00-8.00   sec   291 MBytes  2.44 Gbits/sec
[  4]   8.00-9.00   sec   295 MBytes  2.48 Gbits/sec
[  4]   9.00-10.00  sec   295 MBytes  2.48 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  2.86 GBytes  2.45 Gbits/sec    0             sender
[  4]   0.00-10.00  sec  2.86 GBytes  2.45 Gbits/sec                  receiver

Less impressive with a back port: a bit flakier (did reset itself once) & slower: USB receives at 1.87Gbits/s and sends at 1.63Gbits/s lsusb 3 & 4 being on an Etron xHCI Host would explain the perf loss

Thanks for the driver bb-qq!