/freebsd/contrib/ofed/opensm/include/opensm/ |
H A D | osm_switch.h | 270 return (lid_ho > p_sw->max_lid_ho || !p_sw->hops[lid_ho]) ? in osm_switch_get_hop_count() 358 return (lid_ho > p_sw->max_lid_ho || !p_sw->hops[lid_ho]) ? in osm_switch_get_least_hops() 477 CL_ASSERT(p_sw); in osm_switch_get_route_by_lid() 650 CL_ASSERT(p_sw); in osm_switch_set_switch_info() 716 CL_ASSERT(p_sw); in osm_switch_set_lft_block() 756 CL_ASSERT(p_sw); in osm_switch_set_mft_block() 796 CL_ASSERT(p_sw); in osm_switch_get_mft_block() 835 CL_ASSERT(p_sw); in osm_switch_get_mft_max_block() 857 CL_ASSERT(p_sw); in osm_switch_get_mft_max_block_in_use() 885 CL_ASSERT(p_sw); in osm_switch_get_mft_max_position() [all …]
|
H A D | osm_mtree.h | 101 const osm_switch_t *p_sw; member 140 osm_mtree_node_t *osm_mtree_node_new(IN const osm_switch_t * p_sw); 254 return p_mtn->p_sw; in osm_mtree_node_get_switch_ptr()
|
H A D | osm_ucast_lash.h | 74 osm_switch_t *p_sw; member
|
H A D | osm_event_plugin.h | 104 osm_switch_t *p_sw; member
|
/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_switch.c | 72 p_sw->hops[lid_ho] = malloc(p_sw->num_ports); in osm_switch_set_hops() 75 memset(p_sw->hops[lid_ho], OSM_NO_PATH, p_sw->num_ports); in osm_switch_set_hops() 95 if (p_sw->lft) in osm_switch_delete() 130 p_sw = malloc(sizeof(*p_sw)); in osm_switch_new() 131 if (!p_sw) in osm_switch_new() 134 memset(p_sw, 0, sizeof(*p_sw)); in osm_switch_new() 141 p_sw->p_prof = malloc(sizeof(*p_sw->p_prof) * num_ports); in osm_switch_new() 145 memset(p_sw->p_prof, 0, sizeof(*p_sw->p_prof) * num_ports); in osm_switch_new() 153 return p_sw; in osm_switch_new() 601 memset(p_sw->hops[i], OSM_NO_PATH, p_sw->num_ports); in osm_switch_clear_hops() [all …]
|
H A D | osm_ucast_ftree.c | 343 p_element->p_sw = p_sw; in sw_tbl_element_create() 1511 sw_get_guid_ho(p_sw), p_sw->rank, in fabric_mark_leaf_switches() 1676 p_sw->lid, sw_get_guid_ho(p_sw)); in fabric_make_indexing() 1867 reference_sw_arr[p_sw->rank] = p_sw; in fabric_validate_topology() 1887 sw_get_guid_ho(p_sw), p_sw->lid, in fabric_validate_topology() 1913 sw_get_guid_ho(p_sw), p_sw->lid, in fabric_validate_topology() 3025 p_sw->p_osm_sw->new_lft[p_sw->lid] = 0; in fabric_route_to_switches() 3029 tuple_to_str(p_sw->tuple), p_sw->lid); in fabric_route_to_switches() 3317 sw_get_guid_ho(p_sw), p_sw->lid); in rank_leaf_switches() 3518 p_sw->lid, p_sw->rank); in fabric_construct_sw_ports() [all …]
|
H A D | osm_mcast_mgr.c | 276 p_sw = (osm_switch_t *) cl_qmap_next(&p_sw->map_item)) { in mcast_mgr_find_optimal_switch() 291 p_best_sw = p_sw; in mcast_mgr_find_optimal_switch() 328 return p_sw; in osm_mcast_mgr_find_root_switch() 348 CL_ASSERT(p_sw); in mcast_mgr_set_mft_block() 507 CL_ASSERT(p_sw); in mcast_mgr_branch() 747 osm_switch_t *p_sw; in mcast_mgr_build_spanning_tree() local 832 CL_ASSERT(p_sw); 875 p_sw = (osm_switch_t *) cl_qmap_next(&p_sw->map_item); in mcast_mgr_clear() 1054 CL_ASSERT(p_sw); in mcast_mgr_set_mfttop() 1122 p_sw = (osm_switch_t *) cl_qmap_next(&p_sw->map_item); in mcast_mgr_set_mftables() [all …]
|
H A D | osm_ucast_cache.c | 119 if (!p_sw) in cache_sw_destroy() 122 if (p_sw->lft) in cache_sw_destroy() 123 free(p_sw->lft); in cache_sw_destroy() 124 if (p_sw->hops) { in cache_sw_destroy() 128 free(p_sw->hops); in cache_sw_destroy() 130 free(p_sw); in cache_sw_destroy() 330 if (p_sw->hops) in cache_restore_ucast_info() 352 p_sw = (cache_switch_t *) cl_qmap_next(&p_sw->map_item)) { in ucast_cache_dump() 435 p_sw = (osm_switch_t *) cl_qmap_next(&p_sw->map_item)) { in ucast_cache_validate() 638 p_sw); in ucast_cache_validate() [all …]
|
H A D | osm_ucast_dnup.c | 125 u = p_sw->priv; in dnup_bfs_by_node() 222 osm_switch_t *p_sw; in dnup_subn_rank() local 238 p_sw = (osm_switch_t *)item; in dnup_subn_rank() 239 u = p_sw->priv; in dnup_subn_rank() 248 p_sw = u->sw; in dnup_subn_rank() 249 num_ports = p_sw->num_ports; in dnup_subn_rank() 299 osm_switch_t *p_sw; in dnup_set_min_hop_table() local 314 p_sw = (osm_switch_t *)item; in dnup_set_min_hop_table() 413 osm_switch_t *p_sw; in dnup_lid_matrices() local 424 p_sw->priv = create_dnup_node(p_sw); in dnup_lid_matrices() [all …]
|
H A D | osm_ucast_file.c | 97 p_sw->new_lft[new_lid] = port_num; in add_path() 115 if (len > p_sw->num_ports) in add_lid_hops() 116 len = p_sw->num_ports; in add_lid_hops() 129 osm_switch_t *p_sw; in do_ucast_file_load() local 151 p_sw = NULL; in do_ucast_file_load() 191 if (!p_sw) { in do_ucast_file_load() 197 memset(p_sw->new_lft, OSM_NO_PATH, p_sw->lft_size); in do_ucast_file_load() 226 (p_sw->p_node))); in do_ucast_file_load() 271 osm_switch_t *p_sw; in do_lid_matrix_file_load() local 292 p_sw = NULL; in do_lid_matrix_file_load() [all …]
|
H A D | osm_ucast_mgr.c | 136 osm_switch_t *p_sw; in ucast_mgr_process_neighbor() local 366 CL_ASSERT(p_sw && p_sw->p_node); in ucast_mgr_process_tbl() 373 memset(p_sw->new_lft, OSM_NO_PATH, p_sw->max_lid_ho + 1); in ucast_mgr_process_tbl() 411 p_node = p_sw->p_node; in ucast_mgr_process_neighbors() 679 osm_switch_t *p_sw; in ucast_mgr_setup_all_switches() local 687 p_sw = (osm_switch_t *) cl_qmap_next(&p_sw->map_item)) { in ucast_mgr_setup_all_switches() 692 (p_sw->p_node))); in ucast_mgr_setup_all_switches() 918 CL_ASSERT(p_sw && p_sw->max_lid_ho); in ucast_mgr_set_fwd_top() 920 p_node = p_sw->p_node; in ucast_mgr_set_fwd_top() 936 si = p_sw->switch_info; in ucast_mgr_set_fwd_top() [all …]
|
H A D | osm_sw_info_rcv.c | 77 CL_ASSERT(p_sw); 79 p_node = p_sw->p_node; 127 CL_ASSERT(p_sw); 129 p_node = p_sw->p_node; 199 osm_switch_t *p_sw; in si_rcv_process_new() local 218 if (p_sw == NULL) { in si_rcv_process_new() 246 if (p_check != p_sw) { in si_rcv_process_new() 250 osm_switch_delete(&p_sw); in si_rcv_process_new() 254 p_node->sw = p_sw; in si_rcv_process_new() 270 si_rcv_get_fwd_tbl(sm, p_sw); in si_rcv_process_new() [all …]
|
H A D | osm_ucast_updn.c | 112 IN osm_switch_t * p_sw) in updn_bfs_by_node() argument 130 u = p_sw->priv; in updn_bfs_by_node() 211 osm_switch_t *p_sw; in updn_subn_rank() local 227 p_sw = (osm_switch_t *)item; in updn_subn_rank() 228 u = p_sw->priv; in updn_subn_rank() 237 p_sw = u->sw; in updn_subn_rank() 304 osm_switch_t *p_sw; in updn_set_min_hop_table() local 411 osm_switch_t *p_sw; in updn_find_root_nodes_by_min_hop() local 574 osm_switch_t *p_sw; in updn_lid_matrices() local 583 p_sw->priv = create_updn_node(p_sw); in updn_lid_matrices() [all …]
|
H A D | osm_sa_mft_record.c | 71 IN osm_switch_t * p_sw, in mftr_rcv_new_mftr() argument 93 cl_ntoh64(osm_node_get_node_guid(p_sw->p_node)), in mftr_rcv_new_mftr() 117 osm_switch_t *p_sw = (osm_switch_t *) p_map_item; in mftr_rcv_by_comp_mask() local 135 "\n", cl_ntoh64(p_sw->p_node->node_info.node_guid)); in mftr_rcv_by_comp_mask() 146 cl_ntoh64(p_sw->p_node->node_info.node_guid)); in mftr_rcv_by_comp_mask() 167 if (!osm_switch_supports_mcast(p_sw)) in mftr_rcv_by_comp_mask() 171 if (osm_switch_get_mft_max_block_in_use(p_sw) == -1) in mftr_rcv_by_comp_mask() 185 max_block = osm_switch_get_mft_max_block_in_use(p_sw); in mftr_rcv_by_comp_mask() 192 if (max_position > osm_switch_get_mft_max_position(p_sw)) in mftr_rcv_by_comp_mask() 197 max_position = osm_switch_get_mft_max_position(p_sw); in mftr_rcv_by_comp_mask() [all …]
|
H A D | osm_dump.c | 74 p_node = p_sw->p_node; in dump_ucast_path_distribution() 75 num_ports = p_sw->num_ports; in dump_ucast_path_distribution() 132 p_node = p_sw->p_node; in dump_ucast_routes() 134 max_lid_ho = p_sw->max_lid_ho; in dump_ucast_routes() 200 p_sw ? 0 : in dump_ucast_routes() 255 p_node = p_sw->p_node; in dump_mcast_routes() 307 osm_node_t *p_node = p_sw->p_node; in dump_lid_matrix() 308 unsigned max_lid = p_sw->max_lid_ho; in dump_lid_matrix() 309 unsigned max_port = p_sw->num_ports; in dump_lid_matrix() 335 osm_node_t *p_node = p_sw->p_node; in dump_ucast_lfts() [all …]
|
H A D | osm_lin_fwd_rcv.c | 64 osm_switch_t *p_sw; in osm_lft_rcv_process() local 95 p_sw = osm_get_switch_by_guid(sm->p_subn, node_guid); in osm_lft_rcv_process() 97 if (!p_sw) { in osm_lft_rcv_process() 102 status = osm_switch_set_lft_block(p_sw, p_block, block_num); in osm_lft_rcv_process() 105 lft_change.p_sw = p_sw; in osm_lft_rcv_process() 118 p_sw->p_node->print_desc); in osm_lft_rcv_process()
|
H A D | osm_ucast_lash.c | 631 sw->p_sw = p_sw; in switch_create() 632 p_sw->priv = sw; in switch_create() 1002 p_sw = p_next_sw; in populate_fwd_tbls() 1007 sw = p_sw->priv; in populate_fwd_tbls() 1009 memset(p_sw->new_lft, OSM_NO_PATH, p_sw->lft_size); in populate_fwd_tbls() 1111 p_sw = p_next_sw; in lash_cleanup() 1113 p_sw->priv = NULL; in lash_cleanup() 1152 p_sw = p_next_sw; in discover_network_properties() 1209 p_sw = p_next_sw; in process_switches() 1304 if (!p_sw || !p_sw->priv) in get_lash_sl() [all …]
|
H A D | osm_mtree.c | 52 osm_mtree_node_t *osm_mtree_node_new(IN const osm_switch_t * p_sw) in osm_mtree_node_new() argument 58 sizeof(void *) * (p_sw->num_ports - 1)); in osm_mtree_node_new() 63 p_mtn->p_sw = p_sw; in osm_mtree_node_new() 64 p_mtn->max_children = p_sw->num_ports; in osm_mtree_node_new() 95 cl_ntoh64(p_mtn->p_sw->p_node->node_info.node_guid),
|
H A D | osm_sa_sw_info_record.c | 71 IN const osm_switch_t * p_sw, in sir_rcv_new_sir() argument 94 p_rec_item->resp.swinfo_rec.switch_info = p_sw->switch_info; in sir_rcv_new_sir() 103 static void sir_rcv_create_sir(IN osm_sa_t * sa, IN const osm_switch_t * p_sw, in sir_rcv_create_sir() argument 121 osm_get_port_by_guid(sa->p_subn, p_sw->p_node->node_info.port_guid); in sir_rcv_create_sir() 125 "\n", cl_ntoh64(p_sw->p_node->node_info.node_guid)); in sir_rcv_create_sir() 136 cl_ntoh64(p_sw->p_node->node_info.node_guid)); in sir_rcv_create_sir() 160 sir_rcv_new_sir(sa, p_sw, p_list, osm_port_get_base_lid(p_port)); in sir_rcv_create_sir() 169 const osm_switch_t *p_sw = (osm_switch_t *) p_map_item; in sir_rcv_by_comp_mask() local 178 osm_dump_switch_info_v2(p_ctxt->sa->p_log, &p_sw->switch_info, in sir_rcv_by_comp_mask() 187 sir_rcv_create_sir(sa, p_sw, p_ctxt->p_list, match_lid, p_req_physp); in sir_rcv_by_comp_mask()
|
H A D | osm_sa_lft_record.c | 71 IN const osm_switch_t * p_sw, in lftr_rcv_new_lftr() argument 91 cl_ntoh64(osm_node_get_node_guid(p_sw->p_node)), in lftr_rcv_new_lftr() 100 osm_switch_get_lft_block(p_sw, block, p_rec_item->resp.lft_rec.lft); in lftr_rcv_new_lftr() 112 const osm_switch_t *p_sw = (osm_switch_t *) p_map_item; in lftr_rcv_by_comp_mask() local 124 p_sw->p_node->node_info.port_guid); in lftr_rcv_by_comp_mask() 128 "\n", cl_ntoh64(p_sw->p_node->node_info.node_guid)); in lftr_rcv_by_comp_mask() 139 cl_ntoh64(p_sw->p_node->node_info.node_guid)); in lftr_rcv_by_comp_mask() 161 max_block = osm_switch_get_max_block_id_in_use(p_sw); in lftr_rcv_by_comp_mask() 172 lftr_rcv_new_lftr(sa, p_sw, p_ctxt->p_list, in lftr_rcv_by_comp_mask()
|
H A D | osm_mcast_fwd_rcv.c | 68 osm_switch_t *p_sw; in osm_mft_rcv_process() local 107 p_sw = osm_get_switch_by_guid(sm->p_subn, node_guid); in osm_mft_rcv_process() 109 if (!p_sw) { in osm_mft_rcv_process() 114 status = osm_switch_set_mft_block(p_sw, p_block, in osm_mft_rcv_process() 123 p_sw->p_node->print_desc, block_num, position); in osm_mft_rcv_process()
|
H A D | osm_console.c | 1086 num_ports = p_sw->num_ports; in switchbalance_check() 1120 p_sw->p_node->print_desc); in switchbalance_check() 1125 p_sw->p_node->print_desc); in switchbalance_check() 1139 osm_switch_t *p_sw; in switchbalance_parse() local 1164 if (!p_sw) { in switchbalance_parse() 1174 p_sw = (osm_switch_t *) cl_qmap_next(&p_sw->map_item)) in switchbalance_parse() 1276 num_ports = p_sw->num_ports; in lidbalance_check() 1294 p_sw->p_node->print_desc); in lidbalance_check() 1347 osm_switch_t *p_sw; in lidbalance_parse() local 1364 if (!p_sw) { in lidbalance_parse() [all …]
|
H A D | osm_ucast_dfsssp.c | 1579 osm_switch_t *p_sw = NULL; in update_lft() local 1591 p_sw = adj_list[i].sw; in update_lft() 1603 (p_sw->p_node))); in update_lft() 1613 (p_sw->p_node))); in update_lft() 1658 (p_sw->p_node))); in update_lft() 1716 osm_switch_t *p_sw = NULL; in update_mcft() local 1728 p_sw = adj_list[i].sw; in update_mcft() 1739 (p_sw->num_of_mcm == 0 && !(p_sw->is_mc_member))) in update_mcft() 1747 if (p_sw->is_mc_member) in update_mcft() 2608 if (p_sw) { in dfsssp_do_mcast_routing() [all …]
|
H A D | osm_state_mgr.c | 118 osm_switch_t *p_sw = (osm_switch_t *) p_map_item; in state_mgr_reset_switch_count() local 120 if (p_sw->max_lid_ho != 0) in state_mgr_reset_switch_count() 121 p_sw->need_update = 1; in state_mgr_reset_switch_count() 130 osm_switch_t *const p_sw = (osm_switch_t *) p_object; in state_mgr_get_sw_info() local 136 p_node = p_sw->p_node; in state_mgr_get_sw_info() 646 osm_switch_t *p_sw = (osm_switch_t *) obj; in state_mgr_reset_state_change_bit() local 656 CL_ASSERT(p_sw); in state_mgr_reset_state_change_bit() 658 p_node = p_sw->p_node; in state_mgr_reset_state_change_bit() 665 if (!ib_switch_info_get_state_change(&p_sw->switch_info)) in state_mgr_reset_state_change_bit() 668 si = p_sw->switch_info; in state_mgr_reset_state_change_bit()
|
H A D | osm_drop_mgr.c | 308 osm_switch_t *p_sw; in drop_mgr_remove_switch() local 317 p_sw = (osm_switch_t *) cl_qmap_remove(p_sw_guid_tbl, node_guid); in drop_mgr_remove_switch() 318 if (p_sw == (osm_switch_t *) cl_qmap_end(p_sw_guid_tbl)) { in drop_mgr_remove_switch() 324 osm_switch_delete(&p_sw); in drop_mgr_remove_switch()
|