[ofa-general] [PATCH] opensm: report new ports before handover mastership
Sasha Khapyorsky
sashak at voltaire.com
Tue Jul 31 10:33:20 PDT 2007
This adds new ports reporting (with trap 64) just before mastership
handover - new master does not report new ports in its first sweep.
Pointed out by: lbt (Lan) <transter at gmail.com>
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
opensm/opensm/osm_state_mgr.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/opensm/opensm/osm_state_mgr.c b/opensm/opensm/osm_state_mgr.c
index a6d0e24..1cf6257 100644
--- a/opensm/opensm/osm_state_mgr.c
+++ b/opensm/opensm/osm_state_mgr.c
@@ -2168,6 +2168,9 @@ Idle:
p_remote_sm = __osm_state_mgr_get_highest_sm( p_mgr );
if( p_remote_sm != NULL )
{
+ /* report new ports (trap 64) before leaving MASTER */
+ __osm_state_mgr_report_new_ports( p_mgr );
+
/* need to handover the mastership
* to the remote sm, and move to standby */
__osm_state_mgr_send_handover( p_mgr, p_remote_sm );
--
1.5.3.rc2.29.gc4640f
More information about the general
mailing list