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

mlx5: specify unsupport config mkey write relax ordering #1542

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

changchengx
Copy link
Contributor

The API mlx5dv_wr_set_mkey_access_flags access_flags parameter doesn't support IBV_ACCESS_RELAXED_ORDERING.
https://github.com/linux-rdma/rdma-core/blob/v55.0/providers/mlx5/qp.c#L2951-L2958

	if (unlikely(!check_comp_mask(access_flags,
				      IBV_ACCESS_LOCAL_WRITE |
				      IBV_ACCESS_REMOTE_WRITE |
				      IBV_ACCESS_REMOTE_READ |
				      IBV_ACCESS_REMOTE_ATOMIC))) {
		mqp->err = EINVAL;
		return;
	}

The API mlx5dv_wr_set_mkey_access_flags access_flags parameter
doesn't support IBV_ACCESS_RELAXED_ORDERING.

Signed-off-by: Liu, Changcheng <[email protected]>
@@ -161,7 +161,7 @@ struct mlx5dv_mkey_conf_attr {

: The desired memory protection attributes; it is either 0 or
the bitwise OR of one or more of flags in **enum
ibv_access_flags**.
ibv_access_flags**. IBV_ACCESS_RELAXED_ORDERING is not supported.
Copy link
Member

Choose a reason for hiding this comment

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

This is not the only access flag which is not supported by that DV API (e.g. IBV_ACCESS_ON_DEMAND, IBV_ACCESS_MW_BIND, IBV_ACCESS_ZERO_BASED, etc.).

I would skip/drop this patch, the man page doesn't guarantee that all bits are supported.

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