[ofw] [Patch][IPoIB_NDIS6_CM] Fix at __ipoib_port_down()

Alex Naslednikov xalex at mellanox.co.il
Sun Sep 19 06:07:15 PDT 2010


We still have a difference between MLNX and OFW trunks.
I continue to resend patches that were not applied for unknown reasons.
--

Fixing the situation when adapter remains to be in connected state even after cable disconnect.
That was because __ipoib_port_down called __ipoib_reset_all that disables and then enables the status
Signed-off by: Alexander Naslednikov

Index: ipoib_adapter.cpp
===================================================================
--- ipoib_adapter.cpp	(revision 5258)
+++ ipoib_adapter.cpp	(revision 5259)
@@ -585,6 +585,7 @@
 static inline void __ipoib_get_down(
 	IN ipoib_adapter_t		*p_adapter) 
 {
+	ipoib_port_down( p_adapter->p_port );
 
 	NDIS_LINK_STATE         link_state;
 	NDIS_STATUS_INDICATION	status_indication;
@@ -608,7 +609,7 @@
 	IPOIB_PRINT( TRACE_LEVEL_INFORMATION, IPOIB_DBG_INIT,
 		("Link DOWN!\n") );
 
-	ipoib_port_down( p_adapter->p_port );
+	
 }
 
 static ib_api_status_t



More information about the ofw mailing list