Home
last modified time | relevance | path

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

/trueos/contrib/ofed/management/opensm/opensm/
HDosm_switch.c519 osm_switch_prepare_path_rebuild(IN osm_switch_t * p_sw, IN uint16_t max_lids) in osm_switch_prepare_path_rebuild() argument
536 hops = malloc((max_lids + 1) * sizeof(hops[0])); in osm_switch_prepare_path_rebuild()
539 memset(hops, 0, (max_lids + 1) * sizeof(hops[0])); in osm_switch_prepare_path_rebuild()
541 p_sw->num_hops = max_lids + 1; in osm_switch_prepare_path_rebuild()
542 } else if (max_lids + 1 > p_sw->num_hops) { in osm_switch_prepare_path_rebuild()
545 hops = malloc((max_lids + 1) * sizeof(hops[0])); in osm_switch_prepare_path_rebuild()
550 (max_lids + 1 - p_sw->num_hops) * sizeof(hops[0])); in osm_switch_prepare_path_rebuild()
553 p_sw->num_hops = max_lids + 1; in osm_switch_prepare_path_rebuild()
556 p_sw->max_lid_ho = max_lids; in osm_switch_prepare_path_rebuild()
/trueos/contrib/ofed/management/opensm/include/opensm/
HDosm_switch.h1067 osm_switch_prepare_path_rebuild(IN osm_switch_t * p_sw, IN uint16_t max_lids);