RDMA/mlx5: Use strict get/set operations for obj_id
authorYishai Hadas <yishaih@nvidia.com>
Wed, 30 Dec 2020 13:01:21 +0000 (15:01 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 19 Jan 2021 14:40:54 +0000 (10:40 -0400)
commit1368ead04c361bb4595ace9122c79dd75e54a650
tree6d67945e9a7f9bb934c728eaa8eef2ac424414b5
parent8798e4ad0abe0ba1221928a46561981c510be0c6
RDMA/mlx5: Use strict get/set operations for obj_id

Use strict get/set operations for obj_id based on the specific object
type. This comes to prevent any miss match between the general header to
the legacy header commands.

Link: https://lore.kernel.org/r/20201230130121.180350-4-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