summaryrefslogtreecommitdiff
path: root/include/uapi/rdma/mlx5_user_ioctl_verbs.h
diff options
context:
space:
mode:
authorYishai Hadas <yishaih@mellanox.com>2020-03-24 08:01:39 +0200
committerJason Gunthorpe <jgg@mellanox.com>2020-03-27 12:59:04 -0300
commit342ee59de98a2ecdf15a46849a2534e7c808eb1f (patch)
tree743f06ae39642aafad205a8f81e3e2be0a8705bb /include/uapi/rdma/mlx5_user_ioctl_verbs.h
parenta4da83c215ac4e69ef7ae9ec3ee9ef63a3edafdf (diff)
IB/mlx5: Expose UAR object and its alloc/destroy commands
Expose UAR object and its alloc/destroy commands to be used over the ioctl interface by user space applications. This API supports both BF & NC modes and enables a dynamic allocation of UARs once really needed. As the number of driver objects were limited by the core ones when the merged tree is prepared, had to decrease the number of core objects to enable the new UAR object usage. Link: https://lore.kernel.org/r/20200324060143.1569116-2-leon@kernel.org Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Reviewed-by: Michael Guralnik <michaelgur@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/uapi/rdma/mlx5_user_ioctl_verbs.h')
-rw-r--r--include/uapi/rdma/mlx5_user_ioctl_verbs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/uapi/rdma/mlx5_user_ioctl_verbs.h b/include/uapi/rdma/mlx5_user_ioctl_verbs.h
index b4641a7865f7..3f7a97c28045 100644
--- a/include/uapi/rdma/mlx5_user_ioctl_verbs.h
+++ b/include/uapi/rdma/mlx5_user_ioctl_verbs.h
@@ -77,5 +77,10 @@ enum mlx5_ib_uapi_pp_alloc_flags {
MLX5_IB_UAPI_PP_ALLOC_FLAGS_DEDICATED_INDEX = 1 << 0,
};
+enum mlx5_ib_uapi_uar_alloc_type {
+ MLX5_IB_UAPI_UAR_ALLOC_TYPE_BF = 0x0,
+ MLX5_IB_UAPI_UAR_ALLOC_TYPE_NC = 0x1,
+};
+
#endif