[ofa-general] [PATCH] opensm/osm_ucast_mgr.c: simplify fwd tables setup flow

Sasha Khapyorsky sashak at voltaire.com
Sat Aug 29 09:25:55 PDT 2009


On 12:03 Fri 28 Aug     , Hal Rosenstock wrote:
> 
> lash_core: ERR 4D02: Lane requirements (9) exceed available lanes (8) with
> starting lane (0)
> ucast_mgr_route: lash: cannot build fwd tables.
> osm_ucast_mgr_process: minhop tables configured on all switches
> ERR 331D: LFT of switch 0xguid is not up to date.
> 
> Prior to this change, the LFTs were pushed for this fallback case (and no
> ERR 331D occured).

Nice catch.

Such addition is needed to make a fallback to work properly:

diff --git a/opensm/opensm/osm_ucast_mgr.c b/opensm/opensm/osm_ucast_mgr.c
index b7e3893..39d825c 100644
--- a/opensm/opensm/osm_ucast_mgr.c
+++ b/opensm/opensm/osm_ucast_mgr.c
@@ -1007,6 +1007,7 @@ int osm_ucast_mgr_process(IN osm_ucast_mgr_t * p_mgr)
 		/* If configured routing algorithm failed, use default MinHop */
 		osm_ucast_mgr_build_lid_matrices(p_mgr);
 		ucast_mgr_build_lfts(p_mgr);
+		osm_ucast_mgr_set_fwd_tables(p_mgr);
 		p_osm->routing_engine_used = OSM_ROUTING_ENGINE_TYPE_MINHOP;
 	}

Sasha



More information about the general mailing list