[ofa-general] [PATCH] opensm: do not configure MFTs when mcast support is disabled

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Mon Aug 3 06:04:29 PDT 2009


Hi Sasha,

I noticed that when MCast support in OSM is disabled (command line
option '-d3'), MFTs on the switches are still getting configured.

Turns out that MFTs configuration was disabled only in heavy sweep,
but it was still working at idle time - the following patch fixes it.

Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 opensm/opensm/osm_state_mgr.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/opensm/opensm/osm_state_mgr.c b/opensm/opensm/osm_state_mgr.c
index 90bef87..185c700 100644
--- a/opensm/opensm/osm_state_mgr.c
+++ b/opensm/opensm/osm_state_mgr.c
@@ -1377,8 +1377,10 @@ static void do_process_mgrp_queue(osm_sm_t * sm)
 {
 	if (sm->p_subn->sm_state != IB_SMINFO_STATE_MASTER)
 		return;
-	osm_mcast_mgr_process_mgroups(sm);
-	wait_for_pending_transactions(&sm->p_subn->p_osm->stats);
+	if (!sm->p_subn->opt.disable_multicast) {
+		osm_mcast_mgr_process_mgroups(sm);
+		wait_for_pending_transactions(&sm->p_subn->p_osm->stats);
+	}
 }

 void osm_state_mgr_process(IN osm_sm_t * sm, IN osm_signal_t signal)
-- 
1.5.1.4




More information about the general mailing list