Skip to content

UCT/IB/UD: update stale dest ep_id and stale acks from before connection reset - #11092

Merged
gleon99 merged 6 commits into
openucx:masterfrom
wehyy:ud_conn_reset
Jan 20, 2026
Merged

gleon99 merged 6 commits into
openucx:masterfrom
wehyy:ud_conn_reset

Conversation

@wehyy

@wehyy wehyy commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

What?

Ignore stale ACKs from previous connections in UD endpoint ACK processing.
Update the stale dest ep_id in the UD endpoint's CREQ receive processing when a connection is reset.

Why?

After the peer endpoint resets, reusing the same UD QP number by the peer can lead to the reuse of the local UD endpoint in rx_creq, ultimately causing an assertion failure and crash due to mismatched creq->ep_addr.ep_id and ep->dest_ep_id

@roiedanino

Copy link
Copy Markdown
Contributor

Please add michaelzli <michaelzli@tencent.com> to AUTHORS file

@roiedanino roiedanino assigned roiedanino and wehyy and unassigned roiedanino Jan 4, 2026
Comment thread src/uct/ib/ud/base/ud_ep.c Resolved
roiedanino
roiedanino previously approved these changes Jan 5, 2026

@roiedanino roiedanino 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.

Thanks @wehyy !

@wehyy

wehyy commented Jan 6, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @roiedanino !

Signed-off-by: Roie Danino <rdanino@nvidia.com>
roiedanino

This comment was marked as resolved.

@gleon99
gleon99 merged commit 0a4759c into openucx:master Jan 20, 2026
147 checks passed
roiedanino added a commit to roiedanino/ucx that referenced this pull request Jan 20, 2026
…ion reset (openucx#11092)

* UCT/IB/UD: revise stale ep_id and stale acks from before connection reset

* AUTHORS: update

* UCT/IB/UD: unify codeline for readability

* UCT/IB/UD: unify codeline for readability

* TEST/GTEST/UCT/IB: added a test for checking dest ep id is being updated

Signed-off-by: Roie Danino <rdanino@nvidia.com>

---------

Signed-off-by: Roie Danino <rdanino@nvidia.com>
Co-authored-by: Roie Danino <rdanino@nvidia.com>
(cherry picked from commit 0a4759c)
roiedanino added a commit to roiedanino/ucx that referenced this pull request Jan 22, 2026
…ion reset (openucx#11092)

* UCT/IB/UD: revise stale ep_id and stale acks from before connection reset

* AUTHORS: update

* UCT/IB/UD: unify codeline for readability

* UCT/IB/UD: unify codeline for readability

* TEST/GTEST/UCT/IB: added a test for checking dest ep id is being updated

Signed-off-by: Roie Danino <rdanino@nvidia.com>

---------

Signed-off-by: Roie Danino <rdanino@nvidia.com>
Co-authored-by: Roie Danino <rdanino@nvidia.com>
(cherry picked from commit 0a4759c)
roiedanino added a commit to roiedanino/ucx that referenced this pull request Jan 22, 2026
…ion reset (openucx#11092)

* UCT/IB/UD: revise stale ep_id and stale acks from before connection reset

* AUTHORS: update

* UCT/IB/UD: unify codeline for readability

* UCT/IB/UD: unify codeline for readability

* TEST/GTEST/UCT/IB: added a test for checking dest ep id is being updated

Signed-off-by: Roie Danino <rdanino@nvidia.com>

---------

Signed-off-by: Roie Danino <rdanino@nvidia.com>
Co-authored-by: Roie Danino <rdanino@nvidia.com>
(cherry picked from commit 0a4759c)
gleon99 pushed a commit that referenced this pull request Jan 22, 2026
…ion reset - v1.20.x (#11128)

* UCT/IB/UD: update stale dest ep_id and stale acks from before connection reset (#11092)

* UCT/IB/UD: revise stale ep_id and stale acks from before connection reset

* AUTHORS: update

* UCT/IB/UD: unify codeline for readability

* UCT/IB/UD: unify codeline for readability

* TEST/GTEST/UCT/IB: added a test for checking dest ep id is being updated

Signed-off-by: Roie Danino <rdanino@nvidia.com>

---------

Signed-off-by: Roie Danino <rdanino@nvidia.com>
Co-authored-by: Roie Danino <rdanino@nvidia.com>
(cherry picked from commit 0a4759c)

* AUTHORS: added wehy

Signed-off-by: Roie Danino <rdanino@nvidia.com>

---------

Signed-off-by: Roie Danino <rdanino@nvidia.com>
Co-authored-by: wehy <18174858434@163.com>
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.

3 participants