[ofa-general] ***SPAM*** [PATCH] opensm/osm_prtn.c set switch end ports to full member in default partition configuration

Eli Dorfman (Voltaire) dorfman.eli at gmail.com
Thu Jan 1 08:25:36 PST 2009


set switch end ports to full member in default partition configuration.

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

diff --git a/opensm/opensm/osm_prtn.c b/opensm/opensm/osm_prtn.c
index 8b9301e..21c7add 100644
--- a/opensm/opensm/osm_prtn.c
+++ b/opensm/opensm/osm_prtn.c
@@ -331,6 +331,9 @@ static ib_api_status_t osm_prtn_make_default(osm_log_t * const p_log,
 	status = osm_prtn_add_all(p_log, p_subn, p, 0xff, no_config);
 	if (status != IB_SUCCESS)
 		goto _err;
+	status = osm_prtn_add_all(p_log, p_subn, p, IB_NODE_TYPE_SWITCH, TRUE);
+	if (status != IB_SUCCESS)
+		goto _err;
 	cl_map_remove(&p->part_guid_tbl, p_subn->sm_port_guid);
 	status =
 	    osm_prtn_add_port(p_log, p_subn, p, p_subn->sm_port_guid, TRUE);
-- 
1.5.5




More information about the general mailing list