Skip to content

UCS/SYS/NETLINK: Add netlink gtest - #11862

Open
amastbaum wants to merge 6 commits into
openucx:masterfrom
amastbaum:add_netlink_gtest
Open

UCS/SYS/NETLINK: Add netlink gtest#11862
amastbaum wants to merge 6 commits into
openucx:masterfrom
amastbaum:add_netlink_gtest

Conversation

@amastbaum

Copy link
Copy Markdown
Contributor

What?

Added netlink gtests.
Based on fix/rc-gda-reachability #11835.

@svc-nvidia-pr-review

Copy link
Copy Markdown

🤖 Starting review — findings will be posted here when done.


if (ucs_netlink_is_best_route(ndev_index, sa_remote)) {
/* This interface has the best route */
if (ucs_netlink_route_matches(ndev_index, sa_remote,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Behavior broadening for RoCE not covered by an integration/behavior note. The old code only accepted this GID when the interface had the globally-best route (then fell back to loopback/local). RELAXED now accepts any non-default matching route on the interface even when another interface has a more specific route. This is a real reachability-policy change; worth a one-line "why" in the PR description per REVIEW.md. Not a code bug.

@svc-nvidia-pr-review

Copy link
Copy Markdown

src/ucs/sys/netlink.c

Scope: this PR mixes the route-table refactor with a behavior change (new RELAXED policy for RoCE). Per REVIEW.md, feature PRs must not refactor unrelated code. Since the refactor is what makes the new behavior unit-testable it's defensible, but please clarify in the description that RoCE reachability is intentionally broadened and the extraction is needed to unit-test it.

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.

2 participants