On Fri, Nov 20, 2026 at 09:59:57AM +0200, Tariq Toukan wrote:
> From: Shay Drory <sha…@nvidia.com>
>
> A non-PF function's self-port (its own uplink netdev) was always
> registered with DEVLINK_PORT_FLAVOUR_VIRTUAL, which doesn't carries
> switch_id. Consequently a function that acts as an eswitch manager - a
> VF (or SF) running its own nested eswitch - exposed no phys_switch_id on
> its uplink netdev, so it could not be grouped with the representors it
> manages.
>
> When the function is an eswitch manager, register its self-port with the
> switch_id taken from the system image guid. The uplink netdev is already
> bound to this devlink port, so phys_switch_id is derived by the core,
> and the managed representors - which stamp the same switch_id - group
> with it.
>
> Signed-off-by: Shay Drory <sha…@nvidia.com>
> Reviewed-by: Moshe Shemesh <mos…@nvidia.com>
> Reviewed-by: Mark Bloch <mblo…@nvidia.com>
> Signed-off-by: Tariq Toukan <tari…@nvidia.com>
Reviewed-by: Simon Horman <hor…@kernel.org>