net/mlx5e: Use vhca_id for device index in vport rx rules
authorRoi Dayan <roid@nvidia.com>
Sun, 28 May 2023 07:58:03 +0000 (10:58 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 23 Jun 2023 19:27:33 +0000 (12:27 -0700)
commit1da9f36252d4852205a1990f003549d753320e8c
tree6414cd0664acdadff65629b193a5c94ed1a20353
parent8ec91f5d077c09e72e4e11d701a83eb1f1504ea3
net/mlx5e: Use vhca_id for device index in vport rx rules

Device index is like PF index and limited to max physical ports.
For example, SFs created under PF the device index is the PF device index.
Use vhca_id which gets the FW index per vport, for vport rx rules
and vport pair events.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c