net/mlx5e: E-Switch, Allow get vport api if esw exists
authorRoi Dayan <roid@nvidia.com>
Sun, 2 Apr 2023 11:19:54 +0000 (14:19 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 19 May 2023 17:50:29 +0000 (10:50 -0700)
commit99db5669f6635a9719beb2e78ebf5887cde03a26
treebd41ac280055fb959c2ac23c5c8ad6f98b7c0123
parentc97c9fe48ae3ccca75fb6001a3bd2bfcb094dbd7
net/mlx5e: E-Switch, Allow get vport api if esw exists

We could have an esw manager device which is not a vport group manager.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c