提交 088af154 编写于 作者: J Joachim Fenkes 提交者: Roland Dreier

IB/ehca: Reject send WRs only for RESET, INIT and RTR state

Signed-off-by: NJoachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: NRoland Dreier <rolandd@cisco.com>
上级 5f625606
...@@ -421,8 +421,10 @@ int ehca_post_send(struct ib_qp *qp, ...@@ -421,8 +421,10 @@ int ehca_post_send(struct ib_qp *qp,
int ret = 0; int ret = 0;
unsigned long flags; unsigned long flags;
if (unlikely(my_qp->state != IB_QPS_RTS)) { /* Reject WR if QP is in RESET, INIT or RTR state */
ehca_err(qp->device, "QP not in RTS state qpn=%x", qp->qp_num); if (unlikely(my_qp->state < IB_QPS_RTS)) {
ehca_err(qp->device, "Invalid QP state qp_state=%d qpn=%x",
my_qp->state, qp->qp_num);
return -EINVAL; return -EINVAL;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册