[openib-general] [PATCH] fixes to the modify_qp masks in the core

Dotan Barak dotanb at mellanox.co.il
Thu Mar 2 00:46:48 PST 2006


modify QP mask fixes according to IB spec 1.2 section 11.2.4.2:
RTS -> RTS: IB_QP_CUR_STATE support was added to all transport types.
SQD -> SQD: IB_QP_CUR_STATE support was removed from all transport types.

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

Index: latest/drivers/infiniband/core/verbs.c
===================================================================
--- latest.orig/drivers/infiniband/core/verbs.c    2006-02-28 
10:46:53.000000000 +0200
+++ latest/drivers/infiniband/core/verbs.c    2006-02-28 
14:54:31.000000000 +0200
@@ -365,10 +365,12 @@ static const struct {
             .opt_param = {
                 [IB_QPT_UD]  = (IB_QP_CUR_STATE            |
                         IB_QP_QKEY),
-                [IB_QPT_UC]  = (IB_QP_ACCESS_FLAGS        |
+                [IB_QPT_UC]  = (IB_QP_CUR_STATE            |
+                        IB_QP_ACCESS_FLAGS        |
                         IB_QP_ALT_PATH            |
                         IB_QP_PATH_MIG_STATE),
-                [IB_QPT_RC]  = (IB_QP_ACCESS_FLAGS        |
+                [IB_QPT_RC]  = (IB_QP_CUR_STATE            |
+                        IB_QP_ACCESS_FLAGS        |
                         IB_QP_ALT_PATH            |
                         IB_QP_PATH_MIG_STATE        |
                         IB_QP_MIN_RNR_TIMER),
@@ -418,7 +420,6 @@ static const struct {
                 [IB_QPT_UD]  = (IB_QP_PKEY_INDEX        |
                         IB_QP_QKEY),
                 [IB_QPT_UC]  = (IB_QP_AV            |
-                        IB_QP_CUR_STATE            |
                         IB_QP_ALT_PATH            |
                         IB_QP_ACCESS_FLAGS        |
                         IB_QP_PKEY_INDEX        |
@@ -430,7 +431,6 @@ static const struct {
                         IB_QP_RNR_RETRY            |
                         IB_QP_MAX_QP_RD_ATOMIC        |
                         IB_QP_MAX_DEST_RD_ATOMIC    |
-                        IB_QP_CUR_STATE            |
                         IB_QP_ALT_PATH            |
                         IB_QP_ACCESS_FLAGS        |
                         IB_QP_PKEY_INDEX        |




More information about the general mailing list