[openib-general] [PATCH] osm: Provide SUBNET UP message every heavy sweep
Eitan Zahavi
eitan at mellanox.co.il
Tue Jun 13 03:44:57 PDT 2006
Hi Hal
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)
@@ -199,6 +199,8 @@ __osm_state_mgr_up_msg(
osm_log( p_mgr->p_log, OSM_LOG_SYS, "SUBNET UP\n" ); /* Format Waived */
/* 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