From ca0345dde80ec1fce33010cc052c6ef417654f84 Mon Sep 17 00:00:00 2001 From: Seth Zegelstein Date: Fri, 29 Dec 2023 23:44:38 +0000 Subject: [PATCH] prov/efa: efa_rdm_ep_record_tx_op_submitted() rm peer lookup Since all EFA send operations use a txe, we can remove the peer lookup from the critical path offering a performance improvement to all EFA sends. Signed-off-by: Seth Zegelstein --- prov/efa/src/rdm/efa_rdm_ep_utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prov/efa/src/rdm/efa_rdm_ep_utils.c b/prov/efa/src/rdm/efa_rdm_ep_utils.c index a65592134ed..3a8fcf3760c 100644 --- a/prov/efa/src/rdm/efa_rdm_ep_utils.c +++ b/prov/efa/src/rdm/efa_rdm_ep_utils.c @@ -342,11 +342,13 @@ void efa_rdm_ep_record_tx_op_submitted(struct efa_rdm_ep *ep, struct efa_rdm_pke struct efa_rdm_ope *ope; ope = pkt_entry->ope; + assert(ope); + /* * peer can be NULL when the pkt_entry is a RMA_CONTEXT_PKT, * and the RMA is a local read toward the endpoint itself */ - peer = efa_rdm_ep_get_peer(ep, pkt_entry->addr); + peer = ope->peer; if (peer) dlist_insert_tail(&pkt_entry->entry, &peer->outstanding_tx_pkts);