diff options
author | Yishai Hadas <yishaih@mellanox.com> | 2020-06-30 12:39:13 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2020-07-06 19:50:33 -0300 |
commit | 45ec21c971eddfb5e8e953e49a9dbe780f4a4997 (patch) | |
tree | 75c1a754745f0b3e01be20c649274d79a97702e5 /include/uapi/rdma/mlx5_user_ioctl_cmds.h | |
parent | 1c8fb1ea5a1dbd2159e78fa580aaffb001794cfa (diff) | |
download | linux-45ec21c971eddfb5e8e953e49a9dbe780f4a4997.tar.bz2 |
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>
Diffstat (limited to 'include/uapi/rdma/mlx5_user_ioctl_cmds.h')
0 files changed, 0 insertions, 0 deletions