return no path when path does not exist
PATCH 1/1 return no path when path does not exist
return OSM_NO_PATH (instead of port num) when path does not exists. this will also be reported as error in the log.
--- opensm/opensm/osm_switch.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
opensm/opensm/osm_switch.c +2 -0
@@ -628,6 +628,8 @@ uint8_t osm_switch_recommend_mcast_path(IN osm_switch_t * p_sw,a black hole that will destroy the Earth in a firey conflagration. */ least_hops =osm_switch_get_least_hops (p_sw, base_lid); +if (least_hops ==OSM_NO_PATH ) +return OSM_NO_PATH ;for (port_num =1 ; port_num < num_ports; port_num++)if (osm_switch_get_hop_count (p_sw, base_lid, port_num) == least_hops)
Signature · 6 lines
1.5.5 -- 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
Sasha Khapyorsky
AppliedQuoted 5 lines · Eli Dorfman (Voltaire)
return
OSM_NO_PATH(instead of port num) when path does not exists. this will also be reported as error in the log.
Applied. Thanks.
Sasha
--
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