提交 3fe2ed34 编写于 作者: J Joachim Fenkes 提交者: Roland Dreier

IB/ehca: Fix static rate regression

Wrong choice of port number caused modify_qp() to fail -- fixed.
Signed-off-by: NJoachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: NRoland Dreier <rolandd@cisco.com>
上级 9ed87fd3
...@@ -1203,7 +1203,7 @@ static int internal_modify_qp(struct ib_qp *ibqp, ...@@ -1203,7 +1203,7 @@ static int internal_modify_qp(struct ib_qp *ibqp,
mqpcb->service_level = attr->ah_attr.sl; mqpcb->service_level = attr->ah_attr.sl;
update_mask |= EHCA_BMASK_SET(MQPCB_MASK_SERVICE_LEVEL, 1); update_mask |= EHCA_BMASK_SET(MQPCB_MASK_SERVICE_LEVEL, 1);
if (ehca_calc_ipd(shca, my_qp->init_attr.port_num, if (ehca_calc_ipd(shca, mqpcb->prim_phys_port,
attr->ah_attr.static_rate, attr->ah_attr.static_rate,
&mqpcb->max_static_rate)) { &mqpcb->max_static_rate)) {
ret = -EINVAL; ret = -EINVAL;
...@@ -1302,7 +1302,7 @@ static int internal_modify_qp(struct ib_qp *ibqp, ...@@ -1302,7 +1302,7 @@ static int internal_modify_qp(struct ib_qp *ibqp,
mqpcb->source_path_bits_al = attr->alt_ah_attr.src_path_bits; mqpcb->source_path_bits_al = attr->alt_ah_attr.src_path_bits;
mqpcb->service_level_al = attr->alt_ah_attr.sl; mqpcb->service_level_al = attr->alt_ah_attr.sl;
if (ehca_calc_ipd(shca, my_qp->init_attr.port_num, if (ehca_calc_ipd(shca, mqpcb->alt_phys_port,
attr->alt_ah_attr.static_rate, attr->alt_ah_attr.static_rate,
&mqpcb->max_static_rate_al)) { &mqpcb->max_static_rate_al)) {
ret = -EINVAL; ret = -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册