Orabug:
24810237
Fix an issue in modify_qp_hw from SQE to RTS returns
EPSC_MODIFY_CANNOT_CHANGE_QP_ATTR. In sif, qp transition
from SQE to RTS must explicitly set the req_access_error
to 0.
Signed-off-by: Wei Lin Guay <wei.lin.guay@oracle.com>
Reviewed-by: Knut Omang <knut.omang@oracle.com>
}
ok_modify_qp_sw:
+ /* The QP mask for QP transition is checked in sif_modify_qp_is_ok.
+ * No check for qp_type because only UC/UD and MANSP1 can be transitioned
+ * to SQE.
+ */
+ if ((qp_attr->qp_state == IB_QPS_RTS) && (qp_attr->cur_qp_state == IB_QPS_SQE)) {
+ ctrl_attr->req_access_error = 1;
+ mct->data.req_access_error = 0;
+ }
/*
* On modify to RTR, we set the TSU SL (tsl), because we have