Skip to content

Commit

Permalink
UCT/RC/MLX5: Check RDMA_RESOURCES for AMs to avoid reorder
Browse files Browse the repository at this point in the history
  • Loading branch information
yosefe committed Sep 14, 2020
1 parent 6108381 commit 0b834d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/uct/ib/rc/accel/rc_mlx5_ep.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ uct_rc_mlx5_ep_am_short(uct_ep_h tl_ep, uint8_t id, uint64_t hdr,
UCT_CHECK_LENGTH(length + sizeof(uct_rc_mlx5_am_short_hdr_t), 0,
iface->dm.seg_len, "am_short");
UCT_CHECK_AM_ID(id);
UCT_RC_CHECK_RES(&iface->super, &ep->super);
UCT_RC_CHECK_RMA_RES(&iface->super, &ep->super);
UCT_RC_CHECK_FC(&iface->super, &ep->super, id);

uct_rc_mlx5_am_hdr_fill(&cache.am_hdr.rc_hdr, id);
Expand Down Expand Up @@ -325,7 +325,7 @@ ssize_t uct_rc_mlx5_ep_am_bcopy(uct_ep_h tl_ep, uint8_t id,
size_t length;

UCT_CHECK_AM_ID(id);
UCT_RC_CHECK_RES(&iface->super, &ep->super);
UCT_RC_CHECK_RMA_RES(&iface->super, &ep->super);
UCT_RC_CHECK_FC(&iface->super, &ep->super, id);
UCT_RC_IFACE_GET_TX_AM_BCOPY_DESC(&iface->super, &iface->super.tx.mp, desc,
id, uct_rc_mlx5_am_hdr_fill, uct_rc_mlx5_hdr_t,
Expand Down Expand Up @@ -353,6 +353,7 @@ ucs_status_t uct_rc_mlx5_ep_am_zcopy(uct_ep_h tl_ep, uint8_t id, const void *hea
UCT_RC_MLX5_CHECK_AM_ZCOPY(id, header_length, uct_iov_total_length(iov, iovcnt),
iface->super.super.config.seg_size, 0);
UCT_RC_CHECK_FC(&iface->super, &ep->super, id);
UCT_RC_CHECK_NUM_RDMA_READ(&iface->super);

status = uct_rc_mlx5_ep_zcopy_post(ep, MLX5_OPCODE_SEND, iov, iovcnt, 0ul,
id, header, header_length, 0, 0, 0ul, 0, 0,
Expand Down

0 comments on commit 0b834d7

Please sign in to comment.