[ofw] [patch][IPoIB_NDIS6_CM] Re-enable port_reference debug by default

Alex Naslednikov xalex at mellanox.co.il
Mon Feb 7 01:33:04 PST 2011


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20110207/8c266103/attachment.html>


More information about the ofw mailing list