Skip to content

Commit

Permalink
prov/efa: Only update tag in rxe for tagged operation.
Browse files Browse the repository at this point in the history
Currently, efa_rdm_pke_rtm_update_rxe updates rxe->tag
and rxe->cq_entry.tag for both untagged and tagged operations.
This is a bug because it should be updated for ofi_op_tagged operation.

Signed-off-by: Shi Jin <sjina@amazon.com>
  • Loading branch information
shijin-aws committed Jun 7, 2024
1 parent e24e9ce commit 72a6aaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 0 additions & 2 deletions prov/efa/src/rdm/efa_rdm_msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -701,8 +701,6 @@ struct efa_rdm_ope *efa_rdm_msg_alloc_unexp_rxe_for_rtm(struct efa_rdm_ep *ep,
if (OFI_UNLIKELY(!rxe))
return NULL;

if (op == ofi_op_tagged)
rxe->tag = efa_rdm_pke_get_rtm_tag(unexp_pkt_entry);
rxe->internal_flags = 0;
rxe->state = EFA_RDM_RXE_UNEXP;
rxe->unexp_pkt = unexp_pkt_entry;
Expand Down
6 changes: 4 additions & 2 deletions prov/efa/src/rdm/efa_rdm_pke_rtm.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ void efa_rdm_pke_rtm_update_rxe(struct efa_rdm_pke *pkt_entry,
rxe->addr = pkt_entry->addr;
rxe->msg_id = efa_rdm_pke_get_rtm_msg_id(pkt_entry);
rxe->total_len = efa_rdm_pke_get_rtm_msg_length(pkt_entry);
rxe->tag = efa_rdm_pke_get_rtm_tag(pkt_entry);
rxe->cq_entry.tag = rxe->tag;
if (rxe->op == ofi_op_tagged) {
rxe->tag = efa_rdm_pke_get_rtm_tag(pkt_entry);
rxe->cq_entry.tag = rxe->tag;
}
}

/**
Expand Down

0 comments on commit 72a6aaf

Please sign in to comment.