Skip to content

Commit

Permalink
prov/cxi: Fix fi_cq_strerror
Browse files Browse the repository at this point in the history
ofi_cq_strerror() was being called instead of cxip_cq_strerror().

Signed-off-by: Ian Ziemba <ian.ziemba@hpe.com>
  • Loading branch information
iziemba committed Jan 16, 2025
1 parent a93beca commit 091b20b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions prov/cxi/src/cxip_cq.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ static struct fi_ops_cq cxip_cq_ops = {
.sread = cxip_cq_sread,
.sreadfrom = cxip_cq_sreadfrom,
.signal = cxip_cq_signal,
.strerror = ofi_cq_strerror,
.strerror = cxip_cq_strerror,
};

static struct fi_cq_attr cxip_cq_def_attr = {
Expand Down Expand Up @@ -510,7 +510,6 @@ int cxip_cq_open(struct fid_domain *domain, struct fi_cq_attr *attr,
goto err_util_cq;
}

cxi_cq->util_cq.cq_fid.ops->strerror = &cxip_cq_strerror;
cxi_cq->util_cq.cq_fid.fid.ops = &cxip_cq_fi_ops;
cxi_cq->util_cq.cq_fid.ops = &cxip_cq_ops;
cxi_cq->domain = cxi_dom;
Expand Down

0 comments on commit 091b20b

Please sign in to comment.