RDMA/core: Clean ib_alloc_xrcd() and reuse it to allocate XRC domain
authorMaor Gottlieb <maorg@mellanox.com>
Mon, 6 Jul 2020 12:27:15 +0000 (15:27 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 6 Jul 2020 22:32:23 +0000 (19:32 -0300)
commitb73efcb26e2c6d66797c57bed8df13c3718c58cb
tree2f686ea30bc28a3098b73d18ee97358aa689a857
parentf4375443b7861ca5d93a10dba5ef5a478d5df96a
RDMA/core: Clean ib_alloc_xrcd() and reuse it to allocate XRC domain

ib_alloc_xrcd() already does the required initialization, so move the
uverbs to call it and save code duplication, while cleaning the function
argument lists of that function.

Link: https://lore.kernel.org/r/20200706122716.647338-3-leon@kernel.org
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/verbs.c
include/rdma/ib_verbs.h