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

bug fix: pass the rkey of the mr to the client for rdma read/write operations instead of the lkey #4

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

Conversation

Old-Farmer
Copy link

In 'man ibv_reg_mr':

RETURN VALUE
ibv_reg_mr() / ibv_reg_mr_iova() / ibv_reg_dmabuf_mr() returns a pointer to the registered MR, or NULL if the request
fails. The local key (L_Key) field lkey is used as the lkey field of struct ibv_sge when posting buffers with
ibv_post_* verbs, and the the remote key (R_Key) field rkey is used by remote processes to perform Atomic and RDMA operations. The remote process places this rkey as the rkey field of struct ibv_send_wr passed to the ibv_post_send
function.

So the rkey of mr should be passed to client for rdma operations.

The most interesting thing is that in most of implementaions, rkey and lkey of one mr is exactly the same. So the previous code usually runs correctly.

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