diff options
author | Selvin Xavier <selvin.xavier@broadcom.com> | 2023-03-15 09:16:55 +0100 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-03-29 09:03:43 +0200 |
commit | d54bd5abf4d26e1b6722238f75e36069ea91def9 (patch) | |
tree | a2166fda275e411b90ebcffca9229973a2e97fb2 /include/uapi | |
parent | RDMA/erdma: Use fixed hardware page size (diff) | |
download | linux-d54bd5abf4d26e1b6722238f75e36069ea91def9.tar.xz linux-d54bd5abf4d26e1b6722238f75e36069ea91def9.zip |
RDMA/bnxt_re: Add resize_cq support
Add resize_cq verb support for user space CQs. Resize operation for
kernel CQs are not supported now.
Driver should free the current CQ only after user library polls
for all the completions and switch to new CQ. So after the resize_cq
is returned from the driver, user library polls for existing completions
and store it as temporary data. Once library reaps all completions in the
current CQ, it invokes the ibv_cmd_poll_cq to inform the driver about
the resize_cq completion. Adding a check for user CQs in driver's
poll_cq and complete the resize operation for user CQs.
Updating uverbs_cmd_mask with poll_cq to support this.
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://lore.kernel.org/r/1678868215-23626-1-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/uapi')
-rw-r--r-- | include/uapi/rdma/bnxt_re-abi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/uapi/rdma/bnxt_re-abi.h b/include/uapi/rdma/bnxt_re-abi.h index b1de99bf56ce..c4e90775da0c 100644 --- a/include/uapi/rdma/bnxt_re-abi.h +++ b/include/uapi/rdma/bnxt_re-abi.h @@ -96,6 +96,10 @@ struct bnxt_re_cq_resp { __u32 rsvd; }; +struct bnxt_re_resize_cq_req { + __aligned_u64 cq_va; +}; + struct bnxt_re_qp_req { __aligned_u64 qpsva; __aligned_u64 qprva; |