RDMA/mlx5: Change the key being sent for MPV device affiliation
Subsystems (2)
PATCH 1/1 RDMA/mlx5: Change the key being sent for MPV device affiliation
From: Patrisious Haddad <[email protected]>
Change the key that we send from IB driver to EN driver regarding the MPV device affiliation, since at that stage the IB device is not yet initialized, so its index would be zero for different IB devices and cause wrong associations between unrelated master and slave devices.
Instead use a unique value from inside the core device which is already initialized at this stage.
--- drivers/infiniband/hw/mlx5/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/mlx5/main.c +1 -1
@@ -3298,7 +3298,7 @@ static bool mlx5_ib_bind_slave_port(struct mlx5_ib_dev *ibdev,mlx5_ib_init_cong_debugfs (ibdev, port_num); - key = ibdev->ib_dev.index; + key = mpi->mdev->priv.adev_idx;mlx5_core_mp_event_replay (mpi->mdev,MLX5_DRIVER_EVENT_AFFILIATION_DONE , &key);
Signature · 1 line
2.41.0
Leon Romanovsky
AppliedQuoted 9 lines · Leon Romanovsky
Change the key that we send from IB driver to EN driver regarding the MPV device affiliation, since at that stage the IB device is not yet initialized, so its index would be zero for different IB devices and cause wrong associations between unrelated master and slave devices.
Instead use a unique value from inside the core device which is already initialized at this stage.
[...]
Applied, thanks!
[1/1] RDMA/mlx5: Change the key being sent for MPV device affiliation
https://git.kernel.org/rdma/rdma/c/02e7d139e5e24a
Best regards,
Signature · 1 line
Leon Romanovsky <[email protected]>