net/mlx5: Fix the macro for accessing EC VF vports
authorDaniel Jurgens <danielj@nvidia.com>
Tue, 13 Jun 2023 19:26:43 +0000 (22:26 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 16 Jun 2023 19:02:08 +0000 (12:02 -0700)
commitb3bd68925ebb20942d448405351cf43cac9676a7
tree9f3e43619f2a95abde69560e543808654dc9c72e
parentc8013a1f714f6d9f2d8d673177a824c6b9653218
net/mlx5: Fix the macro for accessing EC VF vports

The last value is not set correctly. This results in representors not
being created for all EC VFs when the base value is higher than 0.

Fixes: a7719b29a821 ("net/mlx5: Add management of EC VF vports")
Signed-off-by: Daniel Jurgens <danielj@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h