Lines Matching defs:hops
183 Calculate the maximal "min hops" from the given switch to any
191 uint32_t hops = 0;
207 hops += (least_hops + 1) * sw->num_of_mcm +
215 avg_hops = (float)(hops / num_ports);
224 uint32_t max_hops = 0, hops;
233 number of hops to its base LID.
238 hops = osm_switch_get_least_hops(this_sw, lid);
240 hops += 1;
241 if (hops > max_hops)
242 max_hops = hops;
266 float hops = 0;
281 hops = mcast_mgr_compute_avg_hops(sm, &mgrp_sw_map, p_sw);
283 hops = mcast_mgr_compute_max_hops(sm, &mgrp_sw_map, 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 " (%s), hops = %f\n",
525 "Maximal hops number is reached for MLID 0x%x."