Skip to content

Commit

Permalink
Merge pull request #6062 from yosefe/topic/uct-ib-devx-set-modify-qp-…
Browse files Browse the repository at this point in the history
…global-v1.10.x

UCT/IB/DEVX: Set modify-QP global address parameters only for GRH case - v1.10.x
  • Loading branch information
yosefe authored Dec 29, 2020
2 parents 102a97e + eed3c47 commit a212a09
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/uct/ib/rc/accel/rc_mlx5_devx.c
Original file line number Diff line number Diff line change
Expand Up @@ -377,16 +377,19 @@ uct_rc_mlx5_iface_common_devx_connect_qp(uct_rc_mlx5_iface_common_t *iface,
UCT_IB_MLX5DV_SET(qpc, qpc, primary_address_path.rlid, ah_attr->dlid);
UCT_IB_MLX5DV_SET(qpc, qpc, primary_address_path.mlid,
ah_attr->src_path_bits & 0x7f);
UCT_IB_MLX5DV_SET(qpc, qpc, primary_address_path.hop_limit,
ah_attr->grh.hop_limit);
memcpy(UCT_IB_MLX5DV_ADDR_OF(qpc, qpc, primary_address_path.rgid_rip),
&ah_attr->grh.dgid,
UCT_IB_MLX5DV_FLD_SZ_BYTES(qpc, primary_address_path.rgid_rip));
UCT_IB_MLX5DV_SET(qpc, qpc, primary_address_path.sl,
iface->super.super.config.sl);
/* TODO add flow_label support */
UCT_IB_MLX5DV_SET(qpc, qpc, primary_address_path.tclass,
iface->super.super.config.traffic_class);

if (ah_attr->is_global) {
UCT_IB_MLX5DV_SET(qpc, qpc, primary_address_path.hop_limit,
ah_attr->grh.hop_limit);
memcpy(UCT_IB_MLX5DV_ADDR_OF(qpc, qpc, primary_address_path.rgid_rip),
&ah_attr->grh.dgid,
UCT_IB_MLX5DV_FLD_SZ_BYTES(qpc, primary_address_path.rgid_rip));
/* TODO add flow_label support */
UCT_IB_MLX5DV_SET(qpc, qpc, primary_address_path.tclass,
iface->super.super.config.traffic_class);
}
}

UCT_IB_MLX5DV_SET(qpc, qpc, primary_address_path.vhca_port_num, ah_attr->port_num);
Expand Down

0 comments on commit a212a09

Please sign in to comment.