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

a new branch fixed RoCE issues for recv/send example #10

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

steevenlee
Copy link

No description provided.

gareging and others added 5 commits January 2, 2020 14:32
Signed-off-by: Xueming Li <xuemingl@mellanox.com>
Signed-off-by: Xueming Li <xuemingl@mellanox.com>
Signed-off-by: Xueming Li <xuemingl@mellanox.com>
In case of RoCEv2, LID is 0, invalid, have to use GID for such case.

Signed-off-by: Xueming Li <xuemingl@mellanox.com>

if (local_qp_info.lid == 0 && ib_res.port_attr.link_layer == IBV_LINK_LAYER_ETHERNET) {
ret = ibv_query_gid(ib_res.ctx, IB_PORT, local_qp_info.gid_index, &local_qp_info.gid);

Choose a reason for hiding this comment

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

A suggested fix for LINE#37:

ret = ibv_query_gid(ib_res.ctx, config_info.gid_index, config_info.dev_index, &local_qp_info.gid);

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.

3 participants