]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
msg/async/rdma: add configuration to select gid_idx
authorChangcheng Liu <changcheng.liu@aliyun.com>
Mon, 11 Nov 2019 08:11:38 +0000 (16:11 +0800)
committerChangcheng Liu <changcheng.liu@aliyun.com>
Mon, 11 Nov 2019 13:11:38 +0000 (21:11 +0800)
commitb971cff51a9179c02f85a27cc191731a18e39876
tree28d738b6b37d509c3cc7d271ab8befbccae59905
parentb5c797876a665b146fd302d0d77f32a61ec3447d
msg/async/rdma: add configuration to select gid_idx

With Mellanox NIC, different gid_idx maps to different gid combined with
different RoCE protocol e.g. RoCEv1 or RoCEv2
1. Add configuration ms_async_rdma_gid_idx to set gid_idx.
1. Use "0" as default gid_idx to keep compatibility.
2. Initialize gid_idx in class member construction list.

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