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

Hal Rosenstock halr at voltaire.com
Tue Jun 13 06:09:11 PDT 2006


Hi Eitan,

On Tue, 2006-06-13 at 08:39, Eitan Zahavi wrote:
> 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.

I already had fixed this prior to committing it. I thought that was
easier than "going 'round the block" on it.

> 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 tab is supposed to be the convention, spaces are used in most OpenSM
modules and I have been trying to keep to the convention used in the
particular module.

-- Hal

>     if( p_mgr->p_subn->opt.sweep_interval )
>     {
> 





More information about the general mailing list