linux/drivers/infiniband/hw
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
..
bnxt_re RDMA: Remove the udata parameter from alloc_mr callback 2020-07-06 19:25:53 -03:00
cxgb4 IB/uverbs: Set IOVA on IB MR in uverbs layer 2020-07-06 19:50:33 -03:00
efa RDMA/efa: Report host information to the device 2020-05-21 10:05:00 -03:00
hfi1 IB/hfi1: Convert PCIBIOS_* errors to generic -E* errors 2020-06-30 13:27:14 -03:00
hns RDMA: Remove the udata parameter from alloc_mr callback 2020-07-06 19:25:53 -03:00
i40iw RDMA: Remove the udata parameter from alloc_mr callback 2020-07-06 19:25:53 -03:00
mlx4 IB/uverbs: Set IOVA on IB MR in uverbs layer 2020-07-06 19:50:33 -03:00
mlx5 RDMA/mlx5: Refactor mlx5_ib_alloc_ucontext() response 2020-07-06 19:50:33 -03:00
mthca treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
ocrdma RDMA: Remove the udata parameter from alloc_mr callback 2020-07-06 19:25:53 -03:00
qedr RDMA: Remove the udata parameter from alloc_mr callback 2020-07-06 19:25:53 -03:00
qib treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
usnic treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
vmw_pvrdma RDMA: Remove the udata parameter from alloc_mr callback 2020-07-06 19:25:53 -03:00
Makefile RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00