From 358e0691454e868893a0445277c880cd467bbb63 Mon Sep 17 00:00:00 2001 From: Sunita Nadampalli Date: Sat, 4 Oct 2025 04:51:34 +0000 Subject: [PATCH] prov/efa: allocate peer map entry pool during the rdm ep create the commit "4016fd5" has moved the peer map entry pool from av to endpoint but deferred the pool memory allocation till the remote requests for a peer. So, the acutal memory pool allocation was happening on the first request and hence adding latency overhead to the intial requests. This commit is fixing the letency issue by eagerly allocating the pool during the endpoint create. Signed-off-by: Sunita Nadampalli --- prov/efa/src/rdm/efa_rdm_ep_fiops.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/prov/efa/src/rdm/efa_rdm_ep_fiops.c b/prov/efa/src/rdm/efa_rdm_ep_fiops.c index b6e31b3badd..a2c4878311b 100644 --- a/prov/efa/src/rdm/efa_rdm_ep_fiops.c +++ b/prov/efa/src/rdm/efa_rdm_ep_fiops.c @@ -242,6 +242,10 @@ int efa_rdm_ep_create_buffer_pools(struct efa_rdm_ep *ep) if (ret) goto err_free; + ret = ofi_bufpool_grow(ep->peer_map_entry_pool); + if (ret) + goto err_free; + return 0; err_free: