Skip to content

Commit a1a7505

Browse files
Steve WiseRoland Dreier
authored andcommitted
RDMA/cxgb3: Fail posts synchronously when in TERMINATE state
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>
1 parent ebb9098 commit a1a7505

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/infiniband/hw/cxgb3/iwch_qp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -846,6 +846,8 @@ int iwch_modify_qp(struct iwch_dev *rhp, struct iwch_qp *qhp,
846846
break;
847847
case IWCH_QP_STATE_TERMINATE:
848848
qhp->attr.state = IWCH_QP_STATE_TERMINATE;
849+
if (t3b_device(qhp->rhp))
850+
cxio_set_wq_in_error(&qhp->wq);
849851
if (!internal)
850852
terminate = 1;
851853
break;

0 commit comments

Comments
 (0)