Skip to content

Commit 4c46031

Browse files
swelchheemstra
authored andcommitted
prov/cxi: Fix use of alt_read rget restricted TC type
When issuing rendezvous gets with the alt_read rendezvous protocol active we need to use the tc_type of restricted. Signed-off-by: Steve Welch <[email protected]>
1 parent cf99bc9 commit 4c46031

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

prov/cxi/src/cxip_msg_hpc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ static int issue_rdzv_get(struct cxip_req *req)
379379
union cxip_match_bits mb = {};
380380
int ret;
381381
union c_fab_addr dfa;
382+
enum cxi_traffic_class_type tc_type;
382383

383384
if (req->recv.rdzv_proto == CXIP_RDZV_PROTO_ALT_WRITE)
384385
RXC_WARN_ONCE(rxc, "Rendezvous protocol: %s not implemented\n",
@@ -396,11 +397,13 @@ static int issue_rdzv_get(struct cxip_req *req)
396397
pid_idx = CXIP_PTL_IDX_RDZV_RESTRICTED(req->recv.rdzv_lac);
397398
cmd.restricted = 1;
398399
req->recv.done_notify = true;
400+
tc_type = CXI_TC_TYPE_RESTRICTED;
399401
} else {
400402
pid_idx = rxc->base.domain->iface->dev->info.rdzv_get_idx;
401403
mb.rdzv_lac = req->recv.rdzv_lac;
402404
mb.rdzv_id_lo = req->recv.rdzv_id;
403405
mb.rdzv_id_hi = req->recv.rdzv_id >> CXIP_RDZV_ID_CMD_WIDTH;
406+
tc_type = CXI_TC_TYPE_DEFAULT;
404407
}
405408
cmd.match_bits = mb.raw;
406409

@@ -446,7 +449,7 @@ static int issue_rdzv_get(struct cxip_req *req)
446449

447450
ret = cxip_rxc_emit_dma(rxc, req->recv.vni,
448451
cxip_ofi_to_cxi_tc(cxip_env.rget_tc),
449-
CXI_TC_TYPE_DEFAULT, &cmd, 0);
452+
tc_type, &cmd, 0);
450453
if (ret)
451454
RXC_WARN(rxc, "Failed to issue rendezvous get: %d\n", ret);
452455

0 commit comments

Comments
 (0)