net/mlx5: SF: Fix probing active SFs during driver probe phase
authorShay Drory <shayd@nvidia.com>
Thu, 4 Aug 2022 09:38:41 +0000 (12:38 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 22 Nov 2022 02:14:33 +0000 (18:14 -0800)
commit4f57332d6a551185ba729617f04455e83fbe4e41
tree8daf6349b5b2b32ee9ca9338cec03c429b74f0f8
parent61db3d7b99a367416e489ccf764cc5f9b00d62a1
net/mlx5: SF: Fix probing active SFs during driver probe phase

When SF devices and SF port representors are located on different
functions, unloading and reloading of SF parent driver doesn't recreate
the existing SF present in the device.
Fix it by querying SFs and probe active SFs during driver probe phase.

Fixes: 90d010b8634b ("net/mlx5: SF, Add auxiliary device support")
Signed-off-by: Shay Drory <shayd@nvidia.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/sf/dev/dev.c