net/mlx5: DR, update query of HCA caps for EC VFs
authorDaniel Jurgens <danielj@nvidia.com>
Tue, 13 Jun 2023 19:30:49 +0000 (22:30 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 16 Jun 2023 19:02:08 +0000 (12:02 -0700)
commit8bbe544e03809514e441994b4b849fdbeadd0068
tree324297cefc77136fe73294103f905c34022eb338
parentb3bd68925ebb20942d448405351cf43cac9676a7
net/mlx5: DR, update query of HCA caps for EC VFs

This change is needed to use EC VFs with metadata based steering.

There was an assumption that vport was equal to function ID. That's
not the case for EC VF functions. Adjust to function ID and set the
ec_vf_function bit accordingly.

Fixes: 9ac0b128248e ("net/mlx5: Update vport caps query/set for EC VFs")
Signed-off-by: Daniel Jurgens <danielj@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_cmd.c
drivers/net/ethernet/mellanox/mlx5/core/vport.c