Re: git: 1b1fb628a1af - main - Quirk Realtek RTL8153 to config#1 so if_cdce claims it. Works much better.

From: Charlie Li <vishwin_at_freebsd.org>
Date: Tue, 23 Dec 2025 15:11:41 UTC
Mark Millard wrote:
> On Dec 22, 2025, at 15:36, Poul-Henning Kamp <phk@phk.freebsd.dk> 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 ?
>>
This would be a good idea. After if_cdce started claiming my own 
dongle/USB hub, IPv6 via SLAAC (ie rtsol) stopped working.
>> 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
> 
> [snip]
> 
> # 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
> . . .
> I have one of these.

-- 
Charlie Li
...nope, still don't have an exit line.