| /trueos/contrib/ofed/management/opensm/opensm/ |
| HD | osm_node.c | 55 osm_node_init_physp(IN osm_node_t * const p_node, in osm_node_init_physp() argument 69 CL_ASSERT(port_num < p_node->physp_tbl_size); in osm_node_init_physp() 71 osm_physp_init(&p_node->physp_table[port_num], in osm_node_init_physp() 72 port_guid, port_num, p_node, in osm_node_init_physp() 79 static void node_init_physp0(IN osm_node_t * const p_node, in node_init_physp0() argument 88 osm_physp_init(&p_node->physp_table[0], in node_init_physp0() 89 p_ni->port_guid, 0, p_node, in node_init_physp0() 98 osm_node_t *p_node; in osm_node_new() local 116 p_node = malloc(sizeof(*p_node) + sizeof(osm_physp_t) * size); in osm_node_new() 117 if (!p_node) in osm_node_new() [all …]
|
| HD | osm_node_info_rcv.c | 80 cl_ntoh64(p_physp->p_node->node_info.node_guid), in report_duplicated_guid() 82 cl_ntoh64(p_old->p_node->node_info.node_guid), p_old->port_num, in report_duplicated_guid() 83 cl_ntoh64(p_new->p_node->node_info.node_guid), p_new->port_num); in report_duplicated_guid() 107 p_physp->p_remote_physp->p_node->node_info.port_guid; in requery_dup_node_info() 109 context.ni_context.dup_node_guid = p_physp->p_node->node_info.node_guid; in requery_dup_node_info() 127 osm_node_t * p_node, in __osm_ni_rcv_set_links() argument 144 cl_ntoh64(osm_node_get_node_guid(p_node))); in __osm_ni_rcv_set_links() 165 if (!osm_node_link_has_valid_ports(p_node, port_num, in __osm_ni_rcv_set_links() 170 if (osm_node_link_exists(p_node, port_num, in __osm_ni_rcv_set_links() 176 if (osm_node_has_any_link(p_node, port_num) && in __osm_ni_rcv_set_links() [all …]
|
| HD | osm_drop_mgr.c | 117 if (!p_remote_physp->p_node->sw) { in drop_mgr_clean_physp() 123 (p_remote_physp->p_node)), in drop_mgr_clean_physp() 132 cl_ntoh64(osm_node_get_node_guid(p_physp->p_node)), in drop_mgr_clean_physp() 135 (p_remote_physp->p_node)), in drop_mgr_clean_physp() 148 cl_ntoh64(osm_node_get_node_guid(p_physp->p_node)), in drop_mgr_clean_physp() 167 osm_node_t *p_node; in __osm_drop_mgr_remove_port() local 227 p_node = p_port->p_node; in __osm_drop_mgr_remove_port() 265 p_node ? p_node->print_desc : "UNKNOWN"); in __osm_drop_mgr_remove_port() 273 static void __osm_drop_mgr_remove_switch(osm_sm_t * sm, IN osm_node_t * p_node) in __osm_drop_mgr_remove_switch() argument 281 node_guid = osm_node_get_node_guid(p_node); in __osm_drop_mgr_remove_switch() [all …]
|
| HD | osm_dump.c | 63 osm_node_t *p_node; in dump_ucast_path_distribution() local 71 p_node = p_sw->p_node; in dump_ucast_path_distribution() 76 cl_ntoh64(osm_node_get_node_guid(p_node))); in dump_ucast_path_distribution() 86 p_remote_node = osm_node_get_remote_node(p_node, i, NULL); in dump_ucast_path_distribution() 116 const osm_node_t *p_node; in dump_ucast_routes() local 129 p_node = p_sw->p_node; in dump_ucast_routes() 135 cl_ntoh64(osm_node_get_node_guid(p_node))); in dump_ucast_routes() 165 if (p_port->p_node->sw) { in dump_ucast_routes() 168 base_lid = osm_node_get_base_lid(p_port->p_node, 0); in dump_ucast_routes() 184 !p_physp->p_remote_physp->p_node->sw) in dump_ucast_routes() [all …]
|
| HD | osm_sw_info_rcv.c | 67 osm_node_t *p_node; in __osm_si_rcv_get_port_info() local 75 p_node = p_sw->p_node; in __osm_si_rcv_get_port_info() 77 CL_ASSERT(osm_node_get_type(p_node) == IB_NODE_TYPE_SWITCH); in __osm_si_rcv_get_port_info() 82 p_physp = osm_node_get_physp_ptr(p_node, 0); in __osm_si_rcv_get_port_info() 84 context.pi_context.node_guid = osm_node_get_node_guid(p_node); in __osm_si_rcv_get_port_info() 90 num_ports = osm_node_get_num_physp(p_node); in __osm_si_rcv_get_port_info() 116 osm_node_t *p_node; 125 p_node = p_sw->p_node; 127 CL_ASSERT(osm_node_get_type(p_node) == IB_NODE_TYPE_SWITCH); 129 context.lft_context.node_guid = osm_node_get_node_guid(p_node); [all …]
|
| HD | osm_port_info_rcv.c | 209 IN osm_node_t * const p_node, in __osm_pi_rcv_process_switch_port() argument 248 (p_node)), port_num, in __osm_pi_rcv_process_switch_port() 258 osm_node_unlink(p_node, (uint8_t) port_num, in __osm_pi_rcv_process_switch_port() 288 osm_node_get_node_guid(p_node); in __osm_pi_rcv_process_switch_port() 319 if (ib_port_info_get_port_state(p_pi) > IB_LINK_INIT && p_node->sw && in __osm_pi_rcv_process_switch_port() 320 p_node->sw->need_update == 1) in __osm_pi_rcv_process_switch_port() 321 p_node->sw->need_update = 0; in __osm_pi_rcv_process_switch_port() 336 if (p_node->sw && in __osm_pi_rcv_process_switch_port() 337 !ib_switch_info_is_enhanced_port0(&p_node->sw->switch_info)) in __osm_pi_rcv_process_switch_port() 350 IN osm_node_t * const p_node, in __osm_pi_rcv_process_ca_or_router_port() argument [all …]
|
| HD | osm_sa_node_record.c | 74 IN const osm_node_t * const p_node, in __osm_nr_rcv_new_nr() argument 94 cl_ntoh64(osm_node_get_node_guid(p_node)), in __osm_nr_rcv_new_nr() 101 p_rec_item->rec.node_info = p_node->node_info; in __osm_nr_rcv_new_nr() 103 memcpy(&(p_rec_item->rec.node_desc), &(p_node->node_desc), in __osm_nr_rcv_new_nr() 116 IN osm_node_t * const p_node, in __osm_nr_rcv_create_nr() argument 143 if (osm_node_get_type(p_node) == IB_NODE_TYPE_SWITCH) in __osm_nr_rcv_create_nr() 146 num_ports = osm_node_get_num_physp(p_node); in __osm_nr_rcv_create_nr() 149 p_physp = osm_node_get_physp_ptr(p_node, port_num); in __osm_nr_rcv_create_nr() 182 __osm_nr_rcv_new_nr(sa, p_node, p_list, port_guid, base_lid); in __osm_nr_rcv_create_nr() 196 osm_node_t *const p_node = (osm_node_t *) p_map_item; in __osm_nr_rcv_by_comp_mask() local [all …]
|
| HD | osm_node_desc_rcv.c | 62 IN osm_node_t * const p_node, in __osm_nd_rcv_process_nd() argument 70 memcpy(&p_node->node_desc.description, p_nd, sizeof(*p_nd)); in __osm_nd_rcv_process_nd() 76 cl_ntoh64(osm_node_get_node_guid(p_node)), in __osm_nd_rcv_process_nd() 80 if (p_node->print_desc) in __osm_nd_rcv_process_nd() 81 free(p_node->print_desc); in __osm_nd_rcv_process_nd() 82 p_node->print_desc = tmp_desc; in __osm_nd_rcv_process_nd() 86 cl_ntoh64(osm_node_get_node_guid(p_node)), p_node->print_desc); in __osm_nd_rcv_process_nd() 99 osm_node_t *p_node; in osm_nd_rcv_process() local 117 p_node = osm_get_node_by_guid(sm->p_subn, node_guid); in osm_nd_rcv_process() 118 if (!p_node) { in osm_nd_rcv_process() [all …]
|
| HD | osm_ucast_cache.c | 161 uint16_t lid_ho = cl_ntoh16(osm_node_get_base_lid(p->p_node, 0)); in __cache_add_sw_link() 174 p_cache_sw = __cache_sw_new(lid_ho, p->p_node->sw->num_ports); in __cache_add_sw_link() 442 osm_node_t *p_node; in ucast_cache_validate() local 469 p_node = p_sw->p_node; in ucast_cache_validate() 471 lid_ho = cl_ntoh16(osm_node_get_base_lid(p_node, 0)); in ucast_cache_validate() 474 max_ports = osm_node_get_num_physp(p_node); in ucast_cache_validate() 479 p_physp = osm_node_get_physp_ptr(p_node, port_num); in ucast_cache_validate() 494 p_physp->p_remote_physp->p_node && in ucast_cache_validate() 496 p_node) != IB_NODE_TYPE_SWITCH) in ucast_cache_validate() 508 osm_node_get_type(p_remote_physp->p_node); in ucast_cache_validate() [all …]
|
| HD | osm_pkey_mgr.c | 66 osm_node_t *p_node = osm_physp_get_node_ptr(p_physp); in pkey_mgr_get_physp_max_blocks() local 69 if (!p_node->sw || (osm_physp_get_port_num(p_physp) == 0)) in pkey_mgr_get_physp_max_blocks() 70 num_pkeys = cl_ntoh16(p_node->node_info.partition_cap); in pkey_mgr_get_physp_max_blocks() 72 num_pkeys = cl_ntoh16(p_node->sw->switch_info.enforce_cap); in pkey_mgr_get_physp_max_blocks() 88 osm_node_t *p_node = osm_physp_get_node_ptr(p_physp); in pkey_mgr_process_physical_port() local 100 cl_ntoh64(osm_node_get_node_guid(p_node)), in pkey_mgr_process_physical_port() 123 cl_ntoh64(osm_node_get_node_guid(p_node)), in pkey_mgr_process_physical_port() 135 cl_ntoh64(osm_node_get_node_guid(p_node)), in pkey_mgr_process_physical_port() 175 osm_node_t *p_node = osm_physp_get_node_ptr(p_physp); in pkey_mgr_update_pkey_entry() local 178 context.pkey_context.node_guid = osm_node_get_node_guid(p_node); in pkey_mgr_update_pkey_entry() [all …]
|
| HD | osm_switch.c | 80 IN osm_node_t * const p_node, in osm_switch_init() argument 91 num_ports = osm_node_get_num_physp(p_node); in osm_switch_init() 95 p_sw->p_node = p_node; in osm_switch_init() 126 osm_node_get_num_physp(p_node), in osm_switch_init() 163 osm_switch_t *osm_switch_new(IN osm_node_t * const p_node, in osm_switch_new() argument 170 CL_ASSERT(p_node); in osm_switch_new() 175 status = osm_switch_init(p_sw, p_node, p_madw); in osm_switch_new() 222 p_physp = osm_node_get_physp_ptr(p_sw->p_node, port_num); in osm_switch_find_guid_common() 309 if (p_port->p_node->sw) { in osm_switch_recommend_path() 310 if (p_port->p_node->sw == p_sw) in osm_switch_recommend_path() [all …]
|
| HD | osm_sa_link_record.c | 101 if (p_physp->p_node->node_info.node_type == IB_NODE_TYPE_SWITCH) in __get_base_lid() 103 (osm_node_get_physp_ptr(p_physp->p_node, 0)); in __get_base_lid() 225 osm_node_t * p_node; in __osm_lr_rcv_get_port_links() local 241 num_ports = osm_node_get_num_physp(p_src_port->p_node); in __osm_lr_rcv_get_port_links() 243 osm_node_get_num_physp(p_dest_port->p_node); in __osm_lr_rcv_get_port_links() 246 osm_node_get_physp_ptr(p_src_port->p_node, in __osm_lr_rcv_get_port_links() 253 p_node, in __osm_lr_rcv_get_port_links() 272 p_src_port->p_node->physp_tbl_size) { in __osm_lr_rcv_get_port_links() 275 p_node, in __osm_lr_rcv_get_port_links() 285 osm_node_get_num_physp(p_src_port->p_node); in __osm_lr_rcv_get_port_links() [all …]
|
| HD | osm_link_mgr.c | 66 osm_node_t *p_node; in __osm_link_mgr_set_physp_pi() local 77 p_node = osm_physp_get_node_ptr(p_physp); in __osm_link_mgr_set_physp_pi() 87 if (!p_node->sw) { in __osm_link_mgr_set_physp_pi() 90 cl_ntoh64(p_node->node_info.node_guid)); in __osm_link_mgr_set_physp_pi() 94 if (ib_switch_info_is_enhanced_port0(&p_node->sw->switch_info) in __osm_link_mgr_set_physp_pi() 138 if (osm_node_get_type(p_node) != IB_NODE_TYPE_SWITCH || in __osm_link_mgr_set_physp_pi() 302 context.pi_context.node_guid = osm_node_get_node_guid(p_node); in __osm_link_mgr_set_physp_pi() 315 if (osm_node_get_type(p_node) == IB_NODE_TYPE_SWITCH && port_num in __osm_link_mgr_set_physp_pi() 335 IN osm_node_t * const p_node, in __osm_link_mgr_process_node() argument 348 cl_ntoh64(osm_node_get_node_guid(p_node)), in __osm_link_mgr_process_node() [all …]
|
| HD | osm_ucast_mgr.c | 118 lid = osm_node_get_base_lid(p_sw->p_node, 0); in __osm_ucast_mgr_process_hop_0_1() 124 osm_node_get_remote_node(p_sw->p_node, i, &remote_port); in __osm_ucast_mgr_process_hop_0_1() 127 (p_remote_node != p_sw->p_node)) { in __osm_ucast_mgr_process_hop_0_1() 155 cl_ntoh64(osm_node_get_node_guid(p_this_sw->p_node)), in __osm_ucast_mgr_process_neighbor() 156 cl_ntoh64(osm_node_get_node_guid(p_remote_sw->p_node)), in __osm_ucast_mgr_process_neighbor() 164 lid_ho = osm_node_get_base_lid(p_sw->p_node, 0); in __osm_ucast_mgr_process_neighbor() 178 (p_this_sw->p_node))); in __osm_ucast_mgr_process_neighbor() 193 osm_physp_t *p = osm_node_get_physp_ptr(sw->p_node, port); in find_and_add_remote_sys() 194 osm_node_t *node = p->p_remote_physp->p_node; in find_and_add_remote_sys() 246 p_port->p_node->print_desc, p_port->p_physp->port_num, in __osm_ucast_mgr_process_port() [all …]
|
| HD | osm_state_mgr.c | 95 osm_node_t *p_node = (osm_node_t *) p_map_item; in __osm_state_mgr_reset_node_count() local 97 p_node->discovery_count = 0; in __osm_state_mgr_reset_node_count() 127 osm_node_t *p_node; in __osm_state_mgr_get_sw_info() local 136 p_node = p_sw->p_node; in __osm_state_mgr_get_sw_info() 137 p_dr_path = osm_physp_get_dr_path_ptr(osm_node_get_physp_ptr(p_node, 0)); in __osm_state_mgr_get_sw_info() 141 mad_context.si_context.node_guid = osm_node_get_node_guid(p_node); in __osm_state_mgr_get_sw_info() 379 osm_node_t *p_node; in __osm_state_mgr_sweep_hop_1() local 415 p_node = p_port->p_node; in __osm_state_mgr_sweep_hop_1() 416 CL_ASSERT(p_node); in __osm_state_mgr_sweep_hop_1() 418 port_num = ib_node_info_get_local_port_num(&p_node->node_info); in __osm_state_mgr_sweep_hop_1() [all …]
|
| HD | osm_port.c | 95 IN const struct osm_node *const p_node, in osm_physp_init() argument 103 CL_ASSERT(p_node); in osm_physp_init() 110 p_physp->p_node = (struct osm_node *)p_node; in osm_physp_init() 115 if (osm_node_get_type(p_node) == IB_NODE_TYPE_SWITCH) in osm_physp_init() 117 num_slvl = osm_node_get_num_physp(p_node) + 1; in osm_physp_init() 162 p_port->p_node = (struct osm_node *)p_parent_node; in osm_port_init() 446 osm_node_t *p_node; in __osm_physp_get_dr_physp_set() local 462 p_node = p_port->p_node; in __osm_physp_get_dr_physp_set() 471 p_physp = osm_node_get_physp_ptr(p_node, p_path->path[hop]); in __osm_physp_get_dr_physp_set() 490 cl_ntoh64(p_node->node_info.node_guid), in __osm_physp_get_dr_physp_set() [all …]
|
| HD | osm_vl_arb_rcv.c | 71 osm_node_t *p_node; in osm_vla_rcv_process() local 106 p_node = p_port->p_node; in osm_vla_rcv_process() 107 CL_ASSERT(p_node); in osm_vla_rcv_process() 111 if (osm_node_get_type(p_node) == IB_NODE_TYPE_SWITCH) { in osm_vla_rcv_process() 113 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_vla_rcv_process()
|
| HD | osm_slvl_map_rcv.c | 71 osm_node_t *p_node; in osm_slvl_rcv_process() local 106 p_node = p_port->p_node; in osm_slvl_rcv_process() 107 CL_ASSERT(p_node); in osm_slvl_rcv_process() 110 if (osm_node_get_type(p_node) == IB_NODE_TYPE_SWITCH) { in osm_slvl_rcv_process() 115 p_physp = osm_node_get_physp_ptr(p_node, out_port_num); in osm_slvl_rcv_process()
|
| HD | osm_pkey_rcv.c | 64 osm_node_t *p_node; in osm_pkey_rcv_process() local 99 p_node = p_port->p_node; in osm_pkey_rcv_process() 100 CL_ASSERT(p_node); in osm_pkey_rcv_process() 104 if (osm_node_get_type(p_node) == IB_NODE_TYPE_SWITCH) { in osm_pkey_rcv_process() 108 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_pkey_rcv_process()
|
| HD | osm_ucast_updn.c | 121 lid = osm_node_get_base_lid(p_sw->p_node, 0); in updn_bfs_by_node() 127 cl_ntoh64(p_sw->p_node->node_info.port_guid), lid); in updn_bfs_by_node() 150 osm_node_get_remote_node(u->sw->p_node, pn, in updn_bfs_by_node() 169 cl_ntoh64(osm_node_get_node_guid(u->sw->p_node)), in updn_bfs_by_node() 242 cl_ntoh64(osm_node_get_node_guid(p_sw->p_node))); in updn_subn_rank() 248 osm_node_get_physp_ptr(p_sw->p_node, port_num); in updn_subn_rank() 260 if (p_remote_physp && p_remote_physp->p_node->sw) { in updn_subn_rank() 261 remote_u = p_remote_physp->p_node->sw->priv; in updn_subn_rank() 298 if (!p_port || !p_port->p_node->sw in updn_clear_root_hops() 299 || ((struct updn_node *)p_port->p_node->sw->priv)-> in updn_clear_root_hops() [all …]
|
| HD | osm_sa_vlarb_record.c | 96 if (p_physp->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) in __osm_sa_vl_arb_create() 99 lid = osm_node_get_base_lid(p_physp->p_node, 0); in __osm_sa_vl_arb_create() 166 if (p_port->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) { in __osm_sa_vl_arb_by_comp_mask() 176 if (port_num < osm_node_get_num_physp(p_port->p_node)) { in __osm_sa_vl_arb_by_comp_mask() 178 osm_node_get_physp_ptr(p_port->p_node, port_num); in __osm_sa_vl_arb_by_comp_mask() 190 osm_node_get_num_physp(p_port->p_node)); in __osm_sa_vl_arb_by_comp_mask() 194 num_ports = osm_node_get_num_physp(p_port->p_node); in __osm_sa_vl_arb_by_comp_mask() 197 osm_node_get_physp_ptr(p_port->p_node, port_num); in __osm_sa_vl_arb_by_comp_mask()
|
| HD | osm_perfmgr.c | 204 cl_map_item_t *p_node; in osm_perfmgr_mad_send_err_callback() local 212 if ((p_node = cl_qmap_get(&(pm->monitored_map), node_guid)) == in osm_perfmgr_mad_send_err_callback() 219 p_mon_node = (__monitored_node_t *) p_node; in osm_perfmgr_mad_send_err_callback() 336 get_lid(osm_node_t * p_node, uint8_t port, __monitored_node_t * mon_node) in get_lid() argument 343 switch (p_node->node_info.node_type) { in get_lid() 346 return osm_node_get_base_lid(p_node, port); in get_lid() 348 return osm_node_get_base_lid(p_node, 0); in get_lid() 564 osm_node_t *p_node; in sweep_hop_1() local 584 p_node = p_port->p_node; in sweep_hop_1() 585 port_num = ib_node_info_get_local_port_num(&p_node->node_info); in sweep_hop_1() [all …]
|
| HD | osm_console.c | 486 p_port->p_node->print_desc, in querylid_parse() 487 ib_get_node_type_str(osm_node_get_type(p_port->p_node)), in querylid_parse() 488 p_port->p_node->node_info.num_ports); in querylid_parse() 490 if (p_port->p_node->sw) in querylid_parse() 494 for ( /* see above */ ; p < p_port->p_node->physp_tbl_size; p++) { in querylid_parse() 498 p_port->p_node->physp_table[p]. in querylid_parse() 785 if (osm_node_get_type(p_port->p_node) == IB_NODE_TYPE_SWITCH) in switchbalance_check() 804 p_physp = osm_node_get_physp_ptr(p_sw->p_node, port_num); in switchbalance_check() 835 cl_ntoh64(p_sw->p_node->node_info.node_guid), in switchbalance_check() 836 p_sw->p_node->print_desc); in switchbalance_check() [all …]
|
| HD | osm_sa_pkey_record.c | 89 if (p_physp->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) in __osm_sa_pkey_create() 92 lid = osm_node_get_base_lid(p_physp->p_node, 0); in __osm_sa_pkey_create() 164 if (p_port->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) { in __osm_sa_pkey_by_comp_mask() 174 if (port_num < osm_node_get_num_physp(p_port->p_node)) { in __osm_sa_pkey_by_comp_mask() 176 osm_node_get_physp_ptr(p_port->p_node, port_num); in __osm_sa_pkey_by_comp_mask() 188 osm_node_get_num_physp(p_port->p_node)); in __osm_sa_pkey_by_comp_mask() 192 num_ports = osm_node_get_num_physp(p_port->p_node); in __osm_sa_pkey_by_comp_mask() 195 osm_node_get_physp_ptr(p_port->p_node, port_num); in __osm_sa_pkey_by_comp_mask()
|
| /trueos/contrib/ofed/management/opensm/include/opensm/ |
| HD | osm_node.h | 156 void osm_node_delete(IN OUT osm_node_t ** const p_node); 211 static inline osm_physp_t *osm_node_get_physp_ptr(IN osm_node_t * const p_node, in osm_node_get_physp_ptr() argument 215 CL_ASSERT(port_num < p_node->physp_tbl_size); in osm_node_get_physp_ptr() 216 return osm_physp_is_valid(&p_node->physp_table[port_num]) ? in osm_node_get_physp_ptr() 217 &p_node->physp_table[port_num] : NULL; in osm_node_get_physp_ptr() 248 static inline uint8_t osm_node_get_type(IN const osm_node_t * const p_node) in osm_node_get_type() argument 250 return (p_node->node_info.node_type); in osm_node_get_type() 276 static inline uint8_t osm_node_get_num_physp(IN const osm_node_t * const p_node) in osm_node_get_num_physp() argument 278 return ((uint8_t) p_node->physp_tbl_size); in osm_node_get_num_physp() 306 osm_node_t *osm_node_get_remote_node(IN osm_node_t * const p_node, [all …]
|