[ofa-general] ***SPAM*** [PATCH] send trap144 when local priority is higher than master priority

Eli Dorfman (Voltaire) dorfman.eli at gmail.com
Thu Mar 5 06:43:53 PST 2009


send trap144 when local priority is higher than master priority

send trap144 when local(standby) sm priority is higher
than master sm priority.
this will trigger heavy sweep by the master and handover of mastership.

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

diff --git a/opensm/opensm/osm_sminfo_rcv.c b/opensm/opensm/osm_sminfo_rcv.c
index 98c1994..d0e2ee5 100644
--- a/opensm/opensm/osm_sminfo_rcv.c
+++ b/opensm/opensm/osm_sminfo_rcv.c
@@ -365,6 +365,10 @@ __osm_sminfo_rcv_process_get_sm(IN osm_sm_t * sm,
 			/* This means the master is alive */
 			/* Signal that to the SM state mgr */
 			osm_sm_state_mgr_signal_master_is_alive(sm);
+
+			if (__osm_sminfo_rcv_remote_sm_is_higher
+                                    (sm, p_smi) == FALSE)
+				osm_send_trap144(sm, TRAP_144_MASK_SM_PRIORITY_CHANGE);
 			break;
 		case IB_SMINFO_STATE_STANDBY:
 			/* This should be the response from the sm we are polling. */
-- 
1.5.5




More information about the general mailing list