Repository navigation
Conversation
Extend verbs interface to support Completion Actions that let applications observe the completion of specific work requests without polling a CQ. A completion action is an operation registered with the device that a work request names by its action ID, and the device performs it when the work request completes at the initiator or at the target. This is mostly useful for transports that complete work requests out of order, where a completion count alone doesn't tell which requests have completed. As a first type introduce memory completion actions, which modify application memory with a value supplied by the initiator's work request. Expose completion action capabilities through a dedicated query verb. Reviewed-by: Ilia Kolominsky <ikolomin@amazon.com> Reviewed-by: Yehuda Yitschak <yehuday@amazon.com> Signed-off-by: Michael Margolin <mrgolin@amazon.com>
mrgolin
force-pushed
the
ibv-comp-action
branch
from
November 19, 2026 15:30
a02e569 to
a64f10e
Compare
shefty
reviewed
Nov 20, 2026
| * @attr: Attributes for the memory completion action. | ||
| */ | ||
| struct ibv_mem_comp_action * | ||
| ibv_create_mem_comp_action(struct ibv_pd *pd, |
Contributor
There was a problem hiding this comment.
I would define a more general and extensible user-facing API. E.g. ibv_create_comp_action(...). The attribute should include what type of action, which is currently a single option buf_write. Plus action specific input: ibv_buf, offset, len, value
Contributor
Author
There was a problem hiding this comment.
We have a common struct ibv_comp_action that is used wherever the action type doesn't matter, e.g. destroy. We kept separate create functions for two reasons:
- We plan to follow up with counter completion actions, which share no attributes with memory actions apart from the PD.
- Returning a concrete type lets us add per-type operations later, e.g. reset action state.
Contributor
There was a problem hiding this comment.
This means that every type requires new APIs and updates to other structures, like work requests.. It's somewhat equivalent to every QP type having separate API calls and structs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extend verbs interface to support Completion Actions that let applications observe the completion of specific work requests without polling a CQ. A completion action is an operation registered with the device that a work request names by its action ID, and the device performs it when the work request completes at the initiator or at the target. This is mostly useful for transports that complete work requests out of order, where a completion count alone doesn't tell which requests have completed.
As a first type introduce memory completion actions, which modify application memory with a value supplied by the initiator's work request.