[ofw] patch: Fix a BSOD on ipoib

Tzachi Dar tzachid at mellanox.co.il
Wed Aug 12 01:43:56 PDT 2009


The patch bellow fixes a BSOD that happens when restarting the opensm
more than once (if the local endpoint was not in the lid_endpts list).
 
Thanks
Tzachi
 
Index:
Q:/projMLNX_WinOF_2.0/MLNX_WinOF_2-0/ulp/ipoib/kernel/ipoib_port.c
===================================================================
--- Q:/projMLNX_WinOF_2.0/MLNX_WinOF_2-0/ulp/ipoib/kernel/ipoib_port.c
(revision 4634)
+++ Q:/projMLNX_WinOF_2.0/MLNX_WinOF_2-0/ulp/ipoib/kernel/ipoib_port.c
(revision 4635)
@@ -4596,8 +4596,12 @@
    &p_port->p_local_endpt->gid_item );
   cl_qmap_remove_item( &p_port->endpt_mgr.mac_endpts,
    &p_port->p_local_endpt->mac_item );
-  cl_qmap_remove_item( &p_port->endpt_mgr.lid_endpts,
-   &p_port->p_local_endpt->lid_item );
+   if( p_port->p_local_endpt->dlid ) {
+   cl_qmap_remove_item( &p_port->endpt_mgr.lid_endpts,
+    &p_port->p_local_endpt->lid_item );
+      p_port->p_local_endpt->dlid = 0;
+    }
+
   
   cl_qlist_insert_head(
    &mc_list, &p_port->p_local_endpt->mac_item.pool_item.list_item );
@@ -5153,6 +5157,8 @@
   {
    cl_qmap_remove_item(
     &p_port->endpt_mgr.lid_endpts, &p_endpt->lid_item );
+    p_endpt->dlid = 0;
+
   }
 
   cl_obj_unlock( &p_port->obj );

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


More information about the ofw mailing list