[Bug 256675] [usb] [if_ure] device gets stuck in link down after a few linkup/linkdown events

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 17 Jun 2021 15:33:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256675

            Bug ID: 256675
           Summary: [usb] [if_ure] device gets stuck in link down after a
                    few linkup/linkdown events
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: usb
          Assignee: usb@FreeBSD.org
          Reporter: knan-bfo@modirum.com

We've bought this device and have some issues with it:

https://www.dustinhome.no/product/5011204717/adapter-usb-30-4-x-gigabit-lan

It's a quad RTL8153 device with an internal usb hub.

ugen0.5: <vendor 0x04b4 product 0x6502> at usbus0, cfg=0 md=HOST spd=HIGH
(480Mbps) pwr=SAVE (0mA)
ugen0.6: <vendor 0x04b4 product 0x6500> at usbus0, cfg=0 md=HOST spd=SUPER
(5.0Gbps) pwr=SAVE (0mA)
ugen0.7: <Realtek USB 10/100/1000 LAN> at usbus0, cfg=0 md=HOST spd=SUPER
(5.0Gbps) pwr=ON (72mA)
ugen0.8: <Realtek USB 10/100/1000 LAN> at usbus0, cfg=0 md=HOST spd=SUPER
(5.0Gbps) pwr=ON (72mA)
ugen0.9: <Realtek USB 10/100/1000 LAN> at usbus0, cfg=0 md=HOST spd=SUPER
(5.0Gbps) pwr=ON (72mA)
ugen0.10: <Realtek USB 10/100/1000 LAN> at usbus0, cfg=0 md=HOST spd=SUPER
(5.0Gbps) pwr=ON (72mA)

It shows up as four ure devices.

After some time plugging/unplugging ethernet cables, one or more of the devices
gets stuck in "no carrier" and media: none. At that time, when running
"ifconfig", there is a delay in the output between "ether" and the next line
... a few hundred ms I would guess.

ue0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
       
options=68009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        ether 00:e0:4c:68:9b:67
        media: Ethernet autoselect (none <half-duplex>)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>


This happens much faster if you put the devices in a lagg, from the increased
polling frequency I would guess. Not sure you even need to plug/unplug, may
happen from the polling on its own.

Negotiation and link up/down still seems to happen, just not visible from the
operating system anymore.

The device is still visible with usbconfig, and doesn't completely disappear.
It just seems unresponsive.

-- 
You are receiving this mail because:
You are the assignee for the bug.