[ofw] [PATCH]

Alex Naslednikov xalex at mellanox.co.il
Wed Dec 22 01:20:38 PST 2010


Please, commit

-----Original Message-----
From: Smith, Stan [mailto:stan.smith at intel.com] 
Sent: Saturday, December 11, 2010 3:11 AM
To: Alex Naslednikov
Cc: ofw at lists.openfabrics.org
Subject: [PATCH]

White space adjustments and empty line removal.
Long lines split.

Please see patch file as outlook has hosed the <tab>s.


signed-off-by: stan smith <stan.smith at intel.com>

--- A/ulp/ipoib_NDIS6_CM/kernel/ipoib_adapter.cpp       Fri Dec 10 10:57:03 2010
+++ B/ulp/ipoib_NDIS6_CM/kernel/ipoib_adapter.cpp       Fri Dec 10 10:50:47 2010
@@ -277,7 +277,7 @@
        IPOIB_ENTER( IPOIB_DBG_INIT );

        status = __ipoib_pnp_reg( p_adapter,
-               IB_PNP_FLAG_REG_SYNC | IB_PNP_FLAG_REG_COMPLETE );
+                                                         
+ IB_PNP_FLAG_REG_SYNC | IB_PNP_FLAG_REG_COMPLETE );

        IPOIB_EXIT( IPOIB_DBG_INIT );
        return status;
@@ -393,7 +393,6 @@
                return IB_ERROR;
        }

-
        /* We manually manage the size and capacity of the vector. */
        cl_status = cl_vector_init( &p_adapter->ip_vector, 0,
                0, sizeof(net_address_item_t), NULL, NULL, p_adapter ); @@ -517,7 +516,8 @@
        {
                IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_OBJ,
                        ("Adapter[%p] has refcnt= %d\n", p_adapter, p_adapter->obj.ref_cnt));
-               p_adapter->p_ifc->dereg_pnp( p_adapter->h_pnp, (ib_pfn_destroy_cb_t) cl_obj_deref );
+               p_adapter->p_ifc->dereg_pnp( p_adapter->h_pnp,
+                                                                        
+ (ib_pfn_destroy_cb_t) cl_obj_deref );
                IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_OBJ,
                        ("Adapter[%p] refcnt decremented to %d\n",
                                p_adapter, p_adapter->obj.ref_cnt)); @@ -627,7 +627,7 @@

        p_adapter->p_port->pkey_index = index;
        IPOIB_PRINT_EXIT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_IB,
-                                       ("for PKEY = 0x%04X got index = %d\n",p_adapter->guids.port_guid.pkey,index));
+               ("for PKEY 0x%04X got index 
+ %d\n",p_adapter->guids.port_guid.pkey,index));

 pkey_end:
        if(ca_attr)
@@ -636,7 +636,7 @@
 }

 static inline void __ipoib_get_down(
-       IN ipoib_adapter_t              *p_adapter)
+       IN ipoib_adapter_t              *p_adapter )
 {

        NDIS_LINK_STATE         link_state;
@@ -752,7 +752,7 @@
                if (p_adapter->state != IB_PNP_PORT_DOWN) {
                        IPOIB_PRINT( TRACE_LEVEL_ERROR, IPOIB_DBG_ERROR,
                                (" Port got IB_PNP_PORT_REMOVE before IB_PNP_PORT_DOWN\n"));
-                       __ipoib_get_down( p_adapter);
+                       __ipoib_get_down( p_adapter );
                }

                /* Release all IB resources. */ @@ -1388,7 +1388,8 @@
                                                           NDIS_STATUS_LINK_STATE,
                                                           (PVOID)&link_state,
                                                           sizeof(link_state));
-               IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_INIT, ("Indicate Disconnect!\n") );
+               IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_INIT,
+                       ("Indicate Disconnect!\n") );
                NdisMIndicateStatusEx(p_adapter->h_adapter,&status_indication);

                ipoib_resume_oids( p_adapter );



More information about the ofw mailing list