Skip to content

Commit

Permalink
prov/efa: Move debug statements to before SHM send call
Browse files Browse the repository at this point in the history
This commit fixes a bug that was introduced in
ofiwg#8391

Signed-off-by: Sai Sunku <sunkusa@amazon.com>
  • Loading branch information
sunkuamzn committed Jan 13, 2023
1 parent 62d2f92 commit 1acdbcc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions prov/efa/src/rdm/rxr_pkt_entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,18 +393,18 @@ ssize_t rxr_pkt_entry_send(struct rxr_ep *ep, struct rxr_pkt_entry *pkt_entry,
send->desc[0] = (pkt_entry->alloc_type == RXR_PKT_FROM_SHM_TX_POOL) ? NULL : pkt_entry->mr;
}

if (pkt_entry->alloc_type == RXR_PKT_FROM_SHM_TX_POOL) {
ret = fi_sendv(ep->shm_ep, send->iov, NULL, send->iov_count, peer->shm_fiaddr, pkt_entry);
goto out;
}

#if ENABLE_DEBUG
dlist_insert_tail(&pkt_entry->dbg_entry, &ep->tx_pkt_list);
#ifdef ENABLE_RXR_PKT_DUMP
rxr_pkt_print("Sent", ep, (struct rxr_base_hdr *)pkt_entry->wiredata);
#endif
#endif

if (pkt_entry->alloc_type == RXR_PKT_FROM_SHM_TX_POOL) {
ret = fi_sendv(ep->shm_ep, send->iov, NULL, send->iov_count, peer->shm_fiaddr, pkt_entry);
goto out;
}

send_wr->num_sge = send->iov_count;
send_wr->sg_list = pkt_entry->send_wr.sge;

Expand Down

0 comments on commit 1acdbcc

Please sign in to comment.