Skip to content

Rename datapath callback types for transport generalization#6070

Open
guhetier wants to merge 2 commits into
mainfrom
guhetier/rename_datapath_types
Open

Rename datapath callback types for transport generalization#6070
guhetier wants to merge 2 commits into
mainfrom
guhetier/rename_datapath_types

Conversation

@guhetier

@guhetier guhetier commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator

Description

Rename datapath callback types to make them more generic based on datagram or connection-oriented transport, since MsQuic is going to support other transports than UDP/TCP.

Testing

CI

Documentation

N/A, the types are internal

@guhetier guhetier force-pushed the guhetier/rename_datapath_types branch from 37280b8 to 73f7864 Compare June 6, 2026 00:40
@codecov

codecov Bot commented Jun 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.66%. Comparing base (6525fb3) to head (cb073b4).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6070      +/-   ##
==========================================
- Coverage   85.93%   85.66%   -0.28%     
==========================================
  Files          60       60              
  Lines       18798    18798              
==========================================
- Hits        16155    16103      -52     
- Misses       2643     2695      +52     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@guhetier guhetier force-pushed the guhetier/rename_datapath_types branch from 73f7864 to 2939c25 Compare June 9, 2026 00:26
guhetier and others added 2 commits June 8, 2026 17:39
The binding trace events refer to the socket object generically, not
specifically a UDP socket. Rename for clarity since bindings can now
use different transport types (UDP, TCP, RDMA).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Rename datapath callback type names for consistency:
- CXPLAT_UDP_DATAPATH_CALLBACKS -> CXPLAT_DATAPATH_DGRAM_CALLBACKS
- CXPLAT_TCP_DATAPATH_CALLBACKS -> CXPLAT_DATAPATH_CONN_CALLBACKS

Variable/field names (UdpCallbacks, TcpCallbacks, UdpHandlers,
TcpHandlers) are kept as-is since they are used in transport-specific
contexts where the protocol is known.

The type naming reflects the transport model (datagram vs connection-
oriented) rather than specific protocols (UDP/TCP), since RDMA RC is
connection-oriented but not a stream.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@guhetier guhetier force-pushed the guhetier/rename_datapath_types branch from 2939c25 to cb073b4 Compare June 9, 2026 00:52
@guhetier guhetier changed the title Rename UDP_CONFIG and callback types for transport generalization Rename datapath callback types for transport generalization Jun 9, 2026
@guhetier guhetier marked this pull request as ready for review June 9, 2026 15:52
@guhetier guhetier requested a review from a team as a code owner June 9, 2026 15:52
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