Skip to content

Commit 02e7d13

Browse files
PatrisiousHaddadrleon
authored andcommitted
RDMA/mlx5: Change the key being sent for MPV device affiliation
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. Fixes: 0d29371 ("RDMA/mlx5: Send events from IB driver about device affiliation state") Signed-off-by: Patrisious Haddad <[email protected]> Link: https://lore.kernel.org/r/ac7e66357d963fc68d7a419515180212c96d137d.1697705185.git.leon@kernel.org Signed-off-by: Leon Romanovsky <[email protected]>
1 parent 9040c0d commit 02e7d13

File tree

1 file changed

+1
-1
lines changed
  • drivers/infiniband/hw/mlx5

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/mlx5/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3267,7 +3267,7 @@ static bool mlx5_ib_bind_slave_port(struct mlx5_ib_dev *ibdev,
32673267

32683268
mlx5_ib_init_cong_debugfs(ibdev, port_num);
32693269

3270-
key = ibdev->ib_dev.index;
3270+
key = mpi->mdev->priv.adev_idx;
32713271
mlx5_core_mp_event_replay(mpi->mdev,
32723272
MLX5_DRIVER_EVENT_AFFILIATION_DONE,
32733273
&key);

0 commit comments

Comments
 (0)