Skip to content

UCT: Add outstanding operation extraction support - #11580

Merged
gleon99 merged 35 commits into
openucx:masterfrom
jeynmann:failover_ext_uct
Jul 16, 2026
Merged

gleon99 merged 35 commits into
openucx:masterfrom
jeynmann:failover_ext_uct

Conversation

@jeynmann

@jeynmann jeynmann commented Jun 24, 2026 •

Copy link
Copy Markdown
Contributor

What?

Add UCT-level support for failover ops extraction.

Why?

UCP failover needs map tokens to send ops and resend failed ops.

How?

Introduces a callback-based extraction api.

Comment thread src/uct/api/v2/uct_v2.h Resolved
Comment thread src/uct/api/v2/uct_v2.h Resolved
Comment thread src/uct/ib/mlx5/rc/rc_mlx5.inl Resolved
Comment thread src/uct/ib/mlx5/rc/rc_mlx5.inl Resolved
Comment thread src/uct/ib/mlx5/rc/rc_mlx5_ep.c Resolved
Comment thread src/uct/ib/mlx5/rc/rc_mlx5_ep.c Resolved
Comment thread src/uct/ib/mlx5/ib_mlx5_ext.c Resolved
Comment thread src/uct/ib/mlx5/ib_mlx5_ext.h Resolved
Comment thread src/uct/api/v2/uct_v2.h Resolved
Comment thread src/uct/ib/mlx5/rc/rc_mlx5.inl Resolved
JeynmannZ added 21 commits July 2, 2026 12:16
Arm RC mlx5 endpoints before peer failure so error handling leaves outstanding sends available for extraction.

Suppress user completions while releasing CQ resources, and let endpoint destruction hand the failed QP to asynchronous garbage collection.
Verify that extraction reports posted operations in order and preserves the metadata needed by failover replay.
Use the failover-specific _ft suffix for the completion-backed PUT bcopy entry point and transport operation. Remove the redundant capability bit since availability follows QUERY_TOKEN support.
Organize extracted operation metadata by protocol parameter group, align field-mask ordering with the structure layout, and distinguish AM flags from flush parameters. Also align internal operation initializers touched by outstanding extraction support.

@evgeny-leksikov evgeny-leksikov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please split the PR to API and impl, PR with API can include stubs if <= 500 lines.

Comment thread src/uct/api/v2/uct_v2.h Resolved
Comment thread src/uct/ib/mlx5/rc/rc_mlx5.inl Resolved
Comment thread src/uct/ib/mlx5/rc/rc_mlx5.inl Resolved
Move mlx5 WQE private metadata tracking to failover_ext_uct_impl and
retain the public outstanding-purge API with plugin dispatch stubs and
unit tests on this branch.
Comment thread src/uct/ib/mlx5/ib_mlx5_ext.c Outdated
return UCS_ERR_INVALID_PARAM;
}

return UCS_OK;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please return UNSUPPORTED here.

@gleon99
gleon99 requested a review from evgeny-leksikov July 13, 2026 11:11

@evgeny-leksikov evgeny-leksikov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Implementation and tests could be part of next PR to meet 500 lines limit.

Comment thread src/uct/api/v2/uct_v2.h Resolved
Comment thread src/uct/api/v2/uct_v2.h Resolved
Comment thread src/uct/api/v2/uct_v2.h Resolved
Comment thread src/uct/api/v2/uct_v2.h Resolved
Comment thread src/uct/api/v2/uct_v2.h Resolved
@gleon99

gleon99 commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

@william-gallagher-nv .

Comment thread src/uct/ib/mlx5/ib_mlx5_ext.h Resolved
Comment thread src/uct/api/v2/uct_v2.h Resolved
@gleon99
gleon99 merged commit d4148b1 into openucx:master Jul 16, 2026
161 checks passed
jeynmann added a commit to jeynmann/ucx that referenced this pull request Jul 27, 2026
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.

5 participants