Searched hist:"45 ec21c971eddfb5e8e953e49a9dbe780f4a4997" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | main.c | diff 45ec21c971eddfb5e8e953e49a9dbe780f4a4997 Tue Jun 30 04:39:13 CDT 2020 Yishai Hadas <yishaih@mellanox.com> 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>
|