RDMA/mlx5: Implement the query ucontext functionality
authorYishai Hadas <yishaih@mellanox.com>
Tue, 30 Jun 2020 09:39:14 +0000 (12:39 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 6 Jul 2020 22:50:33 +0000 (19:50 -0300)
commit0fb556b2b58d6b8336c94379042bad2a8512af1a
treec809e2f226a8b0f8ce7f36e28c6837db98c30812
parent45ec21c971eddfb5e8e953e49a9dbe780f4a4997
RDMA/mlx5: Implement the query ucontext functionality

Implement the query ucontext functionality by returning the original
ucontext data as part of an extra mlx5 attribute that holds the driver
UAPI response.

Link: https://lore.kernel.org/r/20200630093916.332097-6-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>
drivers/infiniband/core/uverbs_ioctl.c
drivers/infiniband/hw/mlx5/main.c
include/uapi/rdma/mlx5_user_ioctl_cmds.h