diff options
author | Petr Pavlu <petr.pavlu@suse.com> | 2023-08-21 15:12:21 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-08-23 08:25:28 +0100 |
commit | c9452b8fd2ec249fa61e8a36726bde3af60a86d4 (patch) | |
tree | 8b9a994e382f0bf413844e84bcc575d28cac1061 /drivers/infiniband | |
parent | e2fb47d4eb5cd245c38c8c57d969ac6b12efc764 (diff) | |
download | linux-stable-c9452b8fd2ec249fa61e8a36726bde3af60a86d4.tar.gz linux-stable-c9452b8fd2ec249fa61e8a36726bde3af60a86d4.tar.bz2 linux-stable-c9452b8fd2ec249fa61e8a36726bde3af60a86d4.zip |
mlx4: Avoid resetting MLX4_INTFF_BONDING per driver
The mlx4_core driver has a logic that allows a sub-driver to set the
MLX4_INTFF_BONDING flag which then causes that function mlx4_do_bond()
asks the sub-driver to fully re-probe a device when its bonding
configuration changes.
Performing this operation is disallowed in mlx4_register_interface()
when it is detected that any mlx4 device is multifunction (SRIOV). The
code then resets MLX4_INTFF_BONDING in the driver flags.
Move this check directly into mlx4_do_bond(). It provides a better
separation as mlx4_core no longer directly modifies the sub-driver flags
and it will allow to get rid of explicitly keeping track of all mlx4
devices by the intf.c code when it is switched to an auxiliary bus.
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Tested-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Acked-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband')
0 files changed, 0 insertions, 0 deletions