Skip to content

Commit

Permalink
RDMA/cxgb3: Fail posts synchronously when in TERMINATE state
Browse files Browse the repository at this point in the history
For T3B devices, mark user QP in error once we transition
to TERMINATE.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Steve Wise authored and Roland Dreier committed Feb 16, 2007
1 parent ebb9098 commit a1a7505
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/infiniband/hw/cxgb3/iwch_qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -846,6 +846,8 @@ int iwch_modify_qp(struct iwch_dev *rhp, struct iwch_qp *qhp,
break;
case IWCH_QP_STATE_TERMINATE:
qhp->attr.state = IWCH_QP_STATE_TERMINATE;
if (t3b_device(qhp->rhp))
cxio_set_wq_in_error(&qhp->wq);
if (!internal)
terminate = 1;
break;
Expand Down

0 comments on commit a1a7505

Please sign in to comment.