Skip to content

Commit

Permalink
prov/efa: efa_rdm_ep_record_tx_op_submitted() rm peer lookup
Browse files Browse the repository at this point in the history
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 <szegel@amazon.com>
  • Loading branch information
a-szegel committed Jan 3, 2024
1 parent 7a4196c commit ca0345d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prov/efa/src/rdm/efa_rdm_ep_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ca0345d

Please sign in to comment.