[openib-general] [PATCH] [mthca] Allow the following QP state transition : reset --> reset

Dotan Barak dotanb at dev.mellanox.co.il
Tue Jan 9 01:53:07 PST 2007


Allow the following QP state transition : reset --> reset.

Signed-off-by: Dotan Barak <dotanb at mellanox.co.il>
---

Index: gen2_devel_kernel/drivers/infiniband/hw/mthca/mthca_qp.c
===================================================================
--- gen2_devel_kernel.orig/drivers/infiniband/hw/mthca/mthca_qp.c	2007-01-08 16:14:25.000000000 +0200
+++ gen2_devel_kernel/drivers/infiniband/hw/mthca/mthca_qp.c	2007-01-09 11:34:42.000000000 +0200
@@ -573,6 +573,11 @@ int mthca_modify_qp(struct ib_qp *ibqp, 
 		goto out;
 	}
 
+	if (cur_state == new_state && cur_state == IB_QPS_RESET) {
+		err = 0;
+		goto out;
+	}
+
 	if ((attr_mask & IB_QP_PKEY_INDEX) &&
 	     attr->pkey_index >= dev->limits.pkey_table_len) {
 		mthca_dbg(dev, "P_Key index (%u) too large. max is %d\n",






More information about the general mailing list