[ofw] [Patch][IPoIB]

Alex Naslednikov xalex at mellanox.co.il
Wed Jan 26 00:36:45 PST 2011


Applied at 3082

From: Alex Naslednikov
Sent: Monday, January 03, 2011 5:51 PM
To: Alex Naslednikov; ofw at lists.openfabrics.org
Subject: RE: [ofw][Patch][IPoIB]

The situation described by the ASSERT can happen:
Shutdown is called while reset process wasn't completed yet
Index: ulp/ipoib_NDIS6_CM/kernel/ipoib_driver.cpp
===================================================================
--- ulp/ipoib_NDIS6_CM/kernel/ipoib_driver.cpp             (revision 3053)
+++ ulp/ipoib_NDIS6_CM/kernel/ipoib_driver.cpp          (working copy)
@@ -3296,7 +3296,13 @@
                                // Wait until NDIS will return all indicated NBLs that were received
                                // Avoid shutting the shutter twice
                                KeAcquireInStackQueuedSpinLock( &g_ipoib.lock, &hdl );
-                              ASSERT ( !(p_adapter->ipoib_state & IPOIB_RESET_OR_DOWN) );
+
+                             if ( p_adapter->ipoib_state & IPOIB_RESET_OR_DOWN )
+                             {
+                                             IPOIB_PRINT( TRACE_LEVEL_WARNING, IPOIB_DBG_ALL,
+                                             ("Shutdown occurred while reset process wasn't completed yet\n") );
+                             }
+
                                if ( p_adapter->ipoib_state == IPOIB_RUNNING ) { //ensure that there was no active reset
                                                shutter_shut( &p_adapter->recv_shutter );
                                                // Notify that shutter was already shut

Alexander (XaleX) Naslednikov
SW Networking Team
Mellanox Technologies


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


More information about the ofw mailing list