History

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.

Selvin Xavier committed 3 years ago

Commit d54bd5a1 parent d649c636 files · +167 −0Browse files

Showing the changes to include/uapi (1 of 6 files). Show all

Unified · Split

include/uapi/rdma/bnxt_re-abi.h+4−0
@@ -96,6 +96,10 @@ struct bnxt_re_cq_resp { · 95 unmodified lines
9696 __u32 rsvd;
9797 };
9898
99+struct bnxt_re_resize_cq_req {
100+ __aligned_u64 cq_va;
101+};
102+
99103 struct bnxt_re_qp_req {
100104 __aligned_u64 qpsva;
101105 __aligned_u64 qprva;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t