/freebsd-10.1-release/contrib/ofed/management/opensm/opensm/ |
H A D | osm_opensm.c | 212 void osm_opensm_construct(IN osm_opensm_t * const p_osm) argument 214 memset(p_osm, 0, sizeof(*p_osm)); 215 p_osm->osm_version = OSM_VERSION; 216 osm_subn_construct(&p_osm->subn); 217 osm_sm_construct(&p_osm->sm); 218 osm_sa_construct(&p_osm->sa); 219 osm_db_construct(&p_osm->db); 220 osm_mad_pool_construct(&p_osm->mad_pool); 221 osm_vl15_construct(&p_osm 254 osm_opensm_destroy(IN osm_opensm_t * const p_osm) argument 339 osm_opensm_init(IN osm_opensm_t * const p_osm, IN const osm_subn_opt_t * const p_opt) argument 458 osm_opensm_bind(IN osm_opensm_t * const p_osm, IN const ib_net64_t guid) argument [all...] |
H A D | osm_ucast_file.c | 56 static uint16_t remap_lid(osm_opensm_t * p_osm, uint16_t lid, ib_net64_t guid) argument 62 p_port = osm_get_port_by_guid(&p_osm->subn, guid); 64 OSM_LOG(&p_osm->log, OSM_LOG_VERBOSE, 78 static void add_path(osm_opensm_t * p_osm, argument 85 new_lid = port_guid ? remap_lid(p_osm, lid, port_guid) : lid; 88 OSM_LOG(&p_osm->log, OSM_LOG_VERBOSE, 96 if (!(p_osm->subn.opt.port_profile_switch_nodes && port_guid && 97 osm_get_switch_by_guid(&p_osm->subn, port_guid))) 100 OSM_LOG(&p_osm->log, OSM_LOG_DEBUG, 107 static void add_lid_hops(osm_opensm_t * p_osm, osm_switch_ argument 128 osm_opensm_t *p_osm = context; local 263 osm_opensm_t *p_osm = context; local [all...] |
H A D | osm_ucast_updn.c | 67 osm_opensm_t *p_osm; member in struct:updn 218 osm_log_t *p_log = &p_updn->p_osm->log; 225 for (item = cl_qmap_head(&p_updn->p_osm->subn.sw_guid_tbl); 226 item != cl_qmap_end(&p_updn->p_osm->subn.sw_guid_tbl); 296 cl_ptr_vector_get(&p_updn->p_osm->subn.port_lid_tbl, 309 osm_subn_t *p_subn = &p_updn->p_osm->subn; 310 osm_log_t *p_log = &p_updn->p_osm->log; 321 for (item = cl_qmap_head(&p_updn->p_osm->subn.sw_guid_tbl); 322 item != cl_qmap_end(&p_updn->p_osm->subn.sw_guid_tbl); 339 for (item = cl_qmap_head(&p_updn->p_osm 418 osm_opensm_t *p_osm = p_updn->p_osm; local [all...] |
H A D | osm_console.c | 60 void (*parse_function) (char **p_last, osm_opensm_t * p_osm, 68 void (*loop_function) (osm_opensm_t * p_osm, FILE * out); 228 static void help_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) argument 251 static void loglevel_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) argument 259 osm_log_get_level(&p_osm->log)); 274 osm_log_set_level(&p_osm->log, level); 280 static void priority_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) argument 288 p_osm->subn.opt.sm_priority); 297 osm_set_sm_priority(&p_osm->sm, (uint8_t)priority); 328 static void print_status(osm_opensm_t * p_osm, FIL argument 411 status_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) argument 431 resweep_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) argument 447 reroute_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) argument 453 logflush_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) argument 458 querylid_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) argument 673 portstatus_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) argument 756 switchbalance_check(osm_opensm_t * p_osm, osm_switch_t * p_sw, FILE * out, int verbose) argument 851 switchbalance_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) argument 898 lidbalance_check(osm_opensm_t * p_osm, osm_switch_t * p_sw, FILE * out) argument 1058 lidbalance_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) argument 1097 dump_conf_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) argument 1103 perfmgr_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) argument 1163 quit_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) argument 1173 version_parse(char **p_last, osm_opensm_t * p_osm, FILE * out) argument 1201 parse_cmd_line(char *line, osm_opensm_t * p_osm) argument 1243 osm_console(osm_opensm_t * p_osm) argument [all...] |
H A D | osm_ucast_ftree.c | 202 osm_opensm_t *p_osm; member in struct:ftree_fabric_t_ 482 if (!osm_log_is_active(&p_ftree->p_osm->log, OSM_LOG_DEBUG)) 497 OSM_LOG(&p_ftree->p_osm->log, OSM_LOG_DEBUG, 625 if (!osm_log_is_active(&p_ftree->p_osm->log, OSM_LOG_DEBUG)) 628 OSM_LOG(&p_ftree->p_osm->log, OSM_LOG_DEBUG, 800 if (!osm_log_is_active(&p_ftree->p_osm->log, OSM_LOG_DEBUG)) 803 OSM_LOG(&p_ftree->p_osm->log, OSM_LOG_DEBUG, 1090 if (!osm_log_is_active(&p_ftree->p_osm->log, OSM_LOG_DEBUG)) 1093 OSM_LOG(&p_ftree->p_osm->log, OSM_LOG_DEBUG, "\n" 1098 OSM_LOG(&p_ftree->p_osm 3655 osm_ucast_ftree_setup(struct osm_routing_engine *r, osm_opensm_t * p_osm) argument [all...] |
H A D | osm_sa.c | 324 cl_atomic_inc(&sa->p_subn->p_osm->stats.sa_mads_sent); 327 cl_atomic_dec(&sa->p_subn->p_osm->stats.sa_mads_sent); 521 osm_opensm_t *p_osm; member in struct:opensm_dump_context 526 opensm_dump_to_file(osm_opensm_t * p_osm, const char *file_name, argument 527 void (*dump_func) (osm_opensm_t * p_osm, FILE * file)) 533 p_osm->subn.opt.dump_files_dir, file_name); 537 OSM_LOG(&p_osm->log, OSM_LOG_ERROR, "ERR 4C01: " 545 dump_func(p_osm, file); 567 osm_opensm_t *p_osm = ((struct opensm_dump_context *)cxt)->p_osm; local 702 sa_dump_all_sa(osm_opensm_t * p_osm, FILE * file) argument 727 osm_sa_db_file_dump(osm_opensm_t * p_osm) argument 735 load_mcgroup(osm_opensm_t * p_osm, ib_net16_t mlid, ib_member_rec_t * p_mcm_rec, unsigned well_known) argument 780 load_svcr(osm_opensm_t * p_osm, ib_service_record_t * sr, uint32_t modified_time, uint32_t lease_period) argument 817 load_infr(osm_opensm_t * p_osm, ib_inform_info_record_t * iir, osm_mad_addr_t * addr) argument 917 osm_sa_db_file_load(osm_opensm_t * p_osm) argument [all...] |
H A D | osm_qos.c | 264 osm_signal_t osm_qos_setup(osm_opensm_t * p_osm) argument 278 if (!p_osm->subn.opt.qos) 281 OSM_LOG_ENTER(&p_osm->log); 283 qos_build_config(&ca_config, &p_osm->subn.opt.qos_ca_options, 284 &p_osm->subn.opt.qos_options); 285 qos_build_config(&sw0_config, &p_osm->subn.opt.qos_sw0_options, 286 &p_osm->subn.opt.qos_options); 287 qos_build_config(&swe_config, &p_osm->subn.opt.qos_swe_options, 288 &p_osm->subn.opt.qos_options); 289 qos_build_config(&rtr_config, &p_osm [all...] |
H A D | osm_pkey_mgr.c | 476 osm_signal_t osm_pkey_mgr_process(IN osm_opensm_t * p_osm) argument 484 CL_ASSERT(p_osm); 486 OSM_LOG_ENTER(&p_osm->log); 488 CL_PLOCK_EXCL_ACQUIRE(&p_osm->lock); 490 if (osm_prtn_make_partitions(&p_osm->log, &p_osm->subn) != IB_SUCCESS) { 491 OSM_LOG(&p_osm->log, OSM_LOG_ERROR, "ERR 0510: " 497 p_tbl = &p_osm->subn.prtn_pkey_tbl; 502 pkey_mgr_process_partition_table(&p_osm->log, &p_osm [all...] |
H A D | main.c | 355 static ib_net64_t get_port_guid(IN osm_opensm_t * p_osm, uint64_t port_guid) argument 369 osm_vendor_get_all_port_attr(p_osm->p_vendor, attr_array, 401 if (p_osm->subn.opt.daemon) 479 int osm_manager_loop(osm_subn_opt_t * p_opt, osm_opensm_t * p_osm) argument 484 if (!osm_console_init(p_opt, &p_osm->console, &p_osm->log)) 493 osm_console(p_osm); 499 osm_log_reopen_file(&(p_osm->log)); 504 p_osm->subn.force_heavy_sweep = TRUE; 505 osm_opensm_sweep(p_osm); [all...] |
H A D | osm_ucast_lash.c | 103 osm_opensm_t *p_osm; member in struct:_lash 124 osm_log_t *p_log = &p_lash->p_osm->log; 729 osm_log_t *p_log = &p_lash->p_osm->log; 783 osm_log_t *p_log = &p_lash->p_osm->log; 863 osm_log_t *p_log = &p_lash->p_osm->log; 1033 osm_log_t *p_log = &p_lash->p_osm->log; 1034 osm_subn_t *p_subn = &p_lash->p_osm->subn; 1035 osm_opensm_t *p_osm = p_lash->p_osm; local 1101 osm_ucast_mgr_set_fwd_table(&p_osm 1292 lash_create(osm_opensm_t * p_osm) argument 1319 osm_get_lash_sl(osm_opensm_t * p_osm, osm_port_t * p_src_port, osm_port_t * p_dst_port) argument 1345 osm_ucast_lash_setup(struct osm_routing_engine *r, osm_opensm_t *p_osm) argument [all...] |
H A D | osm_dump.c | 127 osm_opensm_t *p_osm = cxt; local 137 dor = (p_osm->routing_engine_used == OSM_ROUTING_ENGINE_TYPE_DOR); 142 p_port = cl_ptr_vector_get(&p_osm->subn.port_lid_tbl, lid_ho); 298 osm_opensm_t *p_osm = cxt; local 315 p_port = cl_ptr_vector_get(&p_osm->subn.port_lid_tbl, lid); 326 osm_opensm_t *p_osm = cxt; local 346 p_port = cl_ptr_vector_get(&p_osm->subn.port_lid_tbl, lid); 546 osm_opensm_t *p_osm; member in struct:dump_context 571 void osm_dump_qmap_to_file(osm_opensm_t * p_osm, const char *file_name, argument 580 p_osm [all...] |
H A D | osm_state_mgr.c | 67 extern osm_signal_t osm_qos_setup(IN osm_opensm_t * p_osm); 68 extern osm_signal_t osm_pkey_mgr_process(IN osm_opensm_t * p_osm); 780 p_smi->act_count = cl_hton32(sm->p_subn->p_osm->stats.qp0_mads_sent); 1077 if (wait_for_pending_transactions(&sm->p_subn->p_osm->stats)) 1116 if (wait_for_pending_transactions(&sm->p_subn->p_osm->stats)) 1144 wait_for_pending_transactions(&sm->p_subn->p_osm->stats)) 1161 wait_for_pending_transactions(&sm->p_subn->p_osm->stats)) 1229 osm_pkey_mgr_process(sm->p_subn->p_osm); 1231 osm_qos_setup(sm->p_subn->p_osm); 1236 osm_sa_db_file_load(sm->p_subn->p_osm); [all...] |
H A D | osm_node_desc_rcv.c | 75 tmp_desc = remap_node_name(sm->p_subn->p_osm->node_name_map,
|
H A D | osm_ucast_mgr.c | 657 OSM_LOG(&p_subn->p_osm->log, OSM_LOG_ERROR, "ERR 3A0B: " 821 osm_opensm_t *p_osm; local 828 p_osm = p_mgr->p_subn->p_osm; 829 p_routing_eng = p_osm->routing_engine_list; 840 p_osm->routing_engine_used = OSM_ROUTING_ENGINE_TYPE_NONE; 842 if (!ucast_mgr_route(p_routing_eng, p_osm)) 847 if (p_osm->routing_engine_used == OSM_ROUTING_ENGINE_TYPE_NONE) { 851 p_osm->routing_engine_used = OSM_ROUTING_ENGINE_TYPE_MINHOP; 856 osm_routing_engine_type_str(p_osm [all...] |
H A D | osm_sa_path_record.c | 72 extern uint8_t osm_get_lash_sl(osm_opensm_t * p_osm, 182 osm_opensm_t *p_osm; local 209 p_osm = sa->p_subn->p_osm; 664 is_lash = (p_osm->routing_engine_used == OSM_ROUTING_ENGINE_TYPE_LASH); 683 && osm_get_lash_sl(p_osm, p_src_port, p_dest_port) != sl) { 697 sl = osm_get_lash_sl(p_osm, p_src_port, p_dest_port);
|
H A D | osm_subnet.c | 174 IN osm_opensm_t * const p_osm, 179 p_subn->p_osm = p_osm; 715 OSM_LOG(&p_subn->p_osm->log, OSM_LOG_ERROR, "out of memory"); 728 osm_log_t *log = &p_subn->p_osm->log; 1308 OSM_LOG(&p_subn->p_osm->log, OSM_LOG_ERROR, 173 osm_subn_init(IN osm_subn_t * const p_subn, IN osm_opensm_t * const p_osm, IN const osm_subn_opt_t * const p_opt) argument
|
H A D | osm_sminfo_rcv.c | 102 p_smi->act_count = cl_hton32(sm->p_subn->p_osm->stats.qp0_mads_sent); 196 p_smi->act_count = cl_hton32(sm->p_subn->p_osm->stats.qp0_mads_sent);
|
H A D | osm_qos_policy.c | 599 osm_log_t * p_log = &p_qos_policy->p_subn->p_osm->log; 808 OSM_LOG(&p_qos_policy->p_subn->p_osm->log, OSM_LOG_ERROR, 824 OSM_LOG(&p_qos_policy->p_subn->p_osm->log, OSM_LOG_ERROR, 837 OSM_LOG(&p_qos_policy->p_subn->p_osm->log, OSM_LOG_DEBUG,
|
H A D | osm_sa_sminfo_record.c | 297 cl_ntoh32(sa->p_subn->p_osm->stats.qp0_mads_sent),
|
H A D | osm_prtn.c | 194 osm_sa_t *p_sa = &p_subn->p_osm->sa;
|
/freebsd-10.1-release/contrib/ofed/management/opensm/include/opensm/ |
H A D | osm_console.h | 48 // TODO replace p_osm 49 void osm_console(osm_opensm_t * p_osm);
|
H A D | osm_pkey_mgr.h | 65 osm_signal_t osm_pkey_mgr_process(IN osm_opensm_t * p_osm); 68 * p_osm
|
H A D | osm_opensm.h | 249 void osm_opensm_construct(IN osm_opensm_t * const p_osm); 252 * p_osm 278 void osm_opensm_destroy(IN osm_opensm_t * const p_osm); 281 * p_osm 307 osm_opensm_init(IN osm_opensm_t * const p_osm, 311 * p_osm 336 static inline void osm_opensm_sweep(IN osm_opensm_t * const p_osm) argument 338 osm_sm_sweep(&p_osm->sm); 343 * p_osm 367 osm_opensm_set_log_flags(IN osm_opensm_t * const p_osm, argument 427 osm_opensm_wait_for_subnet_up(IN osm_opensm_t * const p_osm, IN uint32_t const wait_us, IN boolean_t const interruptible) argument [all...] |
H A D | osm_sa.h | 431 int osm_sa_db_file_dump(struct osm_opensm *p_osm); 434 * p_osm 451 int osm_sa_db_file_load(struct osm_opensm *p_osm); 454 * p_osm
|
H A D | osm_subnet.h | 473 struct osm_opensm *p_osm; member in struct:osm_subn 699 IN struct osm_opensm *const p_osm,
|