API/TL/UCP: Add per-team endpoint traffic class (QoS) - #1321
Draft
ybenvidia wants to merge 36 commits into
Draft
Conversation
…ization' into collectives-prioritization
ybenvidia
marked this pull request as draft
July 2, 2026 12:51
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.
What
Allow a UCC team to be created with an endpoint traffic class so all UCX
endpoints opened for that team use a chosen DSCP/priority.
Why
Enables per-team (≈ per communicator / process-group) QoS: run a
higher-priority collective on a team tagged with a higher-priority traffic
class, and let the NIC/fabric arbitrate between flows accordingly.
Changes
ucc_team_params.ep_traffic_classfield, enabled withUCC_TEAM_PARAM_FIELD_EP_TRAFFIC_CLASS.ucc_team_create_post→tl_ucpteam(
UCC_CLASS_INIT_FUNC(ucc_tl_ucp_team_t)) →ucc_tl_ucp_connect_ep, whichsets
ucp_ep_params.ep_traffic_class+UCP_EP_PARAM_FIELD_EP_TRAFFIC_CLASS.UCC_TL_UCP_NO_TCLASSfor "not set"; service/internal teams keepthe default.
ucc_perftest: newUCC_PT_EP_TRAFFIC_CLASSenv to set the team's trafficclass for benchmarking.
Dependency
Requires a UCX with the per-endpoint traffic class API
(
UCP_EP_PARAM_FIELD_EP_TRAFFIC_CLASS/ucp_ep_params.ep_traffic_class) —see the companion UCX PR.
Compatibility
Opt-in: teams created without the field mask bit behave exactly as before.
Testing
ucc_perftest -c allreducewithUCC_PT_EP_TRAFFIC_CLASS=<dscp>on 2 nodes:the tagged team's endpoints open QPs with the configured DSCP, verified down
to the RoCEv2 packets on the wire.