Re: [PATCH net-next v2 2/2] dpaa2-eth: mark DPNIs without a DPMAC as virtual devlink ports

From: Simon Horman

Date: Thu Oct 01 2026 - 09:04:07 EST


On Mon, Sep 28, 2026 at 01:22:46PM +0200, Vincent Jardin via B4 Relay wrote:
> From: Vincent Jardin <vjardin@xxxxxxx>
>
> A DPNI whose endpoint is not a DPMAC has no physical connector: it
> may have no endpoint at all, or be connected to another DPNI or to a
> DPSW port. Until now, such a DPNI was still registered as a physical
> devlink port with number 0, so userspace saw a physical port that does
> not exist.
>
> Register these DPNIs as virtual devlink ports instead. A virtual port
> has no phys_port_name, so only the DPNIs that serve a DPMAC at probe
> time report one, "p<dpmac id>", and those names do not collide.
>
> Signed-off-by: Vincent Jardin <vjardin@xxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>