]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita6a81345ad23bbce2ac7e96a10dd90ac64d901ef
tree8daf6349b5b2b32ee9ca9338cec03c429b74f0f8
parent0ec590775d1e7521ecca029e0b3dbccb5b71a706
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: 7e8654ab41f5 ("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