[ofa-general] [PATCH] opensm: notify master SM with trap 144 (not finished)
Sasha Khapyorsky
sashak at voltaire.com
Sat Oct 25 13:01:27 PDT 2008
When entering standby state (after discovery) notify master SM about us.
In case when SMA doesn't support trap sending (specifically trap 144 on
PortInfo:CapabilityMask change - isSM bit, example is current ConnectX
firmware - 2.5.0) this is only way to notify the current master SM that
another SM is running. See also bug#1183.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
opensm/opensm/osm_state_mgr.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/opensm/opensm/osm_state_mgr.c b/opensm/opensm/osm_state_mgr.c
index 174cee6..1576c42 100644
--- a/opensm/opensm/osm_state_mgr.c
+++ b/opensm/opensm/osm_state_mgr.c
@@ -1142,6 +1142,8 @@ _repeat_discovery:
OSM_SM_SIGNAL_MASTER_OR_HIGHER_SM_DETECTED_DONE);
osm_log_msg_box(sm->p_log, OSM_LOG_VERBOSE, __FUNCTION__,
"ENTERING STANDBY STATE");
+ /* notify master SM about us */
+ osm_send_trap144(sm, 0);
return;
}
--
1.6.0.3.517.g759a
More information about the general
mailing list