net/mlx5e: E-Switch, Register devcom device with switch id key
authorRoi Dayan <roid@nvidia.com>
Mon, 22 May 2023 15:16:50 +0000 (18:16 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 27 Jul 2023 18:37:28 +0000 (11:37 -0700)
commit1161d22ded072335c950723af2f21fd52ba47cbb
treec08abfabed7bd45e7f8a0708f89bfd8840484a6c
parent88d162b479815f5d6b6a4ff5fdb07aec9dc6280c
net/mlx5e: E-Switch, Register devcom device with switch id key

Register devcom devices with switch id instead of guid.
Devcom interface is used to sync between ports in the eswitch,
e.g. Adding miss rules between the ports.
New eswitch devices could have the same guid but a different
switch id so its more correct to group according to switch id
which is the identifier if the ports are on the same eswitch.

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