Re: [PATCH net-next v2 1/2] dpaa2-eth: use the DPMAC id as the devlink physical port number

From: Simon Horman

Date: Thu Oct 01 2026 - 09:22:28 EST


On Mon, Sep 28, 2026 at 01:22:45PM +0200, Vincent Jardin via B4 Relay wrote:
> From: Vincent Jardin <vjardin@xxxxxxx>
>
> dpaa2-eth registers every DPNI as a devlink port of flavour physical
> without setting a port number. All DPAA2 interfaces report the same
> phys_port_name, p0 (see devlink port show).
>
> The DPNI endpoint can change at runtime while the attributes of a
> registered devlink port cannot, so log a warning when it happens.
>
> Another benefit: udev rules can match ATTR{phys_port_name} to name an
> interface based on its DPMAC.
>
> Signed-off-by: Vincent Jardin <vjardin@xxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>