Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

librdmacm: Don't rely on IB device index if not available #1162

Merged
merged 1 commit into from
Mar 31, 2022

Conversation

MarkZhang81
Copy link
Contributor

When rdma-core is built with "-DENABLE_RESOLVE_NEIGH=0", it skips
linkage to libnl library. This causes to ibv_idx to stay in its default
value (-1).
Update the match function to treat such scenario to be the same as
not-supported by the kernel flow.

Fixes: 28da4a8 ("librdmacm: Rely on IB device index if available")
Signed-off-by: Mark Zhang markzhang@nvidia.com
Reviewed-by: Leon Romanovsky leonro@nvidia.com

When rdma-core is built with "-DENABLE_RESOLVE_NEIGH=0", it skips
linkage to libnl library. This causes to ibv_idx to stay in its default
value (-1).
Update the match function to treat such scenario to be the same as
not-supported by the kernel flow.

Fixes: 28da4a8 ("librdmacm: Rely on IB device index if available")
Signed-off-by: Mark Zhang <markzhang@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
@rleon rleon merged commit 91004ec into linux-rdma:master Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants