diff options
author | Yishai Hadas <yishaih@mellanox.com> | 2020-06-30 12:39:14 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2020-07-06 19:50:33 -0300 |
commit | 0fb556b2b58d6b8336c94379042bad2a8512af1a (patch) | |
tree | c809e2f226a8b0f8ce7f36e28c6837db98c30812 /include/uapi/rdma | |
parent | 45ec21c971eddfb5e8e953e49a9dbe780f4a4997 (diff) | |
download | linux-0fb556b2b58d6b8336c94379042bad2a8512af1a.tar.gz linux-0fb556b2b58d6b8336c94379042bad2a8512af1a.tar.bz2 linux-0fb556b2b58d6b8336c94379042bad2a8512af1a.zip |
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>
Diffstat (limited to 'include/uapi/rdma')
-rw-r--r-- | include/uapi/rdma/mlx5_user_ioctl_cmds.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/rdma/mlx5_user_ioctl_cmds.h b/include/uapi/rdma/mlx5_user_ioctl_cmds.h index 8e316ef896b5..496309e8a856 100644 --- a/include/uapi/rdma/mlx5_user_ioctl_cmds.h +++ b/include/uapi/rdma/mlx5_user_ioctl_cmds.h @@ -228,6 +228,10 @@ enum mlx5_ib_flow_matcher_methods { MLX5_IB_METHOD_FLOW_MATCHER_DESTROY, }; +enum mlx5_ib_device_query_context_attrs { + MLX5_IB_ATTR_QUERY_CONTEXT_RESP_UCTX = (1U << UVERBS_ID_NS_SHIFT), +}; + #define MLX5_IB_DW_MATCH_PARAM 0x80 struct mlx5_ib_match_params { |