Skip to content

[RFC] Introduce Completion Counters verbs#1701

Open
mrgolin wants to merge 1 commit intolinux-rdma:masterfrom
amzn:comp-counters
Open

[RFC] Introduce Completion Counters verbs#1701
mrgolin wants to merge 1 commit intolinux-rdma:masterfrom
amzn:comp-counters

Conversation

@mrgolin
Copy link
Contributor

@mrgolin mrgolin commented Feb 16, 2026

Extend verbs interface to support Completion Counters that can be seen as a light-weight alternative to polling CQ. A completion counter object separately counts successful and error completions, can be attached to multiple QPs and be configured to count completions of a subset of operation types. This is especially useful for batch or credit based workloads running on accelerators but can serve many other types of applications as well.

This PR intended for discussion over the interface extension suggestion and once agreed following ioctl and kernel changes will be submitted, including first provider and driver implementations.

Thanks.

Extend verbs interface to support Completion Counters that can be seen
as a light-weight alternative to polling CQ. A completion counter object
separately counts successful and error completions, can be attached to
multiple QPs and be configured to count completions of a subset of
operation types. This is especially useful for batch or credit based
workloads running on accelerators but can serve many other types of
applications as well.

Expose supported number of completion counters through query device
extended verb.

Reviewed-by: Yonatan Nachum <ynachum@amazon.com>
Signed-off-by: Michael Margolin <mrgolin@amazon.com>
@mrgolin
Copy link
Contributor Author

mrgolin commented Mar 3, 2026

@jgunthorpe @rleon Any comments on this? I'd like to start pushing the implementation.

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.

1 participant