Skip to content

Commit 75bdfe7

Browse files
maorgottliebgregkh
authored andcommitted
RDMA/mlx5: Recover from fatal event in dual port mode
[ Upstream commit 97f30d3 ] When there is fatal event on the slave port, the device is marked as not active. We need to mark it as active again when the slave is recovered to regain full functionality. Fixes: d69a24e ("IB/mlx5: Move IB event processing onto a workqueue") Link: https://lore.kernel.org/r/8906754455bb23019ef223c725d2c0d38acfb80b.1620711734.git.leonro@nvidia.com Signed-off-by: Maor Gottlieb <maorg@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 8170c20 commit 75bdfe7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • drivers/infiniband/hw/mlx5

‎drivers/infiniband/hw/mlx5/main.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4762,6 +4762,7 @@ static void *mlx5_ib_add_slave_port(struct mlx5_core_dev *mdev)
47624762

47634763
if (bound) {
47644764
rdma_roce_rescan_device(&dev->ib_dev);
4765+
mpi->ibdev->ib_active = true;
47654766
break;
47664767
}
47674768
}

0 commit comments

Comments
 (0)