Skip to content

Commit

Permalink
prov/opx: Fixing bug for credit check in inject code path.
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Mann <cody.mann@cornelisnetworks.com>
  • Loading branch information
codymann-cornelisnetworks authored and j-xiong committed Sep 12, 2024
1 parent e9bc616 commit 316656e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prov/opx/include/rdma/opx/fi_opx_hfi1_transport.h
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ ssize_t fi_opx_hfi1_tx_inject (struct fid_ep *ep,
FI_OPX_HFI1_UPDATE_CREDITS(pio_state, opx_ep->tx->pio_credits_addr);
opx_ep->tx->pio_state->qw0 = pio_state.qw0;

if (FI_OPX_HFI1_AVAILABLE_CREDITS(pio_state, &opx_ep->tx->force_credit_return, credits_needed) < 1) {
if (FI_OPX_HFI1_AVAILABLE_CREDITS(pio_state, &opx_ep->tx->force_credit_return, credits_needed) < credits_needed) {
return -FI_EAGAIN;
}
}
Expand Down

0 comments on commit 316656e

Please sign in to comment.