Skip to content

Commit b254a03

Browse files
committed
UCT/IB/MLX5: return unsupport for DM PUT
1 parent f865085 commit b254a03

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static void uct_rc_mlx5_op_info_fill_put_short(
124124
info->field_mask |= UCT_EP_OP_INFO_FIELD_OPERATION;
125125
}
126126

127-
static void
127+
static ucs_status_t
128128
uct_rc_mlx5_op_info_fill_put_bcopy(uct_ep_op_info_t *info,
129129
uct_rc_iface_send_op_t *op,
130130
const struct mlx5_wqe_data_seg *dptr,
@@ -135,6 +135,9 @@ uct_rc_mlx5_op_info_fill_put_bcopy(uct_ep_op_info_t *info,
135135
int is_dm;
136136

137137
uct_rc_mlx5_get_dptr_buffer(op, dptr, &buffer, &length, &is_dm);
138+
if (is_dm) {
139+
return UCS_ERR_UNSUPPORTED;
140+
}
138141

139142
info->rma.payload.data.buffer = buffer;
140143
info->rma.payload.data.length = length;
@@ -144,6 +147,8 @@ uct_rc_mlx5_op_info_fill_put_bcopy(uct_ep_op_info_t *info,
144147

145148
info->operation = is_dm ? UCT_EP_OP_PUT_SHORT : UCT_EP_OP_PUT_BCOPY;
146149
info->field_mask |= UCT_EP_OP_INFO_FIELD_OPERATION;
150+
151+
return UCS_OK;
147152
}
148153

149154
static void uct_rc_mlx5_op_info_fill_put_zcopy(
@@ -216,11 +221,8 @@ static ucs_status_t uct_rc_mlx5_op_info_fill_put(
216221
}
217222

218223
if ((void*)op->handler == (void*)ucs_mpool_put) {
219-
uct_rc_mlx5_op_info_fill_put_bcopy(info, op,
220-
(const struct mlx5_wqe_data_seg*)inl,
221-
raddr);
222-
223-
return UCS_OK;
224+
return uct_rc_mlx5_op_info_fill_put_bcopy(
225+
info, op, (const struct mlx5_wqe_data_seg*)inl, raddr);
224226
}
225227

226228
ucs_diag("unsupported put op %p handler %s", op,

0 commit comments

Comments
 (0)