Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(qp): introduce more wrapper types and refactor qp_ex implementation #25

Merged
merged 2 commits into from
Sep 17, 2024

Conversation

dragonJACson
Copy link
Contributor

@dragonJACson dragonJACson commented Sep 6, 2024

We introduce wrapper types for ibv_access_flags and send_ops_flags in this commit, maybe ibv_qp_init_attr_mask should be wrapped too?

At the same time, we replaced the NonNull<ibv_qp> in ExtendedQueuePair with NonNull<ibv_qp_ex>, which should make more sense. By default, extended qp would support write / send / read.

@dragonJACson dragonJACson force-pushed the dev/qp-trait branch 3 times, most recently from 79b3b5e to e923595 Compare September 16, 2024 16:05
@dragonJACson dragonJACson changed the title feat(qp): implement trait for QP feat(qp): introduce more wrapper type and refactor qp_ex implementation Sep 16, 2024
@dragonJACson dragonJACson changed the title feat(qp): introduce more wrapper type and refactor qp_ex implementation feat(qp): introduce more wrapper types and refactor qp_ex implementation Sep 16, 2024
src/verbs/queue_pair.rs Outdated Show resolved Hide resolved
src/verbs/queue_pair.rs Outdated Show resolved Hide resolved
src/verbs/queue_pair.rs Outdated Show resolved Hide resolved
src/verbs/queue_pair.rs Outdated Show resolved Hide resolved
src/verbs/queue_pair.rs Outdated Show resolved Hide resolved
@dragonJACson dragonJACson force-pushed the dev/qp-trait branch 2 times, most recently from 1ad3335 to 73f7aff Compare September 17, 2024 12:18
We introduce AccessFlags as a wrapper type for ibv_access_flags in
this commit. As flags would be used for MemoryRegion and QueuePair
at the same time, we put it in the verbs/mod.rs.

Signed-off-by: Luke Yue <lukedyue@gmail.com>
We introduce SendOperationFlags for building qp_ex, by default, we
would create an extended qp with write / send / read support, just
like what a basic qp supports.

At the same time, we put `NonNull<ibv_qp_ex>` in ExtendedQueuePair
instead of `NonNull<ibv_qp>`, this should be more accurate.

Signed-off-by: Luke Yue <lukedyue@gmail.com>
@dragonJACson dragonJACson merged commit 4db751e into main Sep 17, 2024
@dragonJACson dragonJACson deleted the dev/qp-trait branch September 22, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants