Re: [PATCH 0/2] net: add USB CDC Ethernet NCSI support and fix unregister UAF

From: Andrew Lunn

Date: Wed Sep 09 2026 - 14:44:03 EST


> Hi Andrew,
>
> Thanks for the review. To clarify the architecture, it looks like this:
>
> [ BMC ] <--(USB)--> [ SMA Controller ] <--(Internal)--> [ Shared NIC (CX9) ]
>
> 1. The USB Interface: Between the BMC and the shared NIC, there is an
> SMA controller. This controller emulates a standard USB CDC Ethernet
> device facing the BMC.
>
> 2. Passthrough (Bypass): The SMA controller acts as a transparent bridge.
> It simply passes through both standard network packets and NCSI
> control packets between the BMC's USB interface and the actual
> shared NIC.
>
> 3. PHY Management: Because of this architecture, the actual 3-port switch
> logic and the physical PHY management are handled entirely by the
> NIC/SMA hardware firmware on the DPU side.

This is the first time i've seen this sort of setup. You should
explain this in the commit message, because it is probably new to
others as well.

> >From the BMC's perspective, it only sees a point-to-point USB CDC Ethernet
> device. The BMC driver does not have direct access to manage the shared
> PHY's link state.

So why is the SMA controller emulator actually reporting the true link
state? Since it is an emulator, why not just say the link is always
up? And ignore any requests from the BMC to change its state? You then
don't need any quirks in the CDC driver. It seems silly to emulator
something and not actually use the fact it is an emulation to hide
away differences to a real device.

Andrew