Skip to content

Commit f2b6da9

Browse files
authored
Merge pull request #8036 from Artemy-Mellanox/topic/cqe_scat_dct_compat-1.12
UCT/IB: Use DV QP create_flags only if needed - v1.12.x
2 parents 7465226 + 19f1790 commit f2b6da9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ $ make -C test/gtest test
131131
OS distribution or build glibc from source using versions less than 2.25 or
132132
greater than 2.29.
133133

134+
* Due to compatibility flaw when using UCX with rdma-core v22 setting
135+
UCX_DC_MLX5_RX_INLINE=0 is unsupported and will make DC transport unavailable.
136+
This issue is fixed in rdma-core v24 and backported to rdma-core-22.4-2.el7 rpm.
137+
See [ucx issue 5749](https://github.com/openucx/ucx/issues/5749) for more
138+
details.
139+
134140
<hr>
135141

136142

src/uct/ib/rc/accel/rc_mlx5_common.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,13 +1028,11 @@ void uct_rc_mlx5_common_fill_dv_qp_attr(uct_rc_mlx5_iface_common_t *iface,
10281028
unsigned scat2cqe_dir_mask)
10291029
{
10301030
#if HAVE_DECL_MLX5DV_QP_CREATE_ALLOW_SCATTER_TO_CQE
1031-
dv_attr->comp_mask |= MLX5DV_QP_INIT_ATTR_MASK_QP_CREATE_FLAGS;
1032-
dv_attr->create_flags = 0;
1033-
10341031
if ((scat2cqe_dir_mask & UCS_BIT(UCT_IB_DIR_RX)) &&
10351032
(iface->super.super.config.max_inl_cqe[UCT_IB_DIR_RX] == 0)) {
10361033
/* make sure responder scatter2cqe is disabled */
10371034
dv_attr->create_flags |= MLX5DV_QP_CREATE_DISABLE_SCATTER_TO_CQE;
1035+
dv_attr->comp_mask |= MLX5DV_QP_INIT_ATTR_MASK_QP_CREATE_FLAGS;
10381036
}
10391037
#endif
10401038

@@ -1053,6 +1051,7 @@ void uct_rc_mlx5_common_fill_dv_qp_attr(uct_rc_mlx5_iface_common_t *iface,
10531051
* unless it was already disabled on responder side (otherwise
10541052
* mlx5 driver check fails) */
10551053
dv_attr->create_flags |= MLX5DV_QP_CREATE_ALLOW_SCATTER_TO_CQE;
1054+
dv_attr->comp_mask |= MLX5DV_QP_INIT_ATTR_MASK_QP_CREATE_FLAGS;
10561055
}
10571056
#endif
10581057
}

0 commit comments

Comments
 (0)