linux_dsm_epyc7002/drivers/infiniband
Yishai Hadas 45ec21c971 RDMA/mlx5: Refactor mlx5_ib_alloc_ucontext() response
Refactor mlx5_ib_alloc_ucontext() to set its response fields in a
cleaner way.

It includes,
- Move the relevant code to a self contained function.
- Calculate the response length once and drop redundant code all around.
- Reuse previously set ucontext fields once preparing the response.

The self contained function will be used in next patch as part of
implementing the query ucontext functionality.

Link: https://lore.kernel.org/r/20200630093916.332097-5-leon@kernel.org
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-07-06 19:50:33 -03:00
..
core IB/uverbs: Expose UAPI to query ucontext 2020-07-06 19:50:33 -03:00
hw RDMA/mlx5: Refactor mlx5_ib_alloc_ucontext() response 2020-07-06 19:50:33 -03:00
sw RDMA: Remove the udata parameter from alloc_mr callback 2020-07-06 19:25:53 -03:00
ulp Merge branch 'mlx5_ipoib_qpn' into rdma.git for-next 2020-07-06 14:29:58 -03:00
Kconfig IB/uverbs: Enable CQ ioctl commands by default 2020-07-06 19:50:33 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00