[IPoIB NDIS 6.0 CM] Fixing a possible race when we get PORT_REMOVE before PORT_DOWN...
[mirror/winof/.git] / ulp / ipoib_NDIS6_CM / kernel / ipoib_port.cpp
index cfb8e73..dec7dce 100644 (file)
@@ -793,7 +793,7 @@ __port_init(
        cl_status = cl_obj_init( &p_port->obj, CL_DESTROY_SYNC,\r
                __port_destroying, __port_cleanup, __port_free );\r
 \r
-#if DBG\r
+#if 0\r
        cl_atomic_inc( &p_port->ref[ref_init] );\r
        IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_OBJ,\r
                ("ref type %d ref_cnt %d\n", ref_init, p_port->obj.ref_cnt) );\r
@@ -815,7 +815,7 @@ __port_init(
                return IB_ERROR;\r
        }\r
 \r
-#if DBG\r
+#if 0\r
        cl_atomic_inc( &p_port->ref[ref_init] );\r
        IPOIB_PRINT( TRACE_LEVEL_ERROR, IPOIB_DBG_OBJ,\r
                ("ref type %d ref_cnt %d\n", ref_init, p_port->obj.ref_cnt) );\r
@@ -6508,7 +6508,7 @@ __endpt_mgr_insert(
                return IB_INVALID_STATE;\r
        }\r
 \r
-#if DBG\r
+#if 0\r
        cl_atomic_inc( &p_port->ref[ref_endpt_track] );\r
        IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_OBJ,\r
                ("ref  type %d ref_cnt %d\n", ref_endpt_track, p_port->obj.ref_cnt) );\r
@@ -6646,7 +6646,7 @@ ipoib_port_remove_endpt(
                //TODO CM\r
                //endpt_cm_destroy_conn( p_port, p_endpt );\r
 \r
-#if DBG\r
+#if 0\r
                cl_atomic_dec( &p_port->ref[ref_endpt_track] );\r
                IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_ENDPT,\r
                        ("ref type %d ref_cnt %d\n", ref_endpt_track, p_port->obj.ref_cnt) );\r