diff mbox

[opensm,5/5] osm_ucast_mgr.c: Select exit ports for lid offset > 0 using new_lft

Message ID 54AE7CFB.6010402@dev.mellanox.co.il (mailing list archive)
State Accepted
Delegated to: Hal Rosenstock
Headers show

Commit Message

Hal Rosenstock Jan. 8, 2015, 12:50 p.m. UTC
From: Daniel Klein <danielk@mellanox.com>

Bug description:
When opensm selects from which port it should continue selecting
exit ports for lids with lid offset > 0, it uses the lft that was
calculated and assigned to the switch on the previous sweep instead of
the new lft.

Signed-off-by: Daniel Klein <danielk@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
---
 opensm/osm_ucast_mgr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/opensm/osm_ucast_mgr.c b/opensm/osm_ucast_mgr.c
index 7dc69f3..a268ce2 100644
--- a/opensm/osm_ucast_mgr.c
+++ b/opensm/osm_ucast_mgr.c
@@ -235,7 +235,7 @@  static void ucast_mgr_process_port(IN osm_ucast_mgr_t * p_mgr,
 	if (lid_offset && !p_mgr->is_dor)
 		/* ignore potential overflow - it is handled in osm_switch.c */
 		start_from =
-		    osm_switch_get_port_by_lid(p_sw, lid_ho - 1, OSM_LFT) + 1;
+		    osm_switch_get_port_by_lid(p_sw, lid_ho - 1, OSM_NEW_LFT) + 1;
 
 	OSM_LOG(p_mgr->p_log, OSM_LOG_DEBUG,
 		"Processing port 0x%" PRIx64