Home
last modified time | relevance | path

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

/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_switch.c623 int osm_switch_prepare_path_rebuild(IN osm_switch_t * p_sw, IN uint16_t max_lids) in osm_switch_prepare_path_rebuild() argument
629 if (alloc_lft(p_sw, max_lids)) in osm_switch_prepare_path_rebuild()
645 hops = malloc((max_lids + 1) * sizeof(hops[0])); in osm_switch_prepare_path_rebuild()
648 memset(hops, 0, (max_lids + 1) * sizeof(hops[0])); in osm_switch_prepare_path_rebuild()
650 p_sw->num_hops = max_lids + 1; in osm_switch_prepare_path_rebuild()
651 } else if (max_lids + 1 > p_sw->num_hops) { in osm_switch_prepare_path_rebuild()
652 hops = realloc(p_sw->hops, (max_lids + 1) * sizeof(hops[0])); in osm_switch_prepare_path_rebuild()
656 (max_lids + 1 - p_sw->num_hops) * sizeof(hops[0])); in osm_switch_prepare_path_rebuild()
658 p_sw->num_hops = max_lids + 1; in osm_switch_prepare_path_rebuild()
660 p_sw->max_lid_ho = max_lids; in osm_switch_prepare_path_rebuild()
/freebsd/contrib/ofed/opensm/include/opensm/
H A Dosm_switch.h1106 IN uint16_t max_lids);