[openib-general] [PATCH] osm: Provide SUBNET UP message every heavy sweep - resend

Eitan Zahavi eitan at mellanox.co.il
Tue Jun 13 05:39:15 PDT 2006


Hi Hal

Sorry bout the previous patch - I got the } else { in it.

This trivial patch provides a "SUBNET UP" message (with level INFO)
every time the SM completes a full heavy sweep. It is most useful for
cases where you want to make sure teh SM responded to some change in
the fabric. Also used to sync the various test flows to the end of sweeps.

Eitan

Signed-off-by:  Eitan Zahavi <eitan at mellanox.co.il>

Index: opensm/osm_state_mgr.c
===================================================================
--- opensm/osm_state_mgr.c	(revision 7904)
+++ opensm/osm_state_mgr.c	(working copy)
@@ -200,6 +200,10 @@ __osm_state_mgr_up_msg(
       /* clear the signal */
       p_mgr->p_subn->moved_to_master_state = FALSE;
    }
+	else
+	{
+      osm_log( p_mgr->p_log, OSM_LOG_INFO, "SUBNET UP\n" ); /* Format Waived */
+	}
 
    if( p_mgr->p_subn->opt.sweep_interval )
    {





More information about the general mailing list