Lines Matching refs:hops
139 uint32_t hops = 0;
151 number of hops to its base LID.
173 hops += osm_switch_get_port_least_hops(p_sw, p_port);
183 avg_hops = (float)(hops / num_ports);
190 Calculate the maximal "min hops" from the given switch to any
199 uint32_t hops = 0;
210 number of hops to its base LID.
232 hops = osm_switch_get_port_least_hops(p_sw, p_port);
233 if (hops > max_hops)
234 max_hops = hops;
241 max_hops = 10001; /* see later - we use it to realize no hops */
261 float hops = 0;
264 boolean_t use_avg_hops = TRUE; /* anafa2 - bug hca on switch *//* use max hops for root */
266 boolean_t use_avg_hops = FALSE; /* use max hops for root */
282 hops = osm_mcast_mgr_compute_avg_hops(sm, p_mgrp, p_sw);
284 hops = osm_mcast_mgr_compute_max_hops(sm, p_mgrp, p_sw);
287 "Switch 0x%016" PRIx64 ", hops = %f\n",
288 cl_ntoh64(osm_node_get_node_guid(p_sw->p_node)), hops);
290 if (hops < best_hops) {
292 best_hops = hops;
298 "Best switch is 0x%" PRIx64 ", hops = %f\n",
554 "Maximal hops number is reached for MLID 0x%x."