Applied at 3081

From: Alex Naslednikov
Sent: Monday, January 03, 2011 5:46 PM
To: [email protected]
Subject: [ofw][Patch][IPoIB]

30

Index: B:/users/xalex/WoF-trunk/ulp/ipoib/kernel/ipoib_adapter.c
===================================================================
--- B:/users/xalex/WoF-trunk/ulp/ipoib/kernel/ipoib_adapter.c               
(revision 3053)
+++ B:/users/xalex/WoF-trunk/ulp/ipoib/kernel/ipoib_adapter.c            
(working copy)
@@ -994,12 +994,13 @@

                if( p_port )
                                ipoib_port_destroy( p_port );
-              ASSERT(p_adapter->reset == TRUE);
+
                if( state != IB_PNP_PORT_REMOVE )
                {
                                status = __ipoib_pnp_reg( p_adapter, 
IB_PNP_FLAG_REG_COMPLETE );
                                if( status != IB_SUCCESS )
                                {
+                                             ASSERT( p_adapter->reset == TRUE 
);
                                                p_adapter->reset = FALSE;
                                                IPOIB_PRINT( TRACE_LEVEL_ERROR, 
IPOIB_DBG_ERROR,
                                                                
("__ipoib_pnp_reg returned %s\n",
@@ -1010,6 +1011,7 @@
                }
                else
                {
+                             ASSERT( p_adapter->reset == TRUE );
                                p_adapter->reset = FALSE;
                                NdisMResetComplete(
                                                p_adapter->h_adapter, 
NDIS_STATUS_SUCCESS, TRUE );

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