[IBAL] CM: Add debug output to print the CEP state when
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 31 Aug 2006 22:30:15 +0000 (22:30 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 31 Aug 2006 22:30:15 +0000 (22:30 +0000)
operations fail due to invalid state.

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@477 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/kernel/al_cm_cep.c

index 1570718..51ea1c3 100644 (file)
@@ -4067,6 +4067,8 @@ al_cep_listen(
        case CEP_STATE_IDLE:\r
                break;\r
        default:\r
+               AL_PRINT( TRACE_LEVEL_WARNING, AL_DBG_CM,\r
+                       ("Invalid state: %d\n", p_cep->state) );\r
                status = IB_INVALID_STATE;\r
                goto done;\r
        }\r
@@ -4590,6 +4592,8 @@ al_cep_pre_req(
                break;\r
 \r
        default:\r
+               AL_PRINT( TRACE_LEVEL_WARNING, AL_DBG_CM,\r
+                       ("Invalid state: %d\n", p_cep->state) );\r
                status = IB_INVALID_STATE;\r
        }\r
        KeReleaseInStackQueuedSpinLock( &hdl );\r
@@ -4645,6 +4649,8 @@ al_cep_send_req(
                break;\r
 \r
        default:\r
+               AL_PRINT( TRACE_LEVEL_WARNING, AL_DBG_CM,\r
+                       ("Invalid state: %d\n", p_cep->state) );\r
                status = IB_INVALID_STATE;\r
        }\r
        KeReleaseInStackQueuedSpinLock( &hdl );\r
@@ -4837,6 +4843,8 @@ al_cep_pre_rep(
                break;\r
 \r
        default:\r
+               AL_PRINT( TRACE_LEVEL_WARNING, AL_DBG_CM,\r
+                       ("Invalid state: %d\n", p_cep->state) );\r
                status = IB_INVALID_STATE;\r
        }\r
        KeReleaseInStackQueuedSpinLock( &hdl );\r
@@ -4897,6 +4905,8 @@ al_cep_send_rep(
                break;\r
 \r
        default:\r
+               AL_PRINT( TRACE_LEVEL_WARNING, AL_DBG_CM,\r
+                       ("Invalid state: %d\n", p_cep->state) );\r
                status = IB_INVALID_STATE;\r
        }\r
        KeReleaseInStackQueuedSpinLock( &hdl );\r
@@ -4986,6 +4996,8 @@ al_cep_rtu(
                break;\r
 \r
        default:\r
+               AL_PRINT( TRACE_LEVEL_WARNING, AL_DBG_CM,\r
+                       ("Invalid state: %d\n", p_cep->state) );\r
                status = IB_INVALID_STATE;\r
        }\r
        KeReleaseInStackQueuedSpinLock( &hdl );\r
@@ -5040,6 +5052,8 @@ al_cep_rej(
                break;\r
 \r
        default:\r
+               AL_PRINT( TRACE_LEVEL_WARNING, AL_DBG_CM,\r
+                       ("Invalid state: %d\n", p_cep->state) );\r
                status = IB_INVALID_STATE;\r
        }\r
 \r
@@ -5305,6 +5319,8 @@ al_cep_lap(
                break;\r
 \r
        default:\r
+               AL_PRINT( TRACE_LEVEL_WARNING, AL_DBG_CM,\r
+                       ("Invalid state: %d\n", p_cep->state) );\r
                status = IB_INVALID_STATE;\r
                break;\r
        }\r
@@ -5432,6 +5448,8 @@ al_cep_pre_apr(
                break;\r
 \r
        default:\r
+               AL_PRINT( TRACE_LEVEL_WARNING, AL_DBG_CM,\r
+                       ("Invalid state: %d\n", p_cep->state) );\r
                status = IB_INVALID_STATE;\r
                break;\r
        }\r
@@ -5486,6 +5504,8 @@ al_cep_send_apr(
                break;\r
 \r
        default:\r
+               AL_PRINT( TRACE_LEVEL_WARNING, AL_DBG_CM,\r
+                       ("Invalid state: %d\n", p_cep->state) );\r
                status = IB_INVALID_STATE;\r
                break;\r
        }\r
@@ -5554,6 +5574,8 @@ al_cep_dreq(
                break;\r
 \r
        default:\r
+               AL_PRINT( TRACE_LEVEL_WARNING, AL_DBG_CM,\r
+                       ("Invalid state: %d\n", p_cep->state) );\r
                status = IB_INVALID_STATE;\r
                break;\r
        }\r
@@ -5607,6 +5629,8 @@ al_cep_drep(
                break;\r
 \r
        default:\r
+               AL_PRINT( TRACE_LEVEL_WARNING, AL_DBG_CM,\r
+                       ("Invalid state: %d\n", p_cep->state) );\r
                status = IB_INVALID_STATE;\r
                break;\r
        }\r
@@ -5657,6 +5681,8 @@ al_cep_migrate(
 \r
                /* Fall through. */\r
        default:\r
+               AL_PRINT( TRACE_LEVEL_WARNING, AL_DBG_CM,\r
+                       ("Invalid state: %d\n", p_cep->state) );\r
                status = IB_INVALID_STATE;\r
                break;\r
        }\r
@@ -5700,6 +5726,8 @@ al_cep_established(
                break;\r
 \r
        default:\r
+               AL_PRINT( TRACE_LEVEL_WARNING, AL_DBG_CM,\r
+                       ("Invalid state: %d\n", p_cep->state) );\r
                status = IB_INVALID_STATE;\r
                break;\r
        }\r
@@ -5764,6 +5792,8 @@ al_cep_get_rtr_attr(
                break;\r
 \r
        default:\r
+               AL_PRINT( TRACE_LEVEL_WARNING, AL_DBG_CM,\r
+                       ("Invalid state: %d\n", p_cep->state) );\r
                status = IB_INVALID_STATE;\r
                break;\r
        }\r
@@ -5837,6 +5867,8 @@ al_cep_get_rts_attr(
                break;\r
 \r
        default:\r
+               AL_PRINT( TRACE_LEVEL_WARNING, AL_DBG_CM,\r
+                       ("Invalid state: %d\n", p_cep->state) );\r
                status = IB_INVALID_STATE;\r
                break;\r
        }\r