]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: Base ECVF devlink port attrs from 0
authorDaniel Jurgens <danielj@nvidia.com>
Wed, 20 Aug 2025 13:32:02 +0000 (16:32 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:50 +0000 (16:28 +0200)
commitdacf1ca11735fafe8c2ee72ee2f01578b3576360
tree084ef49a4bd1e510ae632b0db9bb1671d1e752d1
parentc71a3e2b02e7fa715c1a8c459c3f20650b05e180
net/mlx5: Base ECVF devlink port attrs from 0

[ Upstream commit bc17455bc843b2f4b206e0bb8139013eb3d3c08b ]

Adjust the vport number by the base ECVF vport number so the port
attributes start at 0. Previously the port attributes would start 1
after the maximum number of host VFs.

Fixes: dc13180824b7 ("net/mlx5: Enable devlink port for embedded cpu VF vports")
Signed-off-by: Daniel Jurgens <danielj@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Link: https://patch.msgid.link/20250820133209.389065-2-mbloch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/esw/devlink_port.c