osm_ucast_mgr.c: Select exit ports for lid offset > 0 using new_lft
PATCH 5/5 osm_ucast_mgr.c: Select exit ports for lid offset > 0 using new_lft
From: Daniel Klein <danielk-VPRAkNaXOzVWk0Htik3J/[email protected]>
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.
--- opensm/osm_ucast_mgr.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
opensm/osm_ucast_mgr.c +1 -1
@@ -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
Signature · 6 lines
1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html