From fc5a183959d4aa313fb854ab98dba064bfcf025d Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sun, 7 Dec 2025 23:12:18 +0300 Subject: [PATCH] Allow routed RoCE --- src/client/msgr_rdma.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/msgr_rdma.cpp b/src/client/msgr_rdma.cpp index d86dbd29..15fc33c1 100644 --- a/src/client/msgr_rdma.cpp +++ b/src/client/msgr_rdma.cpp @@ -487,12 +487,12 @@ int msgr_rdma_connection_t::connect(msgr_rdma_address_t *dest) .grh = { .dgid = dest->gid, .sgid_index = conn->ctx->gid_index, - .hop_limit = 1, // FIXME can it vary? + .hop_limit = 64, // FIXME can it vary? }, .dlid = dest->lid, .sl = 0, // service level .src_path_bits = 0, - .is_global = (uint8_t)(dest->gid.global.interface_id ? 1 : 0), + .is_global = (uint8_t)(dest->gid.global.subnet_prefix || dest->gid.global.interface_id ? 1 : 0), .port_num = conn->ctx->ib_port, }, .max_rd_atomic = 1,