| /trueos/contrib/ofed/management/opensm/include/opensm/ |
| HD | osm_port.h | 187 void osm_physp_construct(IN osm_physp_t * const p_physp); 212 osm_physp_init(IN osm_physp_t * const p_physp, 266 void osm_physp_destroy(IN osm_physp_t * const p_physp); 295 static inline boolean_t osm_physp_is_valid(IN const osm_physp_t * const p_physp) in osm_physp_is_valid() argument 297 CL_ASSERT(p_physp); in osm_physp_is_valid() 298 return (p_physp->port_guid != 0); in osm_physp_is_valid() 327 osm_physp_is_healthy(IN const osm_physp_t * const p_physp) in osm_physp_is_healthy() argument 329 CL_ASSERT(p_physp); in osm_physp_is_healthy() 330 return (p_physp->healthy); in osm_physp_is_healthy() 361 boolean_t osm_link_is_healthy(IN const osm_physp_t * const p_physp); [all …]
|
| /trueos/contrib/ofed/management/opensm/opensm/ |
| HD | osm_port.c | 59 void osm_physp_construct(IN osm_physp_t * const p_physp) in osm_physp_construct() argument 61 memset(p_physp, 0, sizeof(*p_physp)); in osm_physp_construct() 62 osm_dr_path_construct(&p_physp->dr_path); in osm_physp_construct() 63 cl_ptr_vector_construct(&p_physp->slvl_by_port); in osm_physp_construct() 64 osm_pkey_tbl_construct(&p_physp->pkeys); in osm_physp_construct() 69 void osm_physp_destroy(IN osm_physp_t * const p_physp) in osm_physp_destroy() argument 74 if (p_physp->port_guid) { in osm_physp_destroy() 76 num_slvl = cl_ptr_vector_get_size(&p_physp->slvl_by_port); in osm_physp_destroy() 78 free(cl_ptr_vector_get(&p_physp->slvl_by_port, i)); in osm_physp_destroy() 79 cl_ptr_vector_destroy(&p_physp->slvl_by_port); in osm_physp_destroy() [all …]
|
| HD | osm_pkey_mgr.c | 64 IN const osm_physp_t * p_physp) in pkey_mgr_get_physp_max_blocks() argument 66 osm_node_t *p_node = osm_physp_get_node_ptr(p_physp); in pkey_mgr_get_physp_max_blocks() 69 if (!p_node->sw || (osm_physp_get_port_num(p_physp) == 0)) in pkey_mgr_get_physp_max_blocks() 86 IN osm_physp_t * p_physp) in pkey_mgr_process_physical_port() argument 88 osm_node_t *p_node = osm_physp_get_node_ptr(p_physp); in pkey_mgr_process_physical_port() 94 p_pkey_tbl = &p_physp->pkeys; in pkey_mgr_process_physical_port() 101 osm_physp_get_port_num(p_physp)); in pkey_mgr_process_physical_port() 124 osm_physp_get_port_num(p_physp)); in pkey_mgr_process_physical_port() 136 osm_physp_get_port_num(p_physp)); in pkey_mgr_process_physical_port() 150 osm_physp_t *p_physp; in pkey_mgr_process_partition_table() local [all …]
|
| HD | osm_port_info_rcv.c | 69 IN osm_physp_t * const p_physp) in __osm_pi_rcv_set_sm() argument 79 p_dr_path = osm_physp_get_dr_path_ptr(p_physp); in __osm_pi_rcv_set_sm() 108 IN osm_physp_t * const p_physp, in __osm_pi_rcv_process_endport() argument 120 port_guid = osm_physp_get_port_guid(p_physp); in __osm_pi_rcv_process_endport() 123 if (osm_physp_get_port_num(p_physp) != 0) { in __osm_pi_rcv_process_endport() 150 __osm_pi_rcv_set_sm(sm, p_physp); in __osm_pi_rcv_process_endport() 183 (p_physp), in __osm_pi_rcv_process_endport() 210 IN osm_physp_t * const p_physp, in __osm_pi_rcv_process_switch_port() argument 228 port_num = osm_physp_get_port_num(p_physp); in __osm_pi_rcv_process_switch_port() 235 p_remote_physp = osm_physp_get_remote(p_physp); in __osm_pi_rcv_process_switch_port() [all …]
|
| HD | osm_node.c | 180 osm_physp_t *p_physp; in osm_node_link() local 186 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_node_link() 189 if (p_physp->p_remote_physp) in osm_node_link() 190 p_physp->p_remote_physp->p_remote_physp = NULL; in osm_node_link() 194 osm_physp_link(p_physp, p_remote_physp); in osm_node_link() 205 osm_physp_t *p_physp; in osm_node_unlink() local 214 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_node_unlink() 218 osm_physp_unlink(p_physp, p_remote_physp); in osm_node_unlink() 230 osm_physp_t *p_physp; in osm_node_link_exists() local 236 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_node_link_exists() [all …]
|
| HD | osm_sa_pkey_record.c | 71 IN osm_physp_t * const p_physp, in __osm_sa_pkey_create() argument 89 if (p_physp->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) in __osm_sa_pkey_create() 90 lid = p_physp->port_info.base_lid; in __osm_sa_pkey_create() 92 lid = osm_node_get_base_lid(p_physp->p_node, 0); in __osm_sa_pkey_create() 97 cl_ntoh64(osm_physp_get_port_guid(p_physp)), in __osm_sa_pkey_create() 98 cl_ntoh16(lid), osm_physp_get_port_num(p_physp), block); in __osm_sa_pkey_create() 104 p_rec_item->rec.port_num = osm_physp_get_port_num(p_physp); in __osm_sa_pkey_create() 106 *(osm_pkey_tbl_block_get(osm_physp_get_pkey_tbl(p_physp), block)); in __osm_sa_pkey_create() 118 IN osm_physp_t * const p_physp, in __osm_sa_pkey_check_physp() argument 128 __osm_sa_pkey_create(sa, p_physp, p_ctxt, p_ctxt->block_num); in __osm_sa_pkey_check_physp() [all …]
|
| HD | osm_sa_vlarb_record.c | 78 IN osm_physp_t * const p_physp, in __osm_sa_vl_arb_create() argument 96 if (p_physp->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) in __osm_sa_vl_arb_create() 97 lid = p_physp->port_info.base_lid; in __osm_sa_vl_arb_create() 99 lid = osm_node_get_base_lid(p_physp->p_node, 0); in __osm_sa_vl_arb_create() 104 cl_ntoh64(osm_physp_get_port_guid(p_physp)), in __osm_sa_vl_arb_create() 105 cl_ntoh16(lid), osm_physp_get_port_num(p_physp), block); in __osm_sa_vl_arb_create() 110 p_rec_item->rec.port_num = osm_physp_get_port_num(p_physp); in __osm_sa_vl_arb_create() 112 p_rec_item->rec.vl_arb_tbl = *(osm_physp_get_vla_tbl(p_physp, block)); in __osm_sa_vl_arb_create() 124 IN osm_physp_t * const p_physp, in __osm_sa_vl_arb_check_physp() argument 136 __osm_sa_vl_arb_create(sa, p_physp, p_ctxt, block); in __osm_sa_vl_arb_check_physp() [all …]
|
| HD | osm_switch.c | 213 osm_physp_t *p_physp; in osm_switch_find_guid_common() local 222 p_physp = osm_node_get_physp_ptr(p_sw->p_node, port_num); in osm_switch_find_guid_common() 223 p_rem_physp = osm_physp_get_remote(p_physp); in osm_switch_find_guid_common() 301 osm_physp_t *p_physp; in osm_switch_recommend_path() local 314 p_physp = p_port->p_physp; in osm_switch_recommend_path() 315 if (!p_physp || !p_physp->p_remote_physp || in osm_switch_recommend_path() 316 !p_physp->p_remote_physp->p_node->sw) in osm_switch_recommend_path() 319 if (p_physp->p_remote_physp->p_node->sw == p_sw) in osm_switch_recommend_path() 320 return p_physp->p_remote_physp->port_num; in osm_switch_recommend_path() 322 osm_node_get_base_lid(p_physp->p_remote_physp->p_node, 0); in osm_switch_recommend_path() [all …]
|
| HD | osm_link_mgr.c | 59 IN osm_physp_t * const p_physp, in __osm_link_mgr_set_physp_pi() argument 77 p_node = osm_physp_get_node_ptr(p_physp); in __osm_link_mgr_set_physp_pi() 79 port_num = osm_physp_get_port_num(p_physp); in __osm_link_mgr_set_physp_pi() 100 cl_ntoh64(osm_physp_get_port_guid(p_physp))); in __osm_link_mgr_set_physp_pi() 110 p_old_pi = &p_physp->port_info; in __osm_link_mgr_set_physp_pi() 151 p_pi->base_lid = osm_physp_get_base_lid(p_physp); in __osm_link_mgr_set_physp_pi() 193 p_remote_physp = osm_physp_get_remote(p_physp); in __osm_link_mgr_set_physp_pi() 195 if (osm_node_get_type(osm_physp_get_node_ptr(p_physp)) in __osm_link_mgr_set_physp_pi() 203 (osm_physp_get_node_ptr(p_physp)) == in __osm_link_mgr_set_physp_pi() 272 osm_physp_calc_link_op_vls(sm->p_log, sm->p_subn, p_physp); in __osm_link_mgr_set_physp_pi() [all …]
|
| HD | osm_sa_portinfo_record.c | 79 IN const osm_physp_t * const p_physp, in __osm_pir_rcv_new_pir() argument 98 cl_ntoh64(osm_physp_get_port_guid(p_physp)), in __osm_pir_rcv_new_pir() 99 cl_ntoh16(lid), osm_physp_get_port_num(p_physp)); in __osm_pir_rcv_new_pir() 104 p_rec_item->rec.port_info = p_physp->port_info; in __osm_pir_rcv_new_pir() 105 p_rec_item->rec.port_num = osm_physp_get_port_num(p_physp); in __osm_pir_rcv_new_pir() 118 IN const osm_physp_t * const p_physp, in __osm_sa_pir_create() argument 129 if (p_physp->p_node->sw) { in __osm_sa_pir_create() 130 p_node_physp = osm_node_get_physp_ptr(p_physp->p_node, 0); in __osm_sa_pir_create() 133 osm_switch_sp0_is_lmc_capable(p_physp->p_node->sw, in __osm_sa_pir_create() 138 lmc = osm_physp_get_lmc(p_physp); in __osm_sa_pir_create() [all …]
|
| HD | osm_node_info_rcv.c | 66 osm_physp_t * p_physp, in report_duplicated_guid() argument 72 p_old = p_physp->p_remote_physp; in report_duplicated_guid() 80 cl_ntoh64(p_physp->p_node->node_info.node_guid), in report_duplicated_guid() 81 p_physp->port_num, in report_duplicated_guid() 85 osm_dump_dr_path(sm->p_log, osm_physp_get_dr_path_ptr(p_physp), in report_duplicated_guid() 97 osm_physp_t * p_physp, unsigned count) in requery_dup_node_info() argument 103 path = *osm_physp_get_dr_path_ptr(p_physp->p_remote_physp); in requery_dup_node_info() 104 osm_dr_path_extend(&path, p_physp->p_remote_physp->port_num); in requery_dup_node_info() 107 p_physp->p_remote_physp->p_node->node_info.port_guid; in requery_dup_node_info() 108 context.ni_context.port_num = p_physp->p_remote_physp->port_num; in requery_dup_node_info() [all …]
|
| HD | osm_dump.c | 181 osm_physp_t *p_physp = p_port->p_physp; in dump_ucast_routes() local 183 if (!p_physp || !p_physp->p_remote_physp || in dump_ucast_routes() 184 !p_physp->p_remote_physp->p_node->sw) in dump_ucast_routes() 188 osm_node_get_base_lid(p_physp-> in dump_ucast_routes() 193 p_physp->p_remote_physp->p_node-> in dump_ucast_routes() 365 osm_physp_t *p_physp, *p_default_physp, *p_rphysp; in dump_topology_node() local 374 p_physp = osm_node_get_physp_ptr(p_node, cPort); in dump_topology_node() 375 if (!p_physp) in dump_topology_node() 378 p_rphysp = p_physp->p_remote_physp; in dump_topology_node() 382 CL_ASSERT(cPort == p_physp->port_num); in dump_topology_node() [all …]
|
| HD | osm_drop_mgr.c | 86 static void drop_mgr_clean_physp(osm_sm_t * sm, IN osm_physp_t * p_physp) in drop_mgr_clean_physp() argument 91 p_remote_physp = osm_physp_get_remote(p_physp); in drop_mgr_clean_physp() 132 cl_ntoh64(osm_node_get_node_guid(p_physp->p_node)), in drop_mgr_clean_physp() 133 p_physp->port_num, in drop_mgr_clean_physp() 140 p_physp, p_remote_physp); in drop_mgr_clean_physp() 142 osm_physp_unlink(p_physp, p_remote_physp); in drop_mgr_clean_physp() 148 cl_ntoh64(osm_node_get_node_guid(p_physp->p_node)), in drop_mgr_clean_physp() 149 p_physp->port_num); in drop_mgr_clean_physp() 151 osm_physp_destroy(p_physp); in drop_mgr_clean_physp() 212 drop_mgr_clean_physp(sm, p_port->p_physp); in __osm_drop_mgr_remove_port() [all …]
|
| HD | osm_vl_arb_rcv.c | 70 osm_physp_t *p_physp; in osm_vla_rcv_process() local 113 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_vla_rcv_process() 115 p_physp = p_port->p_physp; in osm_vla_rcv_process() 116 port_num = p_physp->port_num; in osm_vla_rcv_process() 133 if (!p_physp) { in osm_vla_rcv_process() 148 osm_physp_set_vla_tbl(p_physp, p_vla_tbl, block_num); in osm_vla_rcv_process()
|
| HD | osm_slvl_map_rcv.c | 70 osm_physp_t *p_physp; in osm_slvl_rcv_process() local 115 p_physp = osm_node_get_physp_ptr(p_node, out_port_num); in osm_slvl_rcv_process() 117 p_physp = p_port->p_physp; in osm_slvl_rcv_process() 118 out_port_num = p_physp->port_num; in osm_slvl_rcv_process() 136 if (!p_physp) { in osm_slvl_rcv_process() 146 osm_physp_set_slvl_tbl(p_physp, p_slvl_tbl, in_port_num); in osm_slvl_rcv_process()
|
| HD | osm_pkey_rcv.c | 63 osm_physp_t *p_physp; in osm_pkey_rcv_process() local 108 p_physp = osm_node_get_physp_ptr(p_node, port_num); in osm_pkey_rcv_process() 110 p_physp = p_port->p_physp; in osm_pkey_rcv_process() 111 port_num = p_physp->port_num; in osm_pkey_rcv_process() 128 if (!p_physp) { in osm_pkey_rcv_process() 139 p_physp, p_pkey_tbl, block_num); in osm_pkey_rcv_process()
|
| HD | osm_trap_rcv.c | 59 extern void osm_req_get_node_desc(IN osm_sm_t * sm, osm_physp_t *p_physp); 85 osm_physp_t *p_physp; member 118 osm_physp_t *p_physp; in osm_trap_rcv_aging_tracker_callback() local 129 p_physp = get_physp_by_lid_and_num(sm, lid, port_num); in osm_trap_rcv_aging_tracker_callback() 130 if (!p_physp) in osm_trap_rcv_aging_tracker_callback() 136 else if (!osm_physp_is_healthy(p_physp)) { in osm_trap_rcv_aging_tracker_callback() 142 osm_physp_set_health(p_physp, TRUE); in osm_trap_rcv_aging_tracker_callback() 291 osm_physp_t *p_physp; in __osm_trap_rcv_process_request() local 416 p_physp = osm_get_physp_by_mad_addr(sm->p_log, in __osm_trap_rcv_process_request() 418 if (p_physp) in __osm_trap_rcv_process_request() [all …]
|
| HD | osm_sa_guidinfo_record.c | 127 const osm_physp_t *p_physp; in __osm_sa_gir_create_gir() local 153 p_physp = osm_node_get_physp_ptr(p_node, port_num); in __osm_sa_gir_create_gir() 154 if (!p_physp) in __osm_sa_gir_create_gir() 159 if (!osm_physp_share_pkey(sa->p_log, p_physp, p_req_physp)) in __osm_sa_gir_create_gir() 162 port_guid = osm_physp_get_port_guid(p_physp); in __osm_sa_gir_create_gir() 174 if (p_physp->port_info.guid_cap == 0) in __osm_sa_gir_create_gir() 177 num_blocks = p_physp->port_info.guid_cap / 8; in __osm_sa_gir_create_gir() 178 if (p_physp->port_info.guid_cap % 8) in __osm_sa_gir_create_gir() 189 base_lid_ho = cl_ntoh16(osm_physp_get_base_lid(p_physp)); in __osm_sa_gir_create_gir() 192 lmc = osm_physp_get_lmc(p_physp); in __osm_sa_gir_create_gir() [all …]
|
| HD | osm_sa_slvl_record.c | 78 IN const osm_physp_t * const p_physp, in __osm_sa_slvl_create() argument 96 if (p_physp->p_node->node_info.node_type != IB_NODE_TYPE_SWITCH) in __osm_sa_slvl_create() 97 lid = p_physp->port_info.base_lid; in __osm_sa_slvl_create() 99 lid = osm_node_get_base_lid(p_physp->p_node, 0); in __osm_sa_slvl_create() 104 cl_ntoh64(osm_physp_get_port_guid(p_physp)), in __osm_sa_slvl_create() 105 cl_ntoh16(lid), osm_physp_get_port_num(p_physp), in_port_idx); in __osm_sa_slvl_create() 110 p_rec_item->rec.out_port_num = osm_physp_get_port_num(p_physp); in __osm_sa_slvl_create() 113 *(osm_physp_get_slvl_tbl(p_physp, in_port_idx)); in __osm_sa_slvl_create() 151 p_port->p_physp->port_num); in __osm_sa_slvl_by_comp_mask() 152 p_out_physp = p_port->p_physp; in __osm_sa_slvl_by_comp_mask()
|
| HD | osm_qos.c | 199 osm_physp_t *p_physp; in sl2vl_update() local 204 p_physp = p_port->p_physp; in sl2vl_update() 206 (p_physp->port_info. in sl2vl_update() 272 osm_physp_t *p_physp; in osm_qos_setup() local 307 p_physp = osm_node_get_physp_ptr(p_node, i); in osm_qos_setup() 308 if (!p_physp) in osm_qos_setup() 310 force_update = p_physp->need_update || in osm_qos_setup() 314 p_port, p_physp, i, in osm_qos_setup() 328 p_physp = p_port->p_physp; in osm_qos_setup() 329 if (!p_physp) in osm_qos_setup() [all …]
|
| HD | osm_state_mgr.c | 160 IN osm_physp_t * const p_physp) in __osm_state_mgr_get_remote_port_info() argument 170 p_dr_path = osm_physp_get_dr_path_ptr(p_physp); in __osm_state_mgr_get_remote_port_info() 172 osm_dr_path_extend(&rem_node_dr_path, osm_physp_get_port_num(p_physp)); in __osm_state_mgr_get_remote_port_info() 177 osm_node_get_node_guid(osm_physp_get_node_ptr(p_physp)); in __osm_state_mgr_get_remote_port_info() 178 mad_context.pi_context.port_guid = p_physp->port_guid; in __osm_state_mgr_get_remote_port_info() 327 osm_physp_t *p_physp; in __osm_state_mgr_is_sm_port_down() local 357 p_physp = p_port->p_physp; in __osm_state_mgr_is_sm_port_down() 359 CL_ASSERT(p_physp); in __osm_state_mgr_is_sm_port_down() 361 state = osm_physp_get_port_state(p_physp); in __osm_state_mgr_is_sm_port_down() 381 osm_physp_t *p_physp; in __osm_state_mgr_sweep_hop_1() local [all …]
|
| HD | osm_ucast_cache.c | 443 osm_physp_t *p_physp; in ucast_cache_validate() local 479 p_physp = osm_node_get_physp_ptr(p_node, port_num); in ucast_cache_validate() 481 if (!p_physp || !p_physp->p_remote_physp || in ucast_cache_validate() 482 !osm_physp_link_exists(p_physp, in ucast_cache_validate() 483 p_physp->p_remote_physp)) in ucast_cache_validate() 494 p_physp->p_remote_physp->p_node && in ucast_cache_validate() 495 osm_node_get_type(p_physp->p_remote_physp-> in ucast_cache_validate() 499 if (!p_physp->need_update) in ucast_cache_validate() 506 p_remote_physp = osm_physp_get_remote(p_physp); in ucast_cache_validate() 948 osm_physp_t *p_physp; in osm_ucast_cache_add_node() local [all …]
|
| HD | osm_sa_multipath_record.c | 169 const osm_physp_t *p_physp; in __osm_mpr_rcv_get_path_parms() local 195 p_dest_physp = p_dest_port->p_physp; in __osm_mpr_rcv_get_path_parms() 196 p_physp = p_src_port->p_physp; in __osm_mpr_rcv_get_path_parms() 197 p_src_physp = p_physp; in __osm_mpr_rcv_get_path_parms() 198 p_pi = &p_physp->port_info; in __osm_mpr_rcv_get_path_parms() 227 p_node = osm_physp_get_node_ptr(p_physp); in __osm_mpr_rcv_get_path_parms() 235 p_physp = osm_switch_get_route_by_lid(p_node->sw, dest_lid); in __osm_mpr_rcv_get_path_parms() 236 if (p_physp == 0) { in __osm_mpr_rcv_get_path_parms() 252 p_slvl_tbl = osm_physp_get_slvl_tbl(p_physp, 0); in __osm_mpr_rcv_get_path_parms() 294 while (p_physp != p_dest_physp) { in __osm_mpr_rcv_get_path_parms() [all …]
|
| HD | osm_sw_info_rcv.c | 66 osm_physp_t *p_physp; in __osm_si_rcv_get_port_info() local 82 p_physp = osm_node_get_physp_ptr(p_node, 0); in __osm_si_rcv_get_port_info() 85 context.pi_context.port_guid = osm_physp_get_port_guid(p_physp); in __osm_si_rcv_get_port_info() 93 status = osm_req_get(sm, osm_physp_get_dr_path_ptr(p_physp), in __osm_si_rcv_get_port_info() 115 osm_physp_t *p_physp; 134 p_physp = osm_node_get_physp_ptr(p_node, 0); 135 p_dr_path = osm_physp_get_dr_path_ptr(p_physp); 162 osm_physp_t *p_physp; 209 p_physp = osm_node_get_physp_ptr(p_node, 0); 210 p_dr_path = osm_physp_get_dr_path_ptr(p_physp);
|
| HD | osm_sa_path_record.c | 178 const osm_physp_t *p_physp; in __osm_pr_rcv_get_path_parms() local 205 p_dest_physp = p_dest_port->p_physp; in __osm_pr_rcv_get_path_parms() 206 p_physp = p_src_port->p_physp; in __osm_pr_rcv_get_path_parms() 207 p_src_physp = p_physp; in __osm_pr_rcv_get_path_parms() 208 p_pi = &p_physp->port_info; in __osm_pr_rcv_get_path_parms() 237 p_node = osm_physp_get_node_ptr(p_physp); in __osm_pr_rcv_get_path_parms() 245 p_physp = osm_switch_get_route_by_lid(p_node->sw, dest_lid); in __osm_pr_rcv_get_path_parms() 246 if (p_physp == 0) { in __osm_pr_rcv_get_path_parms() 262 p_slvl_tbl = osm_physp_get_slvl_tbl(p_physp, 0); in __osm_pr_rcv_get_path_parms() 304 while (p_physp != p_dest_physp) { in __osm_pr_rcv_get_path_parms() [all …]
|