Skip to contentSkip to conversation

2.6.21 iw_cxgb3 Fail posts synchronously when in TERMINATE state.

PATCH Applied Steve Wise 2 participants 2 messages Feb 15, 2007

Subsystems (3)
lore
Share & tools
lore

Steve Wise

author
#0 lore raw

PATCH 1/1 2.6.21 iw_cxgb3 Fail posts synchronously when in TERMINATE state.

From: Steve Wise <[email protected]>

Fail posts synchronously when in TERMINATE state.

For T3B devices, mark user qp in error once we transition to TERMINATE.

---

 drivers/infiniband/hw/cxgb3/iwch_qp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/infiniband/hw/cxgb3/iwch_qp.c +2 -0
index e066727..da13a38 100644
@@ -846,6 +846,8 @@ int iwch_modify_qp(struct iwch_dev *rhp,
 			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;