[ofa-general] ***SPAM*** [PATCH 1/2] include/opensm/osm_opensm.h support routing engine update

Eli Dorfman (Voltaire) dorfman.eli at gmail.com
Thu Feb 26 07:43:31 PST 2009


 support routing engine update.
 add prev routing engine list.
 save active routing engine list as prev routing engine list.
 this is used to cleanup used routing engine allocation if needed
 and only after new routing engine was configured.

Signed-off-by: Eli Dorfman <elid at voltaire.com>
---
 opensm/include/opensm/osm_opensm.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/opensm/include/opensm/osm_opensm.h b/opensm/include/opensm/osm_opensm.h
index 6191530..c8b91a0 100644
--- a/opensm/include/opensm/osm_opensm.h
+++ b/opensm/include/opensm/osm_opensm.h
@@ -185,6 +185,7 @@ typedef struct osm_opensm {
 	cl_dispatcher_t disp;
 	cl_plock_t lock;
 	struct osm_routing_engine *routing_engine_list;
+	struct osm_routing_engine *prev_routing_engine_list;
 	osm_routing_engine_type_t routing_engine_used;
 	osm_stats_t stats;
 	osm_console_t console;
@@ -525,5 +526,7 @@ extern volatile unsigned int osm_exit_flag;
 *  Set to one to cause all threads to leave
 *********/
 
+void update_routing_engines(osm_opensm_t *osm, const char *engine_names);
+
 END_C_DECLS
 #endif				/* _OSM_OPENSM_H_ */
-- 
1.5.5




More information about the general mailing list