From 7f29e5d53c70784ec5a2068b94dba892a8324303 Mon Sep 17 00:00:00 2001 From: Steve Welch Date: Wed, 21 Feb 2024 09:54:49 -0600 Subject: [PATCH] core: Add new CXI endpoint protocol FI_PROTO_CXI_CS Reserve new endpoint protocol for CXI provider. Signed-off-by: Steve Welch --- include/rdma/fabric.h | 1 + man/fi_endpoint.3.md | 8 ++++++++ src/fi_tostr.c | 1 + 3 files changed, 10 insertions(+) diff --git a/include/rdma/fabric.h b/include/rdma/fabric.h index a705ba6e200..0e42ee6c057 100644 --- a/include/rdma/fabric.h +++ b/include/rdma/fabric.h @@ -346,6 +346,7 @@ enum { FI_PROTO_COLL, FI_PROTO_UCX, FI_PROTO_SM2, + FI_PROTO_CXI_CS, }; enum { diff --git a/man/fi_endpoint.3.md b/man/fi_endpoint.3.md index 819e00d350a..4adea87a8a0 100644 --- a/man/fi_endpoint.3.md +++ b/man/fi_endpoint.3.md @@ -753,6 +753,14 @@ protocol value set to one. : Protocol for intra-node communication using shared memory segments used by the sm2 provider +*FI_PROTO_CXI* +: Reliable-datagram protocol optimized for HPC applications + used by cxi provider. + +*FI_PROTO_CXI_CS* +: A version of the FI_PROTO_CXI protocol that targets use in client/server + environments. + *FI_PROTO_UNSPEC* : The protocol is not specified. This is usually provided as input, with other attributes of the socket or the provider selecting the diff --git a/src/fi_tostr.c b/src/fi_tostr.c index 2b95be5b87c..c6fd1a36d86 100644 --- a/src/fi_tostr.c +++ b/src/fi_tostr.c @@ -275,6 +275,7 @@ static void ofi_tostr_protocol(char *buf, size_t len, uint32_t protocol) CASEENUMSTRN(FI_PROTO_CXI, len); CASEENUMSTRN(FI_PROTO_XNET, len); CASEENUMSTRN(FI_PROTO_SM2, len); + CASEENUMSTRN(FI_PROTO_CXI_CS, len); default: if (protocol & FI_PROV_SPECIFIC) ofi_strncatf(buf, len, "Provider specific");