Report when no usable GID is found - #4191
Merged
Merged
Conversation
Connection::info() left gid uninitialized when the loop matched nothing and handed it to the queue pair, where it surfaced later as an opaque errno from the RTR transition. Thunderbolt ports only publish an IPv4-mapped GID once the interface has an IPv4 address, so this is a configuration people hit rather than an exotic one.
zcbenz
approved these changes
Aug 12, 2026
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.
Related to #3467.
Connection::info()scans the GID table for an IPv4-mapped GID. If none matches, the loopsimply ends:
ibv_gid gid;is never assigned and never initialized, and that value iswritten into
src.global_identifierand used for the queue pair. The error surfaces laterfrom the RTR transition as
errno 22, which does not point at the GID table.This is not a rare path. Thunderbolt RDMA ports publish only a link-local IPv6 GID until the
interface has an IPv4 address, so any Thunderbolt setup hits it before configuring one:
After the change, the same configuration reports the cause and the remedy at the point of
failure:
Verified
Two M4 Pro Mac minis on macOS 26.5.1, connected directly over Thunderbolt 5,
RDMA enabled from Recovery OS.
errno 22; with this change it throwsthe message above from
info().info()returns::ffff:169.254.10.1anda two-rank mesh runs a correct
all_sum.allocate_protection_domain, and never reaches this code.