From: Changcheng Liu Date: Mon, 11 Nov 2019 08:11:38 +0000 (+0800) Subject: msg/async/rdma: add configuration to select gid_idx X-Git-Tag: v15.1.0~881^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b971cff51a9179c02f85a27cc191731a18e39876;p=ceph.git 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 --- diff --git a/src/common/options.cc b/src/common/options.cc index 1f76931f805..ee04e2ea8d8 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -1148,6 +1148,10 @@ std::vector