Monday, September 28, 2020

Re: Issues with TP-Link UE300

Hi,

This seems to work much better!
Transferring files via NFS, I could sustain from 118 to 148Mbps.

Kernel says:
ure0 at uhub0 port 15 configuration 1 interface 0 "TP-LINK USB 10/100/1000 LAN" rev 3.00/30.00 addr 5
ure0: RTL8153 (0x5c20), address d0:37:45:xx:xx:xx
rgephy0 at ure0 phy 0: RTL8251 PHY, rev. 0

ifconfig says:
ure0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500

usbdev says:
addr 05: 2357:0601 TP-LINK, USB 10/100/1000 LAN
super speed, power 64 mA, config 1, rev 30.00, iSerial 000001000000
driver: ure0

iperf3 says:
[ 5] 0.00-10.00 sec 618 MBytes 518 Mbits/sec sender
[ 5] 0.00-10.13 sec 618 MBytes 512 Mbits/sec receiver

Thank you very much.

On Mon, Sep 28, 2020 at 10:30:16AM +0800, Kevin Lo wrote:
> On Sun, Sep 27, 2020 at 11:43:13PM +0200, Joel Carnat wrote:
> >
> > Hi,
> >
> > I have plugged a TP-Link UE300 on my ThinkPad X260 running OpenBSD -snapshot
> > and it seems I can't get more than 100Mbps.
> >
> > The dongle attaches and get an IP address. But the speed seems limited.
> > Same behaviour when attached to the USB3 port of my APU4D4 (running 6.7).
> > When plugged in a MacBook Pro (running macos), it gets Gbps speed.
> >
> > I have noticed that it gets attached to cdce0;
> > I thought the RTL8153 chipset would give me an ure0 device.
> >
> > Is this expected?
> > Is there something I can do to get Gbps out of this device?
>
> Please try this diff, thanks.
>
> Index: sys/dev/usb/if_ure.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/usb/if_ure.c,v
> retrieving revision 1.18
> diff -u -p -u -p -r1.18 if_ure.c
> --- sys/dev/usb/if_ure.c 4 Aug 2020 14:45:46 -0000 1.18
> +++ sys/dev/usb/if_ure.c 28 Sep 2020 02:24:40 -0000
> @@ -76,7 +76,8 @@ const struct usb_devno ure_devs[] = {
> { USB_VENDOR_LENOVO, USB_PRODUCT_LENOVO_DOCK_ETHERNET },
> { USB_VENDOR_REALTEK, USB_PRODUCT_REALTEK_RTL8152 },
> { USB_VENDOR_REALTEK, USB_PRODUCT_REALTEK_RTL8153 },
> - { USB_VENDOR_REALTEK, USB_PRODUCT_REALTEK_RTL8156 }
> + { USB_VENDOR_REALTEK, USB_PRODUCT_REALTEK_RTL8156 },
> + { USB_VENDOR_TPLINK, USB_PRODUCT_TPLINK_UE300 }
> };
>
> int ure_match(struct device *, void *, void *);
> Index: sys/dev/usb/usbdevs
> ===================================================================
> RCS file: /cvs/src/sys/dev/usb/usbdevs,v
> retrieving revision 1.720
> diff -u -p -u -p -r1.720 usbdevs
> --- sys/dev/usb/usbdevs 3 Aug 2020 14:25:44 -0000 1.720
> +++ sys/dev/usb/usbdevs 28 Sep 2020 02:24:40 -0000
> @@ -4317,6 +4317,7 @@ product TPLINK RTL8192EU 0x0107 RTL8192E
> product TPLINK RTL8192EU_2 0x0108 RTL8192EU
> product TPLINK RTL8192EU_3 0x0109 RTL8192EU
> product TPLINK RTL8188EUS 0x010c RTL8188EUS
> +product TPLINK UE300 0x0601 UE300 Ethernet
>
> /* Trek Technology products */
> product TREK THUMBDRIVE 0x1111 ThumbDrive
> Index: sys/dev/usb/usbdevs.h
> ===================================================================
> RCS file: /cvs/src/sys/dev/usb/usbdevs.h,v
> retrieving revision 1.732
> diff -u -p -u -p -r1.732 usbdevs.h
> --- sys/dev/usb/usbdevs.h 3 Aug 2020 14:25:56 -0000 1.732
> +++ sys/dev/usb/usbdevs.h 28 Sep 2020 02:24:40 -0000
> @@ -1,4 +1,4 @@
> -/* $OpenBSD: usbdevs.h,v 1.732 2020/08/03 14:25:56 deraadt Exp $ */
> +/* $OpenBSD$ */
>
> /*
> * THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
> @@ -4324,6 +4324,7 @@
> #define USB_PRODUCT_TPLINK_RTL8192EU_2 0x0108 /* RTL8192EU */
> #define USB_PRODUCT_TPLINK_RTL8192EU_3 0x0109 /* RTL8192EU */
> #define USB_PRODUCT_TPLINK_RTL8188EUS 0x010c /* RTL8188EUS */
> +#define USB_PRODUCT_TPLINK_UE300 0x0601 /* UE300 Ethernet */
>
> /* Trek Technology products */
> #define USB_PRODUCT_TREK_THUMBDRIVE 0x1111 /* ThumbDrive */
> Index: sys/dev/usb/usbdevs_data.h
> ===================================================================
> RCS file: /cvs/src/sys/dev/usb/usbdevs_data.h,v
> retrieving revision 1.726
> diff -u -p -u -p -r1.726 usbdevs_data.h
> --- sys/dev/usb/usbdevs_data.h 3 Aug 2020 14:25:56 -0000 1.726
> +++ sys/dev/usb/usbdevs_data.h 28 Sep 2020 02:24:40 -0000
> @@ -1,4 +1,4 @@
> -/* $OpenBSD: usbdevs_data.h,v 1.726 2020/08/03 14:25:56 deraadt Exp $ */
> +/* $OpenBSD$ */
>
> /*
> * THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
> @@ -11068,6 +11068,10 @@ const struct usb_known_product usb_known
> {
> USB_VENDOR_TPLINK, USB_PRODUCT_TPLINK_RTL8188EUS,
> "RTL8188EUS",
> + },
> + {
> + USB_VENDOR_TPLINK, USB_PRODUCT_TPLINK_UE300,
> + "UE300 Ethernet",
> },
> {
> USB_VENDOR_TREK, USB_PRODUCT_TREK_THUMBDRIVE,
>

No comments:

Post a Comment