From 9a3cc7804a24b56b1c017d7566272e24a072e34f Mon Sep 17 00:00:00 2001 From: Sai Sunku Date: Tue, 18 Nov 2025 18:56:32 +0000 Subject: [PATCH] prov/efa: Decrease the peer robuf size instead of the robuf pool Commit https://github.com/ofiwg/libfabric/commit/89daf255cc964aa3050a9f2bd18b36e0ec81c0ca reduced the size of the robuf pool to 16 while keeping the robuf size fixed at 8192. Having different sizes for the the peer pool size and robuf size does not make sense becase each peer struct requires a robuf. Instead, reduce the size of the robuf. Signed-off-by: Sai Sunku --- prov/efa/src/rdm/efa_rdm_ep.h | 1 - prov/efa/src/rdm/efa_rdm_ep_fiops.c | 2 +- prov/efa/src/rdm/efa_rdm_peer.h | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/prov/efa/src/rdm/efa_rdm_ep.h b/prov/efa/src/rdm/efa_rdm_ep.h index 2ead3db1861..f7587eb2a4c 100644 --- a/prov/efa/src/rdm/efa_rdm_ep.h +++ b/prov/efa/src/rdm/efa_rdm_ep.h @@ -42,7 +42,6 @@ struct efa_rdm_ep_queued_copy { #define EFA_RDM_EP_MAX_WR_PER_IBV_POST_RECV (8192) #define EFA_RDM_EP_MIN_PEER_POOL_SIZE (1024) -#define EFA_RDM_EP_MIN_PEER_REORDER_BUFFER_POOL_SIZE (16) struct efa_rdm_ep { struct efa_base_ep base_ep; diff --git a/prov/efa/src/rdm/efa_rdm_ep_fiops.c b/prov/efa/src/rdm/efa_rdm_ep_fiops.c index ac15855384c..2d2e18be016 100644 --- a/prov/efa/src/rdm/efa_rdm_ep_fiops.c +++ b/prov/efa/src/rdm/efa_rdm_ep_fiops.c @@ -266,7 +266,7 @@ int efa_rdm_ep_create_buffer_pools(struct efa_rdm_ep *ep) (sizeof(struct efa_rdm_pke*) * (roundup_power_of_two(efa_env.recvwin_size)) + sizeof(struct recvwin_cirq)), EFA_RDM_BUFPOOL_ALIGNMENT, 0, /* no limit to max_cnt */ - EFA_RDM_EP_MIN_PEER_REORDER_BUFFER_POOL_SIZE, + EFA_RDM_EP_MIN_PEER_POOL_SIZE, 0); if (ret) diff --git a/prov/efa/src/rdm/efa_rdm_peer.h b/prov/efa/src/rdm/efa_rdm_peer.h index f26e4737fdd..8a40b1bce83 100644 --- a/prov/efa/src/rdm/efa_rdm_peer.h +++ b/prov/efa/src/rdm/efa_rdm_peer.h @@ -10,7 +10,7 @@ #include "efa_rdm_protocol.h" #include "efa_rdm_rxe_map.h" -#define EFA_RDM_PEER_DEFAULT_REORDER_BUFFER_SIZE (8192) +#define EFA_RDM_PEER_DEFAULT_REORDER_BUFFER_SIZE (16) #define EFA_RDM_PEER_REQ_SENT BIT_ULL(0) /**< A REQ packet has been sent to the peer (peer should send a handshake back) */ #define EFA_RDM_PEER_HANDSHAKE_SENT BIT_ULL(1) /**< a handshake packet has been sent to the peer */