Skip to content

Commit de6901e

Browse files
committed
UCT/MLX5: fix format
1 parent 1a41d42 commit de6901e

5 files changed

Lines changed: 15 additions & 108 deletions

File tree

src/uct/api/v2/uct_v2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ ucs_status_t uct_md_mem_elem_pack(uct_md_h md, uct_mem_h memh, uct_rkey_t rkey,
14591459
* The enumeration allows specifying which fields in @ref uct_ep_op_info_t are
14601460
* present, for backward compatibility support.
14611461
*/
1462-
enum uct_ep_op_info_field {
1462+
enum uct_ep_op_info_field {
14631463
UCT_EP_OP_INFO_FIELD_AM = UCS_BIT(0), /**< am_id, am_hdr* fields */
14641464
UCT_EP_OP_INFO_FIELD_DATA = UCS_BIT(1), /**< data/length (short/bcopy) */
14651465
UCT_EP_OP_INFO_FIELD_IOV = UCS_BIT(2), /**< iov/iovcnt (zcopy) */

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ uct_rc_mlx5_base_ep_query(uct_ep_h tl_ep, uct_ep_attr_t *ep_attr)
5858
qp = ep->tx.wq.super.verbs.qp;
5959
#if HAVE_DEVX
6060
} else if (ep->tx.wq.super.type == UCT_IB_MLX5_OBJ_TYPE_DEVX) {
61-
devx_obj = ep->tx.wq.super.devx.obj;
61+
devx_obj = ep->tx.wq.super.devx.obj;
6262
attr.field_mask |= UCT_IB_MLX5_EXT_QP_QUERY_ATTR_FIELD_QP_NUM;
6363
attr.qp_num = ep->tx.wq.super.qp_num;
6464
#endif
@@ -73,9 +73,8 @@ uct_rc_mlx5_base_ep_query(uct_ep_h tl_ep, uct_ep_attr_t *ep_attr)
7373
&attr);
7474
}
7575

76-
ucs_status_t
77-
uct_rc_mlx5_ep_outstanding_extract(uct_ep_h ep,
78-
const uct_ep_outstanding_extract_params_t *params)
76+
ucs_status_t uct_rc_mlx5_ep_outstanding_extract(
77+
uct_ep_h ep, const uct_ep_outstanding_extract_params_t *params)
7978
{
8079
return uct_ib_mlx5_ext_ep_outstanding_extract(ep, params);
8180
}

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -975,16 +975,16 @@ static UCS_CLASS_DEFINE_NEW_FUNC(uct_rc_mlx5_iface_t, uct_iface_t, uct_md_h,
975975

976976
static UCS_CLASS_DEFINE_DELETE_FUNC(uct_rc_mlx5_iface_t, uct_iface_t);
977977

978-
static ucs_status_t
979-
uct_rc_mlx5_iface_query_v2(uct_iface_h tl_iface, uct_iface_attr_v2_t *iface_attr)
978+
static ucs_status_t uct_rc_mlx5_iface_query_v2(uct_iface_h tl_iface,
979+
uct_iface_attr_v2_t *iface_attr)
980980
{
981981
uct_ib_mlx5_ext_iface_query_attr_t ext_attr = {};
982982
const uint64_t base_mask = UCT_IFACE_ATTR_FIELD_CAP_FLAGS |
983983
UCT_IFACE_ATTR_FIELD_MAX_PUT_SGL_ZCOPY_COUNT |
984984
UCT_IFACE_ATTR_FIELD_TX_TOKEN |
985985
UCT_IFACE_ATTR_FIELD_RX_TOKEN;
986-
const uint64_t sgl_mask = UCT_IFACE_ATTR_FIELD_CAP_FLAGS |
987-
UCT_IFACE_ATTR_FIELD_MAX_PUT_SGL_ZCOPY_COUNT;
986+
const uint64_t sgl_mask = UCT_IFACE_ATTR_FIELD_CAP_FLAGS |
987+
UCT_IFACE_ATTR_FIELD_MAX_PUT_SGL_ZCOPY_COUNT;
988988
size_t max_sgl;
989989
ucs_status_t status;
990990

@@ -998,11 +998,13 @@ uct_rc_mlx5_iface_query_v2(uct_iface_h tl_iface, uct_iface_attr_v2_t *iface_attr
998998
if (iface_attr->field_mask & sgl_mask) {
999999
max_sgl = uct_ib_mlx5_ext_max_put_sgl_zcopy_count();
10001000
if (iface_attr->field_mask & UCT_IFACE_ATTR_FIELD_CAP_FLAGS) {
1001-
iface_attr->cap.flags |=
1002-
(max_sgl > 0) ? UCT_IFACE_FLAG_V2_PUT_SGL_ZCOPY : 0;
1001+
iface_attr->cap.flags |= (max_sgl > 0) ?
1002+
UCT_IFACE_FLAG_V2_PUT_SGL_ZCOPY :
1003+
0;
10031004
}
10041005

1005-
if (iface_attr->field_mask & UCT_IFACE_ATTR_FIELD_MAX_PUT_SGL_ZCOPY_COUNT) {
1006+
if (iface_attr->field_mask &
1007+
UCT_IFACE_ATTR_FIELD_MAX_PUT_SGL_ZCOPY_COUNT) {
10061008
iface_attr->max_put_sgl_zcopy_count = max_sgl;
10071009
}
10081010
}
@@ -1023,14 +1025,12 @@ uct_rc_mlx5_iface_query_v2(uct_iface_h tl_iface, uct_iface_attr_v2_t *iface_attr
10231025
}
10241026

10251027
if (iface_attr->field_mask & UCT_IFACE_ATTR_FIELD_TX_TOKEN) {
1026-
ext_attr.field_mask |=
1027-
UCT_IB_MLX5_EXT_IFACE_QUERY_ATTR_FIELD_TX_TOKEN;
1028+
ext_attr.field_mask |= UCT_IB_MLX5_EXT_IFACE_QUERY_ATTR_FIELD_TX_TOKEN;
10281029
ext_attr.tx_token = iface_attr->tx_token;
10291030
}
10301031

10311032
if (iface_attr->field_mask & UCT_IFACE_ATTR_FIELD_RX_TOKEN) {
1032-
ext_attr.field_mask |=
1033-
UCT_IB_MLX5_EXT_IFACE_QUERY_ATTR_FIELD_RX_TOKEN;
1033+
ext_attr.field_mask |= UCT_IB_MLX5_EXT_IFACE_QUERY_ATTR_FIELD_RX_TOKEN;
10341034
ext_attr.rx_token = iface_attr->rx_token;
10351035
}
10361036

test/gtest/Makefile.am

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ gtest_SOURCES = \
130130
uct/test_uct_iface.cc \
131131
uct/test_uct_perf.cc \
132132
uct/v2/test_uct_query.cc \
133-
uct/v2/test_uct_outstanding_extract.cc \
134133
uct/test_zcopy_comp.cc \
135134
uct/uct_p2p_test.cc \
136135
uct/uct_test.cc \

test/gtest/uct/v2/test_uct_outstanding_extract.cc

Lines changed: 0 additions & 91 deletions
This file was deleted.

0 commit comments

Comments
 (0)