net/mlx5e: E-Switch, Use xarray for devcom paired device index
authorRoi Dayan <roid@nvidia.com>
Sun, 28 May 2023 09:11:47 +0000 (12:11 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 23 Jun 2023 19:27:33 +0000 (12:27 -0700)
commit70c36438393546be0bbfd001d043a08e8ff611e9
treef600ba283124181d02556ade7320fb39b88adb62
parent1552e9b51810761881f7438d26c9b2dad171e423
net/mlx5e: E-Switch, Use xarray for devcom paired device index

To allow devcom events on E-Switch that is not a vport group manager,
use vhca id as an index instead of device index which might be shared
between several E-Switches. for example SF and its PF.

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/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c