Skip to content

Conversation

@steevenlee
Copy link

No description provided.

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

Signed-off-by: Xueming Li <[email protected]>
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);

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