/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_opensm.c | 241 void osm_opensm_construct(IN osm_opensm_t * p_osm) in osm_opensm_construct() argument 243 memset(p_osm, 0, sizeof(*p_osm)); in osm_opensm_construct() 244 p_osm->osm_version = OSM_VERSION; in osm_opensm_construct() 245 osm_subn_construct(&p_osm->subn); in osm_opensm_construct() 246 osm_db_construct(&p_osm->db); in osm_opensm_construct() 247 osm_log_construct(&p_osm->log); in osm_opensm_construct() 250 void osm_opensm_construct_finish(IN osm_opensm_t * p_osm) in osm_opensm_construct_finish() argument 252 osm_sm_construct(&p_osm->sm); in osm_opensm_construct_finish() 253 osm_sa_construct(&p_osm->sa); in osm_opensm_construct_finish() 254 osm_mad_pool_construct(&p_osm->mad_pool); in osm_opensm_construct_finish() [all …]
|
H A D | osm_ucast_updn.c | 70 osm_opensm_t *p_osm; member 217 osm_log_t *p_log = &p_updn->p_osm->log; in updn_subn_rank() 224 for (item = cl_qmap_head(&p_updn->p_osm->subn.sw_guid_tbl); in updn_subn_rank() 225 item != cl_qmap_end(&p_updn->p_osm->subn.sw_guid_tbl); in updn_subn_rank() 292 port = osm_get_port_by_lid_ho(&updn->p_osm->subn, i); in updn_clear_non_root_hops() 302 osm_subn_t *p_subn = &p_updn->p_osm->subn; in updn_set_min_hop_table() 303 osm_log_t *p_log = &p_updn->p_osm->log; in updn_set_min_hop_table() 314 for (item = cl_qmap_head(&p_updn->p_osm->subn.sw_guid_tbl); in updn_set_min_hop_table() 315 item != cl_qmap_end(&p_updn->p_osm->subn.sw_guid_tbl); in updn_set_min_hop_table() 332 for (item = cl_qmap_head(&p_updn->p_osm->subn.sw_guid_tbl); in updn_set_min_hop_table() [all …]
|
H A D | osm_console.c | 69 void (*parse_function) (char **p_last, osm_opensm_t * p_osm, 77 void (*loop_function) (osm_opensm_t * p_osm, FILE * out); 296 static void help_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) in help_parse() argument 319 static void loglevel_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) in loglevel_parse() argument 327 osm_log_get_level(&p_osm->log)); in loglevel_parse() 342 osm_log_set_level(&p_osm->log, level); in loglevel_parse() 348 static void permodlog_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) in permodlog_parse() argument 353 if (p_osm->subn.opt.per_module_logging_file != NULL) { in permodlog_parse() 354 fp = fopen(p_osm->subn.opt.per_module_logging_file, "r"); in permodlog_parse() 359 p_osm->subn.opt.per_module_logging_file, in permodlog_parse() [all …]
|
H A D | osm_ucast_file.c | 58 static uint16_t remap_lid(osm_opensm_t * p_osm, uint16_t lid, ib_net64_t guid) in remap_lid() argument 64 p_port = osm_get_port_by_guid(&p_osm->subn, guid); in remap_lid() 66 OSM_LOG(&p_osm->log, OSM_LOG_VERBOSE, in remap_lid() 80 static void add_path(osm_opensm_t * p_osm, in add_path() argument 87 new_lid = port_guid ? remap_lid(p_osm, lid, port_guid) : lid; in add_path() 90 OSM_LOG(&p_osm->log, OSM_LOG_VERBOSE, in add_path() 98 if (!(p_osm->subn.opt.port_profile_switch_nodes && port_guid && in add_path() 99 osm_get_switch_by_guid(&p_osm->subn, port_guid))) in add_path() 102 OSM_LOG(&p_osm->log, OSM_LOG_DEBUG, in add_path() 109 static void add_lid_hops(osm_opensm_t * p_osm, osm_switch_t * p_sw, in add_lid_hops() argument [all …]
|
H A D | osm_sa.c | 352 cl_atomic_inc(&sa->p_subn->p_osm->stats.sa_mads_sent); in osm_sa_send() 355 cl_atomic_dec(&sa->p_subn->p_osm->stats.sa_mads_sent); in osm_sa_send() 544 osm_opensm_t *p_osm; member 549 opensm_dump_to_file(osm_opensm_t * p_osm, const char *file_name, in opensm_dump_to_file() argument 550 void (*dump_func) (osm_opensm_t * p_osm, FILE * file)) in opensm_dump_to_file() 558 p_osm->subn.opt.dump_files_dir, file_name); in opensm_dump_to_file() 564 OSM_LOG(&p_osm->log, OSM_LOG_ERROR, "ERR 4C01: " in opensm_dump_to_file() 571 OSM_LOG(&p_osm->log, OSM_LOG_ERROR, "ERR 4C0C: " in opensm_dump_to_file() 579 dump_func(p_osm, file); in opensm_dump_to_file() 581 if (p_osm->subn.opt.fsync_high_avail_files) { in opensm_dump_to_file() [all …]
|
H A D | osm_ucast_dnup.c | 71 osm_opensm_t *p_osm; member 228 osm_log_t *p_log = &p_dnup->p_osm->log; in dnup_subn_rank() 235 for (item = cl_qmap_head(&p_dnup->p_osm->subn.sw_guid_tbl); in dnup_subn_rank() 236 item != cl_qmap_end(&p_dnup->p_osm->subn.sw_guid_tbl); in dnup_subn_rank() 297 osm_subn_t *p_subn = &p_dnup->p_osm->subn; in dnup_set_min_hop_table() 298 osm_log_t *p_log = &p_dnup->p_osm->log; in dnup_set_min_hop_table() 311 for (item = cl_qmap_head(&p_dnup->p_osm->subn.sw_guid_tbl); in dnup_set_min_hop_table() 312 item != cl_qmap_end(&p_dnup->p_osm->subn.sw_guid_tbl); in dnup_set_min_hop_table() 326 for (item = cl_qmap_head(&p_dnup->p_osm->subn.sw_guid_tbl); in dnup_set_min_hop_table() 327 item != cl_qmap_end(&p_dnup->p_osm->subn.sw_guid_tbl); in dnup_set_min_hop_table() [all …]
|
H A D | osm_ucast_ftree.c | 208 osm_opensm_t *p_osm; member 485 if (!OSM_LOG_IS_ACTIVE_V2(&p_ftree->p_osm->log, OSM_LOG_DEBUG)) in port_group_dump() 492 OSM_LOG(&p_ftree->p_osm->log, OSM_LOG_ERROR, "ERR AB33: " in port_group_dump() 506 OSM_LOG(&p_ftree->p_osm->log, OSM_LOG_DEBUG, in port_group_dump() 658 if (!OSM_LOG_IS_ACTIVE_V2(&p_ftree->p_osm->log, OSM_LOG_DEBUG)) in sw_dump() 661 OSM_LOG(&p_ftree->p_osm->log, OSM_LOG_DEBUG, in sw_dump() 884 if (!OSM_LOG_IS_ACTIVE_V2(&p_ftree->p_osm->log, OSM_LOG_DEBUG)) in hca_dump() 887 OSM_LOG(&p_ftree->p_osm->log, OSM_LOG_DEBUG, in hca_dump() 940 OSM_LOG(&p_ftree->p_osm->log, OSM_LOG_ERROR, in hca_add_port() 1174 if (!OSM_LOG_IS_ACTIVE_V2(&p_ftree->p_osm->log, OSM_LOG_DEBUG)) in fabric_dump() [all …]
|
H A D | osm_congestion_control.c | 127 osm_congestion_control_t *p_cc = &p_sm->p_subn->p_osm->cc; in cc_setup_mad_data() 220 osm_congestion_control_t *p_cc = &p_sm->p_subn->p_osm->cc; in cc_send_sw_cong_setting() 267 osm_congestion_control_t *p_cc = &p_sm->p_subn->p_osm->cc; in cc_send_ca_cong_setting() 311 osm_congestion_control_t *p_cc = &p_sm->p_subn->p_osm->cc; in cc_send_cct() 354 int osm_congestion_control_setup(struct osm_opensm *p_osm) in osm_congestion_control_setup() argument 360 if (!p_osm->subn.opt.congestion_control) in osm_congestion_control_setup() 363 OSM_LOG_ENTER(&p_osm->log); in osm_congestion_control_setup() 368 if (!p_osm->routing_engine_used) in osm_congestion_control_setup() 371 cc_setup_mad_data(&p_osm->sm); in osm_congestion_control_setup() 373 cl_plock_acquire(&p_osm->lock); in osm_congestion_control_setup() [all …]
|
H A D | osm_qos.c | 157 struct osm_routing_engine *re = sm->p_subn->p_osm->routing_engine_used; in vlarb_update_table_block() 302 struct osm_routing_engine *re = sm->p_subn->p_osm->routing_engine_used; in qos_extports_setup() 419 struct osm_routing_engine *re = sm->p_subn->p_osm->routing_engine_used; in qos_endport_setup() 444 int osm_qos_setup(osm_opensm_t * p_osm) in osm_qos_setup() argument 458 if (!p_osm->subn.opt.qos) in osm_qos_setup() 461 OSM_LOG_ENTER(&p_osm->log); in osm_qos_setup() 463 qos_build_config(&ca_config, &p_osm->subn.opt.qos_ca_options, in osm_qos_setup() 464 &p_osm->subn.opt.qos_options); in osm_qos_setup() 465 qos_build_config(&sw0_config, &p_osm->subn.opt.qos_sw0_options, in osm_qos_setup() 466 &p_osm->subn.opt.qos_options); in osm_qos_setup() [all …]
|
H A D | osm_state_mgr.c | 76 extern int osm_qos_setup(IN osm_opensm_t * p_osm); 77 extern int osm_pkey_mgr_process(IN osm_opensm_t * p_osm); 387 p_subn->p_osm->sa.dirty = TRUE; in state_mgr_sa_clean() 998 p_smi->act_count = cl_hton32(sm->p_subn->p_osm->stats.qp0_mads_sent); in state_mgr_send_handover() 1331 if (wait_for_pending_transactions(&sm->p_subn->p_osm->stats)) in do_sweep() 1335 !osm_sa_db_file_dump(sm->p_subn->p_osm)) in do_sweep() 1336 osm_opensm_report_event(sm->p_subn->p_osm, in do_sweep() 1374 osm_qos_setup(sm->p_subn->p_osm); in do_sweep() 1379 if (wait_for_pending_transactions(&sm->p_subn->p_osm->stats)) in do_sweep() 1382 osm_congestion_control_setup(sm->p_subn->p_osm); in do_sweep() [all …]
|
H A D | osm_pkey_mgr.c | 810 int osm_pkey_mgr_process(IN osm_opensm_t * p_osm) in osm_pkey_mgr_process() argument 822 CL_ASSERT(p_osm); in osm_pkey_mgr_process() 824 OSM_LOG_ENTER(&p_osm->log); in osm_pkey_mgr_process() 826 CL_PLOCK_EXCL_ACQUIRE(&p_osm->lock); in osm_pkey_mgr_process() 828 if (osm_prtn_make_partitions(&p_osm->log, &p_osm->subn) != IB_SUCCESS) { in osm_pkey_mgr_process() 829 OSM_LOG(&p_osm->log, OSM_LOG_ERROR, "ERR 0510: " in osm_pkey_mgr_process() 836 p_tbl = &p_osm->subn.prtn_pkey_tbl; in osm_pkey_mgr_process() 841 pkey_mgr_process_partition_table(&p_osm->log, &p_osm->sm, in osm_pkey_mgr_process() 843 pkey_mgr_process_partition_table(&p_osm->log, &p_osm->sm, in osm_pkey_mgr_process() 848 p_tbl = &p_osm->subn.port_guid_tbl; in osm_pkey_mgr_process() [all …]
|
H A D | osm_ucast_lash.c | 70 osm_log_t *p_log = &p_lash->p_osm->log; in connect_switches() 84 if (p_lash->p_osm->subn.opt.do_mesh_analysis) { in connect_switches() 469 unsigned start_vl = p_lash->p_osm->subn.opt.lash_start_vl; in balance_virtual_lanes() 665 osm_log_t *p_log = &p_lash->p_osm->log; in free_lash_structures() 706 osm_log_t *p_log = &p_lash->p_osm->log; in init_lash_structures() 785 osm_log_t *p_log = &p_lash->p_osm->log; in lash_core() 798 unsigned start_vl = p_lash->p_osm->subn.opt.lash_start_vl; in lash_core() 802 if (p_lash->p_osm->subn.opt.do_mesh_analysis && osm_do_mesh_analysis(p_lash)) { in lash_core() 988 osm_log_t *p_log = &p_lash->p_osm->log; in populate_fwd_tbls() 989 osm_subn_t *p_subn = &p_lash->p_osm->subn; in populate_fwd_tbls() [all …]
|
H A D | osm_dump.c | 130 osm_opensm_t *p_osm = cxt; in dump_ucast_routes() local 140 dor = (p_osm->routing_engine_used && in dump_ucast_routes() 141 p_osm->routing_engine_used->type == OSM_ROUTING_ENGINE_TYPE_DOR); in dump_ucast_routes() 146 p_port = osm_get_port_by_lid_ho(&p_osm->subn, lid_ho); in dump_ucast_routes() 228 p_osm->subn.opt.port_shifting, in dump_ucast_routes() 229 p_osm->subn.opt.scatter_ports, in dump_ucast_routes() 306 osm_opensm_t *p_osm = cxt; in dump_lid_matrix() local 323 p_port = osm_get_port_by_lid_ho(&p_osm->subn, lid); in dump_lid_matrix() 334 osm_opensm_t *p_osm = cxt; in dump_ucast_lfts() local 354 p_port = osm_get_port_by_lid_ho(&p_osm->subn, lid); in dump_ucast_lfts() [all …]
|
H A D | osm_ucast_mgr.c | 512 OSM_LOG(&p_subn->p_osm->log, OSM_LOG_VERBOSE, in set_search_ordering_ports() 519 OSM_LOG(&p_subn->p_osm->log, OSM_LOG_VERBOSE, in set_search_ordering_ports() 527 OSM_LOG(&p_subn->p_osm->log, OSM_LOG_ERROR, in set_search_ordering_ports() 538 OSM_LOG(&p_subn->p_osm->log, OSM_LOG_ERROR, in set_search_ordering_ports() 551 OSM_LOG(&p_subn->p_osm->log, OSM_LOG_VERBOSE, in set_search_ordering_ports() 560 OSM_LOG(&p_subn->p_osm->log, OSM_LOG_VERBOSE, in set_search_ordering_ports() 689 OSM_LOG(&p_subn->p_osm->log, OSM_LOG_ERROR, "ERR 3A0B: " in ucast_mgr_setup_all_switches() 702 OSM_LOG(&p_subn->p_osm->log, OSM_LOG_DEBUG, in ucast_mgr_setup_all_switches() 707 OSM_LOG(&p_subn->p_osm->log, OSM_LOG_ERROR, "ERR 3A0F: " in ucast_mgr_setup_all_switches() 1100 osm_opensm_t *p_osm; in osm_ucast_mgr_process() local [all …]
|
H A D | main.c | 429 static ib_net64_t get_port_guid(IN osm_opensm_t * p_osm, uint64_t port_guid) in get_port_guid() argument 444 status = osm_vendor_get_all_port_attr(p_osm->p_vendor, attr_array, in get_port_guid() 476 if (p_osm->subn.opt.daemon) in get_port_guid() 564 int osm_manager_loop(osm_subn_opt_t * p_opt, osm_opensm_t * p_osm) in osm_manager_loop() argument 569 if (!osm_console_init(p_opt, &p_osm->console, &p_osm->log)) in osm_manager_loop() 578 if (osm_console(p_osm)) in osm_manager_loop() 585 osm_log_reopen_file(&(p_osm->log)); in osm_manager_loop() 590 p_osm->subn.force_heavy_sweep = TRUE; in osm_manager_loop() 591 osm_opensm_sweep(p_osm); in osm_manager_loop() 595 osm_console_exit(&p_osm->console, &p_osm->log); in osm_manager_loop()
|
H A D | osm_subnet.c | 241 p_subn->p_osm->log.level = *((uint8_t *) p_val); in opts_setup_log_flags() 246 p_subn->p_osm->log.flush = *((boolean_t *) p_val); in opts_setup_force_log_flush() 251 p_subn->p_osm->log.accum_log_file = *((boolean_t *) p_val); in opts_setup_accum_log_file() 258 p_subn->p_osm->log.max_size = (unsigned long)log_max_size << 20; /* convert from MB to bytes */ in opts_setup_log_max_size() 263 osm_sm_t *p_sm = &p_subn->p_osm->sm; in opts_setup_sminfo_polling_timeout() 272 osm_sm_t *p_sm = &p_subn->p_osm->sm; in opts_setup_sm_priority() 932 OSM_LOG_ENTER(&(p_subn->p_osm->log)); in subn_validate_g2m() 936 OSM_LOG(&(p_subn->p_osm->log), OSM_LOG_ERROR, "ERR 7506: " in subn_validate_g2m() 946 OSM_LOG(&(p_subn->p_osm->log), OSM_LOG_ERROR, in subn_validate_g2m() 951 OSM_LOG(&(p_subn->p_osm->log), OSM_LOG_ERROR, in subn_validate_g2m() [all …]
|
H A D | osm_mesh.c | 213 osm_log_t *p_log = &p_lash->p_osm->log; in poly_alloc() 302 osm_log_t *p_log = &p_lash->p_osm->log; in m_alloc() 357 osm_log_t *p_log = &p_lash->p_osm->log; in pm_alloc() 541 osm_log_t *p_log = &p_lash->p_osm->log; in char_poly() 597 osm_log_t *p_log = &p_lash->p_osm->log; in get_switch_metric() 676 osm_log_t *p_log = &p_lash->p_osm->log; in classify_switch() 711 osm_log_t *p_log = &p_lash->p_osm->log; in classify_mesh_type() 745 osm_log_t *p_log = &p_lash->p_osm->log; in remove_edges() 780 osm_log_t *p_log = &p_lash->p_osm->log; in get_local_geometry() 840 osm_log_t *p_log = &p_lash->p_osm->log; in seed_axes() [all …]
|
H A D | osm_multicast.c | 147 subn->p_osm->sa.dirty = TRUE; in osm_mgrp_new() 187 subn->p_osm->sa.dirty = TRUE; in osm_mgrp_cleanup() 331 osm_sm_reroute_mlid(&subn->p_osm->sm, mgrp->mlid); in osm_mgrp_add_port() 342 subn->p_osm->sa.dirty = TRUE; in osm_mgrp_add_port() 403 osm_sm_reroute_mlid(&subn->p_osm->sm, mgrp->mlid); in osm_mgrp_remove_port() 418 subn->p_osm->sa.dirty = TRUE; in osm_mgrp_remove_port()
|
H A D | osm_node_desc_rcv.c | 74 tmp_desc = remap_node_name(sm->p_subn->p_osm->node_name_map, in nd_rcv_process_nd() 85 osm_perfmgr_update_nodename(&sm->p_subn->p_osm->perfmgr, in nd_rcv_process_nd()
|
H A D | osm_service.c | 128 p_subn->p_osm->sa.dirty = TRUE; in osm_svcr_insert_to_db() 144 p_subn->p_osm->sa.dirty = TRUE; in osm_svcr_remove_from_db()
|
H A D | osm_link_mgr.c | 63 osm_opensm_t *p_osm = sm->p_subn->p_osm; in link_mgr_get_smsl() local 64 struct osm_routing_engine *re = p_osm->routing_engine_used; in link_mgr_get_smsl()
|
/freebsd/contrib/ofed/opensm/include/opensm/ |
H A D | osm_opensm.h | 307 void osm_opensm_construct(IN osm_opensm_t * p_osm); 336 void osm_opensm_construct_finish(IN osm_opensm_t * p_osm); 364 void osm_opensm_destroy(IN osm_opensm_t * p_osm); 393 void osm_opensm_destroy_finish(IN osm_opensm_t * p_osm); 422 ib_api_status_t osm_opensm_init(IN osm_opensm_t * p_osm, 452 ib_api_status_t osm_opensm_init_finish(IN osm_opensm_t * p_osm, 482 static inline void osm_opensm_sweep(IN osm_opensm_t * p_osm) in osm_opensm_sweep() argument 484 osm_sm_sweep(&p_osm->sm); in osm_opensm_sweep() 512 static inline void osm_opensm_set_log_flags(IN osm_opensm_t * p_osm, in osm_opensm_set_log_flags() argument 515 osm_log_set_level(&p_osm->log, log_flags); in osm_opensm_set_log_flags() [all …]
|
H A D | osm_console.h | 48 int osm_console(osm_opensm_t * p_osm);
|
H A D | osm_sa.h | 509 int osm_sa_db_file_dump(struct osm_opensm *p_osm); 531 int osm_sa_db_file_load(struct osm_opensm *p_osm);
|
H A D | osm_ucast_lash.h | 87 osm_opensm_t *p_osm; member
|