]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Fix typo in destroy_mkey inbox
authorMark Zhang <markzhang@nvidia.com>
Thu, 11 Mar 2021 14:20:24 +0000 (16:20 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 11 Mar 2021 17:35:48 +0000 (13:35 -0400)
commitbba9e999fc9862ee1f1d44a352ba63ab394ece38
tree37b1f75b07089afb1e1071c2b3f844b1a66ae38a
parent1b8bd930b05ba1f659bccfc6ef406e93916f57ed
RDMA/mlx5: Fix typo in destroy_mkey inbox

Set mkey_index to the correct place when preparing the destroy_mkey inbox,
this will fix the following syndrome:

 mlx5_core 0000:08:00.0: mlx5_cmd_check:782:(pid 980716): DEALLOC_PD(0x801)
 op_mod(0x0) failed, status bad resource state(0x9), syndrome (0x31b635)

Link: https://lore.kernel.org/r/20210311142024.1282004-1-leon@kernel.org
Fixes: 4fdd57e971fa ("RDMA/mlx5: Use strict get/set operations for obj_id")
Reviewed-by: Ido Kalir <idok@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@nvidia.com>
Signed-off-by: Mark Zhang <markzhang@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/devx.c