summaryrefslogtreecommitdiff
path: root/include/uapi/rdma/mlx5_user_ioctl_verbs.h
diff options
context:
space:
mode:
authorYishai Hadas <yishaih@mellanox.com>2019-01-22 08:29:57 +0200
committerJason Gunthorpe <jgg@mellanox.com>2019-01-29 13:33:00 -0700
commita124edba26270697540f1058bfcd490c1c65b116 (patch)
tree9ef7af21b260e6b0b8fbeb46ca203cbabdbe1f9c /include/uapi/rdma/mlx5_user_ioctl_verbs.h
parent6bf8f22aea0ddd93af822aed8afeeee4acdf7694 (diff)
IB/mlx5: Introduce async DEVX obj query API
Introduce async DEVX obj query API to get the command response back to user space once it's ready without blocking when calling the firmware. The event's data includes a header with some meta data then the firmware output command data. The header includes: - The input 'wr_id' to let application recognizing the response. The input FD attribute is used to have the event data ready on. Downstream patches from this series will implement the file ops to let application read it. Signed-off-by: Yishai Hadas <yishaih@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 4ef62c0e8452..4a701033b93f 100644
--- a/include/uapi/rdma/mlx5_user_ioctl_verbs.h
+++ b/include/uapi/rdma/mlx5_user_ioctl_verbs.h
@@ -51,5 +51,10 @@ enum mlx5_ib_uapi_flow_action_packet_reformat_type {
MLX5_IB_UAPI_FLOW_ACTION_PACKET_REFORMAT_TYPE_L2_TO_L3_TUNNEL = 0x3,
};
+struct mlx5_ib_uapi_devx_async_cmd_hdr {
+ __aligned_u64 wr_id;
+ __u8 out_data[];
+};
+
#endif