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

Event Queue Completion Refactor #4732

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open

Conversation

nibanks
Copy link
Member

@nibanks nibanks commented Jan 1, 2025

Description

Refactors the CxPlat event queue interface to have completions execute callback functions instead of call hardcoded functions with type value.

Testing

Existing CI/CD

Documentation

N/A - Internal (for now)

Copy link

codecov bot commented Jan 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.58%. Comparing base (f16a46b) to head (79a3666).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4732      +/-   ##
==========================================
- Coverage   87.20%   86.58%   -0.62%     
==========================================
  Files          56       56              
  Lines       17363    17378      +15     
==========================================
- Hits        15141    15047      -94     
- Misses       2222     2331     +109     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nibanks nibanks marked this pull request as ready for review January 3, 2025 20:24
@nibanks nibanks requested a review from a team as a code owner January 3, 2025 20:24
@nibanks nibanks added the Area: Core Related to the shared, core protocol logic label Jan 3, 2025
@@ -959,6 +959,16 @@ CxPlatInternalEventWaitWithTimeout(
#include <liburing.h>
typedef struct io_uring CXPLAT_EVENTQ;
typedef struct io_uring_cqe* CXPLAT_CQE;
typedef
_IRQL_requires_max_(PASSIVE_LEVEL)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This annotation is not needed for posix?

Comment on lines +1078 to +1083
typedef
void
(CXPLAT_EVENT_COMPLETION)(
_In_ CXPLAT_CQE* Cqe
);
typedef CXPLAT_EVENT_COMPLETION *CXPLAT_EVENT_COMPLETION_HANDLER;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These can be declared in quic_platform.h?
_posix.h and _winuser.h have same

void
DataPathProcessCqe(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice🙆‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Core Related to the shared, core protocol logic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants