Skip to content

Commit

Permalink
UCT/IB: Add debug log.
Browse files Browse the repository at this point in the history
  • Loading branch information
binl committed Apr 23, 2021
1 parent 75943a1 commit 3b5af27
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/uct/ib/base/ib_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,10 @@ void uct_ib_iface_fill_ah_attr_from_gid_lid(uct_ib_iface_t *iface, uint16_t lid,
} else {
udp_sport = iface->config.roce_path_factor * path_index;
}
ucs_warn("path_index: %u", path_index);
ucs_warn("rand_value: %u", iface->rand_value);
ucs_warn("udp_sport: %u", udp_sport);

/* older drivers use dlid for udp.sport, new drivers use flow_label when
its nonzero */
ah_attr->dlid = UCT_IB_ROCE_UDP_SRC_PORT_BASE | udp_sport;
Expand Down
2 changes: 1 addition & 1 deletion src/uct/ib/rc/accel/rc_mlx5_ep.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ ucs_status_t uct_rc_mlx5_ep_connect_to_ep(uct_ep_h tl_ep,
} else {
qp_num = uct_ib_unpack_uint24(rc_addr->qp_num);
}

ucs_warn("qp_num: %u", qp_num);
status = uct_rc_mlx5_ep_connect_qp(iface, &ep->tx.wq.super,
qp_num, &ah_attr);
if (status != UCS_OK) {
Expand Down
2 changes: 1 addition & 1 deletion src/uct/ib/rdmacm/rdmacm_cm_ep.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ uct_rdamcm_cm_ep_set_qp_num(struct rdma_conn_param *conn_param,
if (status != UCS_OK) {
return status;
}

ucs_warn("dummy_qp_num: %u", cep->qp->qp_num);
conn_param->qp_num = cep->qp->qp_num;
return UCS_OK;
}
Expand Down

0 comments on commit 3b5af27

Please sign in to comment.