RDMA/mlx5: Get XRCD number directly for the internal use
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 6 Jul 2020 12:27:14 +0000 (15:27 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 6 Jul 2020 22:32:23 +0000 (19:32 -0300)
commitf4375443b7861ca5d93a10dba5ef5a478d5df96a
tree1303c266b70e8ca0ae14db94dc94a5be2a0a1668
parent42a3b153966c9cd9a90f6a669d1ffed7fef2d325
RDMA/mlx5: Get XRCD number directly for the internal use

The mlx5_ib creates XRC domain and uses for creating internal SRQ.
However all that is needed is XRCD number and not full blown ib_xrcd
objects.

Update the code to get and store the number only.

Link: https://lore.kernel.org/r/20200706122716.647338-2-leon@kernel.org
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/qp.c
drivers/infiniband/hw/mlx5/srq.c