[openib-general] [PATCH] mthca: fix for SQEr-to-RTS transition in modify-qp

Jack Morgenstein jackm at mellanox.co.il
Mon Jan 2 01:42:03 PST 2006


Fixes to SQEr->RTS transition in modify_qp:
1. The flag IB_QP_ACCESS_FLAGS is optional for UC qps
2. The SQEr state is not supported for RC qps

Signed-off-by: Jack Morgenstein <jackm at mellanox.co.il>

Index: latest/drivers/infiniband/hw/mthca/mthca_qp.c
===================================================================
--- latest.orig/drivers/infiniband/hw/mthca/mthca_qp.c
+++ latest/drivers/infiniband/hw/mthca/mthca_qp.c
@@ -474,9 +474,8 @@ static const struct {
 			.opt_param = {
 				[UD]  = (IB_QP_CUR_STATE             |
 					 IB_QP_QKEY),
-				[UC]  = IB_QP_CUR_STATE,
-				[RC]  = (IB_QP_CUR_STATE             |
-					 IB_QP_MIN_RNR_TIMER),
+				[UC]  = IB_QP_CUR_STATE              |
+					 IB_QP_ACCESS_FLAGS,
 				[MLX] = (IB_QP_CUR_STATE             |
 					 IB_QP_QKEY),
 			}



More information about the general mailing list