[openib-general] [PATCH] Opensm - enabling updn algorithm

Yael Kalka yael at mellanox.co.il
Mon Oct 24 01:59:28 PDT 2005


Hi Hal,

I noticed that somewhere in the merge the flags of the up-down algorithm 
were dropped from the main.c. 
Also - you've added a patch to enable stack_dump in debug mode, but
this patch breaks our compilation under gen1. I've added a flag to check
that the stack compiled is gen2.

Thanks,
Yael

Signed-off-by:  Yael Kalka <yael at mellanox.co.il>

Index: osm/opensm/main.c
===================================================================
--- osm/opensm/main.c	(revision 3843)
+++ osm/opensm/main.c	(working copy)
@@ -452,7 +452,7 @@ main(
   boolean_t             cache_options = FALSE;
   char                 *ignore_guids_file_name = NULL;
   uint32_t              val;
-  const char * const    short_option = "i:f:ed:g:l:s:t:vVhorc";
+  const char * const    short_option = "i:f:ed:g:l:s:t:a:uvVhorc";
 
   /*
     In the array below, the 2nd parameter specified the number
@@ -498,7 +498,7 @@ main(
     exit(1);
   }
 
-#ifdef _DEBUG_
+#if defined (_DEBUG_) && defined (OSM_VENDOR_INTF_OPENIB)
   enable_stack_dump(1); 
 #endif
 




More information about the general mailing list