Skip to content

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

Open
steevenlee wants to merge 5 commits intojcxue:masterfrom
steevenlee:recv_send
Open

a new branch fixed RoCE issues for recv/send example#10
steevenlee wants to merge 5 commits intojcxue:masterfrom
steevenlee:recv_send

Conversation

@steevenlee
Copy link
Copy Markdown

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>
Comment thread setup_ib.c
local_qp_info.gid_index = ib_res.gid_index;

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);
Copy link
Copy Markdown

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