Skip to content

Perftest: don't fail when mlx5dv_query_device() is unsupported - #413

Merged
sshaulnv merged 1 commit into
masterfrom
fix-mlx5dv-query-device-unsupported
Oct 20, 2026
Merged

sshaulnv merged 1 commit into
masterfrom
fix-mlx5dv-query-device-unsupported

Conversation

@sshaulnv

Copy link
Copy Markdown
Contributor

Treat a failed mlx5dv_query_device() as "no direct-verbs capabilities" instead of an error, in negotiate_params(), ctx_qp_create() and check_bf_support(). Its only nonzero return is EOPNOTSUPP from the dispatch wrapper, which means the provider is not mlx5. Also zero-initialize two mlx5dv_context structs that were passing a garbage request mask. No wire or ABI change.

Treat a failed mlx5dv_query_device() as "no direct-verbs capabilities"
instead of an error, in negotiate_params(), ctx_qp_create() and
check_bf_support(). Its only nonzero return is EOPNOTSUPP from the
dispatch wrapper, which means the provider is not mlx5. Also
zero-initialize two mlx5dv_context structs that were passing a garbage
request mask. No wire or ABI change.

Signed-off-by: Shmuel Shaul <sshaul@nvidia.com>
@sshaulnv
sshaulnv merged commit b559ba3 into master Oct 20, 2026
2 checks passed
@sshaulnv
sshaulnv deleted the fix-mlx5dv-query-device-unsupported branch October 20, 2026 13:46
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.

1 participant