Re: [PATCH rdma-next 10/11] RDMA/erdma: Add the ABI definitions
From: Yanjun Zhu <hidden>
Date: 2021-12-23 15:46:16
在 2021/12/21 10:48, Cheng Xu 写道:
quoted hunk ↗ jump to hunk
Signed-off-by: Cheng Xu <chengyou@linux.alibaba.com> --- include/uapi/rdma/erdma-abi.h | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 include/uapi/rdma/erdma-abi.hdiff --git a/include/uapi/rdma/erdma-abi.h b/include/uapi/rdma/erdma-abi.h new file mode 100644 index 000000000000..6bcba10c1e41 --- /dev/null +++ b/include/uapi/rdma/erdma-abi.h@@ -0,0 +1,49 @@ +/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR Linux-OpenIB) */ +/* + * Copyright (c) 2020-2021, Alibaba Group. + */ + +#ifndef __ERDMA_USER_H__ +#define __ERDMA_USER_H__ + +#include <linux/types.h> + +#define ERDMA_ABI_VERSION 1
ERDMA_ABI_VERSION should be 2? Zhu Yanjun
+
+struct erdma_ureq_create_cq {
+ u64 db_record_va;
+ u64 qbuf_va;
+ u32 qbuf_len;
+ u32 rsvd0;
+};
+
+struct erdma_uresp_create_cq {
+ u32 cq_id;
+ u32 num_cqe;
+};
+
+struct erdma_ureq_create_qp {
+ u64 db_record_va;
+ u64 qbuf_va;
+ u32 qbuf_len;
+ u32 rsvd0;
+};
+
+struct erdma_uresp_create_qp {
+ u32 qp_id;
+ u32 num_sqe;
+ u32 num_rqe;
+ u32 rq_offset;
+};
+
+struct erdma_uresp_alloc_ctx {
+ u32 dev_id;
+ u32 pad;
+ u32 sdb_type;
+ u32 sdb_offset;
+ u64 sdb;
+ u64 rdb;
+ u64 cdb;
+};
+
+#endif