[ofw] [Patch][IPoIB]
Smith, Stan
stan.smith at intel.com
Mon Jan 3 14:25:10 PST 2011
Looks fine.
________________________________
From: ofw-bounces at lists.openfabrics.org [mailto:ofw-bounces at lists.openfabrics.org] On Behalf Of Alex Naslednikov
Sent: Monday, January 03, 2011 7:51 AM
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/20110103/3659f39b/attachment.html>
More information about the ofw
mailing list