diff options
author | Konstantin Taranov <kotaranov@microsoft.com> | 2024-04-26 16:12:40 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-05-05 15:27:23 +0300 |
commit | 44b607ad4cdf23ae8f796b95bd14709fa06f7728 (patch) | |
tree | 3c94ef692b090f9adb88635597b720d1b8215eb4 /include/uapi | |
parent | f79edef79b6a2161f4124112f9b0c46891bb0b74 (diff) | |
download | linux-44b607ad4cdf23ae8f796b95bd14709fa06f7728.tar.xz |
RDMA/mana_ib: implement uapi for creation of rnic cq
Enable users to create RNIC CQs using a corresponding flag.
With the previous request size, an ethernet CQ is created.
As a response, return ID of the created CQ.
Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
Link: https://lore.kernel.org/r/1714137160-5222-6-git-send-email-kotaranov@linux.microsoft.com
Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/rdma/mana-abi.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/uapi/rdma/mana-abi.h b/include/uapi/rdma/mana-abi.h index 5fcb31b37fb9..2c41cc315218 100644 --- a/include/uapi/rdma/mana-abi.h +++ b/include/uapi/rdma/mana-abi.h @@ -16,8 +16,20 @@ #define MANA_IB_UVERBS_ABI_VERSION 1 +enum mana_ib_create_cq_flags { + MANA_IB_CREATE_RNIC_CQ = 1 << 0, +}; + struct mana_ib_create_cq { __aligned_u64 buf_addr; + __u16 flags; + __u16 reserved0; + __u32 reserved1; +}; + +struct mana_ib_create_cq_resp { + __u32 cqid; + __u32 reserved; }; struct mana_ib_create_qp { |