[ofa-general] [PATCH] opensm: enforce routing paths rebalancing on switch reconnection

Sasha Khapyorsky sashak at voltaire.com
Sat Mar 1 08:08:25 PST 2008


When switch ports were reconnected we need to recalculate routing paths
balancing. Reconnection is detected by port state examination - when it
becomes INIT routing paths rebalancing (ignore_existing_lfts flag) is
enforced.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 opensm/opensm/osm_port_info_rcv.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/opensm/opensm/osm_port_info_rcv.c b/opensm/opensm/osm_port_info_rcv.c
index ecac2a8..4c51829 100644
--- a/opensm/opensm/osm_port_info_rcv.c
+++ b/opensm/opensm/osm_port_info_rcv.c
@@ -316,6 +316,9 @@ __osm_pi_rcv_process_switch_port(IN osm_sm_t * sm,
 
 	if (ib_port_info_get_port_state(p_pi) > IB_LINK_INIT && p_node->sw)
 		p_node->sw->need_update = 0;
+	
+	if (p_physp->need_update)
+		sm->p_subn->ignore_existing_lfts = 1;
 
 	if (port_num == 0)
 		pi_rcv_check_and_fix_lid(sm->p_log, p_pi, p_physp);
-- 
1.5.4.1.122.gaa8d




More information about the general mailing list