[ofa-general] ***SPAM*** [PATCH 1/2] include/opensm/osm_opensm.h add setup function to routing engine.

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


 add setup function to routing engine.
 call it only when we want to use this routing engine.
 this will save allocation for routing algorithms that are not used.

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

diff --git a/opensm/include/opensm/osm_opensm.h b/opensm/include/opensm/osm_opensm.h
index c121be4..6191530 100644
--- a/opensm/include/opensm/osm_opensm.h
+++ b/opensm/include/opensm/osm_opensm.h
@@ -122,6 +122,8 @@ typedef enum _osm_routing_engine_type {
 struct osm_routing_engine {
 	const char *name;
 	void *context;
+	int initialized;
+	int (*setup) (void *re, void *p_osm);
 	int (*build_lid_matrices) (void *context);
 	int (*ucast_build_fwd_tables) (void *context);
 	void (*ucast_dump_tables) (void *context);
-- 
1.5.5




More information about the general mailing list