From b971cff51a9179c02f85a27cc191731a18e39876 Mon Sep 17 00:00:00 2001 From: Changcheng Liu Date: Mon, 11 Nov 2019 16:11:38 +0800 Subject: [PATCH] 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 --- src/common/options.cc | 4 ++++ src/msg/async/rdma/Infiniband.cc | 5 +++-- src/msg/async/rdma/Infiniband.h | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) 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