Skip to content

Commit

Permalink
Merge pull request #160 from evgeny-leksikov/int3_inl_scatter
Browse files Browse the repository at this point in the history
UCT/RC: fix dc qp attrs init (inl scatter)
  • Loading branch information
yosefe authored Jul 13, 2021
2 parents 397e3ba + 0aef7b3 commit 682048e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/uct/ib/mlx5/dv/ib_mlx5_dv.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ ucs_status_t uct_ib_mlx5_devx_create_qp(uct_ib_iface_t *iface,
UCT_IB_MLX5DV_SET(qpc, qpc, log_sq_size, ucs_ilog2_or0(max_tx));
UCT_IB_MLX5DV_SET(qpc, qpc, log_rq_size, ucs_ilog2_or0(max_rx));
UCT_IB_MLX5DV_SET(qpc, qpc, cs_req,
uct_ib_mlx5_qpc_cs_req(attr->max_inl_recv));
uct_ib_mlx5_qpc_cs_req(attr->max_inl_resp));
UCT_IB_MLX5DV_SET(qpc, qpc, cs_res,
uct_ib_mlx5_qpc_cs_res(attr->max_inl_resp));
uct_ib_mlx5_qpc_cs_res(attr->max_inl_recv));
UCT_IB_MLX5DV_SET64(qpc, qpc, dbr_addr, qp->devx.dbrec->offset);
UCT_IB_MLX5DV_SET(qpc, qpc, dbr_umem_id, qp->devx.dbrec->mem_id);

Expand Down
6 changes: 4 additions & 2 deletions src/uct/ib/rc/accel/rc_mlx5_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,10 @@ ucs_status_t uct_rc_mlx5_iface_create_qp(uct_rc_mlx5_iface_common_t *iface,

uct_ib_iface_fill_attr(ib_iface, attr);
#if HAVE_DECL_MLX5DV_QP_CREATE_ALLOW_SCATTER_TO_CQE
dv_attr.comp_mask = MLX5DV_QP_INIT_ATTR_MASK_QP_CREATE_FLAGS;
dv_attr.create_flags = MLX5DV_QP_CREATE_ALLOW_SCATTER_TO_CQE;
if (ib_iface->config.max_inl_resp != 0) {
dv_attr.comp_mask |= MLX5DV_QP_INIT_ATTR_MASK_QP_CREATE_FLAGS;
dv_attr.create_flags = MLX5DV_QP_CREATE_ALLOW_SCATTER_TO_CQE;
}
#endif
qp->verbs.qp = mlx5dv_create_qp(dev->ibv_context, &attr->ibv, &dv_attr);
if (qp->verbs.qp == NULL) {
Expand Down

0 comments on commit 682048e

Please sign in to comment.