Home
last modified time | relevance | path

Searched refs:cas_per_sw (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_ucast_updn.c417 unsigned *cas_per_sw; in updn_find_root_nodes_by_min_hop() local
427 cas_per_sw = malloc(lid_ho * sizeof(*cas_per_sw)); in updn_find_root_nodes_by_min_hop()
428 if (!cas_per_sw) { in updn_find_root_nodes_by_min_hop()
433 memset(cas_per_sw, 0, lid_ho * sizeof(*cas_per_sw)); in updn_find_root_nodes_by_min_hop()
448 cas_per_sw[lid_ho]++; in updn_find_root_nodes_by_min_hop()
477 if (cas_per_sw[lid_ho]) { in updn_find_root_nodes_by_min_hop()
483 hop_hist[hop_val] += cas_per_sw[lid_ho]; in updn_find_root_nodes_by_min_hop()
505 free(cas_per_sw); in updn_find_root_nodes_by_min_hop()