Skip to content

Commit

Permalink
tmp #2
Browse files Browse the repository at this point in the history
  • Loading branch information
artpol84 committed Sep 30, 2017
1 parent ed880ff commit 111b26f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/uct/ib/dc/accel/dc_mlx5.c
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ static unsigned uct_dc_mlx5_iface_progress(uct_iface_h tl_iface)
unsigned count;

count = uct_rc_mlx5_iface_common_poll_rx(&iface->mlx5_common,
&iface->super.super);
&iface->super.super, 1);
if (count > 0) {
return count;
}
Expand Down
8 changes: 5 additions & 3 deletions src/uct/ib/rc/accel/rc_mlx5_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ uct_rc_mlx5_iface_common_rx_inline(uct_rc_mlx5_iface_common_t *mlx5_iface,

static UCS_F_ALWAYS_INLINE unsigned
uct_rc_mlx5_iface_common_poll_rx(uct_rc_mlx5_iface_common_t *mlx5_common_iface,
uct_rc_iface_t *rc_iface)
uct_rc_iface_t *rc_iface, int is_dc)
{
uct_ib_mlx5_srq_seg_t *seg;
uct_ib_iface_recv_desc_t *desc;
Expand All @@ -141,7 +141,9 @@ uct_rc_mlx5_iface_common_poll_rx(uct_rc_mlx5_iface_common_t *mlx5_common_iface,
ucs_assert(uct_ib_mlx5_srq_get_wqe(&mlx5_common_iface->rx.srq,
mlx5_common_iface->rx.srq.mask)->srq.next_wqe_index == 0);

uct_rc_mlx5_srq_prefetch_first(mlx5_common_iface, rc_iface);
if (!is_dc) {
uct_rc_mlx5_srq_prefetch_first(mlx5_common_iface, rc_iface);
}

cqe = uct_ib_mlx5_poll_cq(&rc_iface->super, &mlx5_common_iface->rx.cq);
if (cqe == NULL) {
Expand All @@ -161,7 +163,7 @@ uct_rc_mlx5_iface_common_poll_rx(uct_rc_mlx5_iface_common_t *mlx5_common_iface,
/* Get a pointer to AM header (after which comes the payload)
* Support cases of inline scatter by pointing directly to CQE.
*/
if (cqe->op_own & MLX5_INLINE_SCATTER_32) {
if (!is_dc && (cqe->op_own & MLX5_INLINE_SCATTER_32)) {
hdr = (uct_rc_hdr_t*)(cqe);
uct_rc_mlx5_iface_common_rx_inline(mlx5_common_iface, rc_iface, desc,
UCT_RC_MLX5_IFACE_STAT_RX_INL_32, byte_len);
Expand Down
2 changes: 1 addition & 1 deletion src/uct/ib/rc/accel/rc_mlx5_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ unsigned uct_rc_mlx5_iface_progress(void *arg)
uct_rc_mlx5_iface_t *iface = arg;
unsigned count;

count = uct_rc_mlx5_iface_common_poll_rx(&iface->mlx5_common, &iface->super);
count = uct_rc_mlx5_iface_common_poll_rx(&iface->mlx5_common, &iface->super, 0);
if (count > 0) {
return count;
}
Expand Down

0 comments on commit 111b26f

Please sign in to comment.