summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorYishai Hadas <yishaih@mellanox.com>2020-06-30 12:39:13 +0300
committerJason Gunthorpe <jgg@nvidia.com>2020-07-06 19:50:33 -0300
commit45ec21c971eddfb5e8e953e49a9dbe780f4a4997 (patch)
tree75c1a754745f0b3e01be20c649274d79a97702e5 /include/uapi
parent1c8fb1ea5a1dbd2159e78fa580aaffb001794cfa (diff)
downloadlinux-stable-45ec21c971eddfb5e8e953e49a9dbe780f4a4997.tar.gz
linux-stable-45ec21c971eddfb5e8e953e49a9dbe780f4a4997.tar.bz2
linux-stable-45ec21c971eddfb5e8e953e49a9dbe780f4a4997.zip
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')
0 files changed, 0 insertions, 0 deletions