Skip to content

Commit

Permalink
prov/cxi: Update issue rget to use RXC emit dma
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Ziemba <ian.ziemba@hpe.com>
  • Loading branch information
iziemba committed Jan 23, 2024
1 parent 37db227 commit 85842b5
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions prov/cxi/src/cxip_msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -815,16 +815,13 @@ static int issue_rdzv_get(struct cxip_req *req)
(uint64_t)cmd.local_addr, cmd.request_len,
(uint64_t)cmd.remote_offset);

/* Issue Rendezvous Get command */
ret = cxi_cq_emit_dma(rxc->tx_cmdq->dev_cmdq, &cmd);
if (ret) {
RXC_DBG(rxc, "Failed to queue GET command: %d\n", ret);
return -FI_EAGAIN;
}

cxi_cq_ring(rxc->tx_cmdq->dev_cmdq);
ret = cxip_rxc_emit_dma(rxc, req->recv.vni,
cxip_ofi_to_cxi_tc(cxip_env.rget_tc),
CXI_TC_TYPE_DEFAULT, &cmd, 0);
if (ret)
RXC_WARN(rxc, "Failed to issue rendezvous get: %d\n", ret);

return FI_SUCCESS;
return ret;
}

/*
Expand Down

0 comments on commit 85842b5

Please sign in to comment.