]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async/rdma: use gid_idx as index to get gid
authorChangcheng Liu <changcheng.liu@aliyun.com>
Mon, 11 Nov 2019 08:03:11 +0000 (16:03 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Mon, 11 Nov 2019 13:11:34 +0000 (21:11 +0800)
commitb5c797876a665b146fd302d0d77f32a61ec3447d
tree18370a8bc3a653e8cd715a68fa5ef40352d1903a
parentc619ed809cd7d85f0e1b29d74ec5cd51b9325f87
msg/async/rdma: use gid_idx as index to get gid

1. use gid_idx as parameter to get gid instead of getting the first(0) gid
by default.
int ibv_query_gid(struct ibv_context *context, uint8_t port_num, int
index, union ibv_gid *gid)
2. gid is initialized in class type declaration, there's no need to
initialized in the member construction list.

Signed-off-by: Changcheng Liu <changcheng.liu@aliyun.com>
src/msg/async/rdma/Infiniband.cc