On Dec 22, 2025, at 15:36, Poul-Henning Kamp <[email protected]> wrote:

--------
Mark Millard writes:


>> ) Care to expand some on what "works much better" refers to?
> 
> I'm currently using a USB-C dock with a realtek 8153 and it
> it was so flakey it was impossible to use.
> 
> After I switched to the cdce driver, it has worked flawlessly.
> 
> As you can see in the file, I previously had the same experience
> also with a Lenovo branded Dock's ethernet.
> 
> I guess it may be necessary to specialize the quirk entry further ?
> 
> My device is:
> 
> ugen0.3: <RTL8153 Gigabit Ethernet Adapter Realtek Semiconductor Corp.> at 
> usbus0, cfg=1 md=HOST spd=SUPER (5.0Gbps) pwr=ON (46mA)
> 
>  bLength = 0x0012 
>  bDescriptorType = 0x0001 
>  bcdUSB = 0x0320 
>  bDeviceClass = 0x0000  <Probed by interface class>
>  bDeviceSubClass = 0x0000 
>  bDeviceProtocol = 0x0000 
>  bMaxPacketSize0 = 0x0009 
>  idVendor = 0x0bda 
>  idProduct = 0x8153 
>  bcdDevice = 0x31fd 
>  iManufacturer = 0x0001  <Realtek>
>  iProduct = 0x0002  <USB 10/100/1000 LAN>
>  iSerialNumber = 0x0007  <DF1300E04C581A90>
>  bNumConfigurations = 0x0002

I got to thinking about it and looked at the
Microsoft Dev Kit 2023 that also uses if_ure
for its built-in Ethernet and has been
working fine:

# dmesg -a | grep RTL
rgephy0: <RTL8251/8153 1000BASE-T media interface> PHY 0 on miibus0
rgephy1: <RTL8251/8153 1000BASE-T media interface> PHY 0 on miibus1

Only 1 shows up in usbconfig's output and only one
external Ethernet port is present. (But ifconfig
does list ue0: and ue1: --with carrier only on ue0: .

# usbconfig -d ugen0.11 dump_all_desc
ugen0.11: <RTL8153 Gigabit Ethernet Adapter Realtek Semiconductor Corp.> at 
usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (72mA)

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0300 
  bDeviceClass = 0x0000  <Probed by interface class>
  bDeviceSubClass = 0x0000 
  bDeviceProtocol = 0x0000 
  bMaxPacketSize0 = 0x0009 
  idVendor = 0x0bda 
  idProduct = 0x8153 
  bcdDevice = 0x3110 
  iManufacturer = 0x0001  <Realtek>
  iProduct = 0x0002  <USB 10/100/1000 LAN>
  iSerialNumber = 0x0006  <011000001>
  bNumConfigurations = 0x0002 
. . .

As for plugging in one of those dongles
somewhere and looking:

# usbconfig -d ugen2.2 dump_all_desc
ugen2.2: <RTL8153 Gigabit Ethernet Adapter Realtek Semiconductor Corp.> at 
usbus2, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (72mA)

  bLength = 0x0012 
  bDescriptorType = 0x0001 
  bcdUSB = 0x0300 
  bDeviceClass = 0x0000  <Probed by interface class>
  bDeviceSubClass = 0x0000 
  bDeviceProtocol = 0x0000 
  bMaxPacketSize0 = 0x0009 
  idVendor = 0x0bda 
  idProduct = 0x8153 
  bcdDevice = 0x3000 
  iManufacturer = 0x0001  <Realtek>
  iProduct = 0x0002  <USB 10/100/1000 LAN>
  iSerialNumber = 0x0006  <000001>
  bNumConfigurations = 0x0002 
. . .


===
Mark Millard
marklmi at yahoo.com


Reply via email to