RDMA/mlx5: Expose UAPI to query DM
authorMaor Gottlieb <maorg@nvidia.com>
Sun, 11 Apr 2021 12:29:24 +0000 (15:29 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 13 Apr 2021 22:36:37 +0000 (19:36 -0300)
commit18731642d4e1f73e446710389d3b01233d6fbc78
tree205fcbfb00629a13af55f4169540935269e64159
parentcea85fa5dbc2e0206b58095c0c12ff035b11d129
RDMA/mlx5: Expose UAPI to query DM

Expose UAPI to query MEMIC DM, this will let user space application
that didn't allocate the DM but has access to by owning the matching
command FD to retrieve its information.

Link: https://lore.kernel.org/r/20210411122924.60230-8-leon@kernel.org
Signed-off-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/dm.c
drivers/infiniband/hw/mlx5/dm.h
include/uapi/rdma/mlx5_user_ioctl_cmds.h