RDMA/mlx5: Use the correct obj_id upon DEVX TIR creation
authorYishai Hadas <yishaih@nvidia.com>
Wed, 30 Dec 2020 13:01:19 +0000 (15:01 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 19 Jan 2021 14:40:54 +0000 (10:40 -0400)
commit8798e4ad0abe0ba1221928a46561981c510be0c6
tree25fda72fef704220e2725c716859149dad835bad
parentab0da5a57188b80d16d3222236c4e184953a5bb4
RDMA/mlx5: Use the correct obj_id upon DEVX TIR creation

Use the correct obj_id upon DEVX TIR creation by strictly taking the tirn
24 bits and not the general obj_id which is 32 bits.

Fixes: 7efce3691d33 ("IB/mlx5: Add obj create and destroy functionality")
Link: https://lore.kernel.org/r/20201230130121.180350-2-leon@kernel.org
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/devx.c