Re-enable port referencing debug by default for checked version of the driver
Signed off by: Alexander Naslednikov (xalex at mellanox.co.il)
Index: B:/users/xalex/MLNX_VPI_trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp
===================================================================
--- B:/users/xalex/MLNX_VPI_trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp      
     (revision 7337)
+++ B:/users/xalex/MLNX_VPI_trunk/ulp/ipoib_NDIS6_CM/kernel/ipoib_port.cpp      
  (revision 7341)
@@ -685,11 +685,10 @@
                return memcmp( p_key1, p_key2, sizeof(ib_gid_t) );
 }

-
 inline void ipoib_port_ref( ipoib_port_t * p_port, int type )
 {
                cl_obj_ref( &p_port->obj );
-#if _PORT_REFS
+#if DBG
                int32_t  r = cl_atomic_inc( &p_port->ref[type % ref_mask] );

                if( ((p_port->obj.ref_cnt % 20) == 0) || p_port->obj.ref_cnt < 
10 )
@@ -705,7 +704,7 @@
 inline void ipoib_port_deref(ipoib_port_t * p_port, int type)
 {
                cl_obj_deref( &p_port->obj );
-#if _PORT_REFS
+#if DBG
                int32_t r = cl_atomic_dec( &p_port->ref[type % ref_mask] );

                if( ((p_port->obj.ref_cnt % 20) == 0) || p_port->obj.ref_cnt < 
10 )
Alexander (XaleX) Naslednikov
SW Networking Team
Mellanox Technologies

_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to