/freebsd/contrib/ofed/opensm/opensm/ |
H A D | osm_state_mgr.c | 89 osm_log_v2(sm->p_log, sm->p_subn->first_time_master_sweep ? in state_mgr_up_msg() 93 sm->p_subn->opt.sweep_interval ? in state_mgr_up_msg() 234 cl_qmap_apply_func(&sm->p_subn->node_guid_tbl, in state_mgr_sweep_hop_0() 237 cl_qmap_apply_func(&sm->p_subn->port_guid_tbl, in state_mgr_sweep_hop_0() 240 cl_qmap_apply_func(&sm->p_subn->sw_guid_tbl, in state_mgr_sweep_hop_0() 249 sm->p_subn->in_sweep_hop_0 = TRUE; in state_mgr_sweep_hop_0() 278 cl_ptr_vector_t *p_vec = &(sm->p_subn->port_lid_tbl); in state_mgr_clean_known_lids() 305 osm_subn_t * p_subn; in state_mgr_sa_clean() local 312 p_subn = sm->p_subn; in state_mgr_sa_clean() 317 if (p_subn->opt.drop_event_subscriptions) { in state_mgr_sa_clean() [all …]
|
H A D | osm_prtn.c | 63 extern int osm_prtn_config_parse_file(osm_log_t * p_log, osm_subn_t * p_subn, 92 void osm_prtn_delete(IN osm_subn_t * p_subn, IN OUT osm_prtn_t ** pp_prtn) in osm_prtn_delete() argument 109 OSM_LOG(&p_subn->p_osm->log, OSM_LOG_DEBUG, in osm_prtn_delete() 115 osm_mgrp_cleanup(p_subn, p->mgrps[i]); in osm_prtn_delete() 125 ib_api_status_t osm_prtn_add_port(osm_log_t * p_log, osm_subn_t * p_subn, in osm_prtn_add_port() argument 134 p_port = osm_get_port_by_guid(p_subn, guid); in osm_prtn_add_port() 161 if (p_subn->opt.allow_both_pkeys) { in osm_prtn_add_port() 183 ib_api_status_t osm_prtn_add_all(osm_log_t * p_log, osm_subn_t * p_subn, in osm_prtn_add_all() argument 187 cl_qmap_t *p_port_tbl = &p_subn->port_guid_tbl; in osm_prtn_add_all() 197 status = osm_prtn_add_port(p_log, p_subn, p, in osm_prtn_add_all() [all …]
|
H A D | osm_subnet.c | 91 void (*parse_fn)(osm_subn_t *p_subn, char *p_key, char *p_val_str, 94 void (*setup_fn)(osm_subn_t *p_subn, void *p_val); 239 static void opts_setup_log_flags(osm_subn_t *p_subn, void *p_val) in opts_setup_log_flags() argument 241 p_subn->p_osm->log.level = *((uint8_t *) p_val); in opts_setup_log_flags() 244 static void opts_setup_force_log_flush(osm_subn_t *p_subn, void *p_val) in opts_setup_force_log_flush() argument 246 p_subn->p_osm->log.flush = *((boolean_t *) p_val); in opts_setup_force_log_flush() 249 static void opts_setup_accum_log_file(osm_subn_t *p_subn, void *p_val) in opts_setup_accum_log_file() argument 251 p_subn->p_osm->log.accum_log_file = *((boolean_t *) p_val); in opts_setup_accum_log_file() 254 static void opts_setup_log_max_size(osm_subn_t *p_subn, void *p_val) in opts_setup_log_max_size() argument 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() [all …]
|
H A D | osm_sm_state_mgr.c | 70 const char *state_str = osm_get_sm_mgr_state_str(sm->p_subn->sm_state); in osm_report_sm_state() 108 if (guid == sm->p_subn->sm_port_guid) { in sm_state_mgr_send_master_sm_info_req() 114 p_port = osm_get_port_by_guid(sm->p_subn, guid); in sm_state_mgr_send_master_sm_info_req() 161 timeout = sm->p_subn->opt.sminfo_polling_timeout; in sm_state_mgr_start_polling() 162 sm_state_mgr_send_master_sm_info_req(sm, sm->p_subn->sm_state); in sm_state_mgr_start_polling() 188 sm_state = sm->p_subn->sm_state; in osm_sm_state_mgr_polling_callback() 192 timeout = sm->p_subn->opt.sminfo_polling_timeout; in osm_sm_state_mgr_polling_callback() 227 sm->p_subn->sm_state, osm_get_sm_mgr_state_str(sm->p_subn->sm_state), in osm_sm_state_mgr_polling_callback() 230 if (sm->retry_number > sm->p_subn->opt.polling_retry_number) { in osm_sm_state_mgr_polling_callback() 262 osm_get_sm_mgr_state_str(sm->p_subn->sm_state)); in sm_state_mgr_signal_error() [all …]
|
H A D | osm_ucast_mgr.c | 92 p_mgr->p_subn = sm->p_subn; in osm_ucast_mgr_init() 95 if (sm->p_subn->opt.use_ucast_cache) in osm_ucast_mgr_init() 153 for (item = cl_qmap_head(&p_mgr->p_subn->sw_guid_tbl); in ucast_mgr_process_neighbor() 154 item != cl_qmap_end(&p_mgr->p_subn->sw_guid_tbl); in ucast_mgr_process_neighbor() 259 p_mgr->p_subn->ignore_existing_lfts, in ucast_mgr_process_port() 260 p_mgr->p_subn->opt.lmc, in ucast_mgr_process_port() 262 p_mgr->p_subn->opt.port_shifting, in ucast_mgr_process_port() 292 if (!p_mgr->p_subn->opt.port_profile_switch_nodes) in ucast_mgr_process_port() 319 cl_qmap_t *port_tbl = &mgr->p_subn->port_guid_tbl; in alloc_ports_priv() 344 cl_qmap_t *port_tbl = &mgr->p_subn->port_guid_tbl; in free_ports_priv() [all …]
|
H A D | osm_link_mgr.c | 63 osm_opensm_t *p_osm = sm->p_subn->p_osm; in link_mgr_get_smsl() 78 return sm->p_subn->opt.sm_sl; in link_mgr_get_smsl() 81 smlid = sm->p_subn->sm_base_lid; in link_mgr_get_smsl() 84 sl = re->path_sl(re->context, sm->p_subn->opt.sm_sl, in link_mgr_get_smsl() 126 p_port = osm_get_port_by_guid(sm->p_subn, in link_mgr_set_physp_pi() 134 p_pi->master_sm_base_lid = sm->p_subn->sm_base_lid; in link_mgr_set_physp_pi() 227 p_pi->m_key = sm->p_subn->opt.m_key; in link_mgr_set_physp_pi() 234 p_pi->subnet_prefix = sm->p_subn->opt.subnet_prefix; in link_mgr_set_physp_pi() 255 sm->p_subn->opt.m_key_lease_period; in link_mgr_set_physp_pi() 262 ib_port_info_set_mpb(p_pi, sm->p_subn->opt.m_key_protect_bits); in link_mgr_set_physp_pi() [all …]
|
H A D | osm_lid_mgr.c | 140 uint8_t lmc_num_lids = (uint8_t) (1 << p_mgr->p_subn->opt.lmc); in lid_mgr_validate_db() 166 || max_lid > p_mgr->p_subn->max_ucast_lid_ho) { in lid_mgr_validate_db() 230 p_mgr->p_subn = sm->p_subn; in osm_lid_mgr_init() 246 if (!p_mgr->p_subn->opt.reassign_lids) { in osm_lid_mgr_init() 254 if (p_mgr->p_subn->opt.exit_on_fatal) { in osm_lid_mgr_init() 292 cl_ptr_vector_t *p_discovered_vec = &p_mgr->p_subn->port_lid_tbl; in lid_mgr_init_sweep() 301 uint8_t lmc_num_lids = (uint8_t) (1 << p_mgr->p_subn->opt.lmc); in lid_mgr_init_sweep() 306 lmc_mask = ~((1 << p_mgr->p_subn->opt.lmc) - 1); in lid_mgr_init_sweep() 314 if (p_mgr->p_subn->first_time_master_sweep == TRUE && in lid_mgr_init_sweep() 315 p_mgr->p_subn->opt.reassign_lids == TRUE) { in lid_mgr_init_sweep() [all …]
|
H A D | osm_drop_mgr.c | 74 p_rtr_guid_tbl = &sm->p_subn->rtr_guid_tbl; in drop_mgr_remove_router() 91 p_remote_port = osm_get_port_by_guid(sm->p_subn, in drop_mgr_clean_physp() 111 sm->p_subn->force_heavy_sweep = TRUE; in drop_mgr_clean_physp() 119 p_remote_physp->port_guid != sm->p_subn->sm_port_guid) { in drop_mgr_clean_physp() 186 (osm_port_t *) cl_qmap_get(&sm->p_subn->port_guid_tbl, port_guid); in drop_mgr_remove_port() 201 notice.issuer_lid = sm->p_subn->sm_base_lid; in drop_mgr_remove_port() 204 port_gid.unicast.prefix = sm->p_subn->opt.subnet_prefix; in drop_mgr_remove_port() 211 notice.issuer_gid.unicast.prefix = sm->p_subn->opt.subnet_prefix; in drop_mgr_remove_port() 212 notice.issuer_gid.unicast.interface_id = sm->p_subn->sm_port_guid; in drop_mgr_remove_port() 214 status = osm_report_notice(sm->p_log, sm->p_subn, ¬ice); in drop_mgr_remove_port() [all …]
|
H A D | osm_inform.c | 84 static void dump_all_informs(IN const osm_subn_t * p_subn, IN osm_log_t * p_log) in dump_all_informs() argument 91 p_list_item = cl_qlist_head(&p_subn->sa_infr_list); in dump_all_informs() 92 while (p_list_item != cl_qlist_end(&p_subn->sa_infr_list)) { in dump_all_informs() 193 osm_infr_t *osm_infr_get_by_rec(IN osm_subn_t const *p_subn, in osm_infr_get_by_rec() argument 201 dump_all_informs(p_subn, p_log); in osm_infr_get_by_rec() 207 cl_qlist_count(&p_subn->sa_infr_list)); in osm_infr_get_by_rec() 209 p_list_item = cl_qlist_find_from_head(&p_subn->sa_infr_list, in osm_infr_get_by_rec() 212 if (p_list_item == cl_qlist_end(&p_subn->sa_infr_list)) in osm_infr_get_by_rec() 219 void osm_infr_insert_to_db(IN osm_subn_t * p_subn, IN osm_log_t * p_log, in osm_infr_insert_to_db() argument 227 cl_qlist_count(&p_subn->sa_infr_list)); in osm_infr_insert_to_db() [all …]
|
H A D | osm_sa_sminfo_record.c | 146 p_port = osm_get_port_by_guid(sa->p_subn, p_rem_sm->smi.guid); in sa_smir_by_comp_mask() 214 p_req_physp = osm_get_physp_by_mad_addr(sa->p_log, sa->p_subn, in osm_smir_rcv_process() 246 p_port = osm_get_port_by_lid(sa->p_subn, p_rcvd_rec->lid); in osm_smir_rcv_process() 257 local_port = osm_get_port_by_guid(sa->p_subn, in osm_smir_rcv_process() 258 sa->p_subn->sm_port_guid); in osm_smir_rcv_process() 263 cl_ntoh64(sa->p_subn->sm_port_guid)); in osm_smir_rcv_process() 271 sa->p_subn->opt.allow_both_pkeys)) { in osm_smir_rcv_process() 280 sa->p_subn->sm_port_guid != p_smi->guid) in osm_smir_rcv_process() 283 sa->p_subn->opt.sm_priority != in osm_smir_rcv_process() 287 sa->p_subn->sm_state != ib_sminfo_get_state(p_smi)) in osm_smir_rcv_process() [all …]
|
H A D | osm_service.c | 102 osm_svcr_t *osm_svcr_get_by_rid(IN osm_subn_t const *p_subn, in osm_svcr_get_by_rid() argument 110 p_list_item = cl_qlist_find_from_head(&p_subn->sa_sr_list, in osm_svcr_get_by_rid() 112 if (p_list_item == cl_qlist_end(&p_subn->sa_sr_list)) in osm_svcr_get_by_rid() 119 void osm_svcr_insert_to_db(IN osm_subn_t * p_subn, IN osm_log_t * p_log, in osm_svcr_insert_to_db() argument 127 cl_qlist_insert_head(&p_subn->sa_sr_list, &p_svcr->list_item); in osm_svcr_insert_to_db() 128 p_subn->p_osm->sa.dirty = TRUE; in osm_svcr_insert_to_db() 133 void osm_svcr_remove_from_db(IN osm_subn_t * p_subn, IN osm_log_t * p_log, in osm_svcr_remove_from_db() argument 143 cl_qlist_remove_item(&p_subn->sa_sr_list, &p_svcr->list_item); in osm_svcr_remove_from_db() 144 p_subn->p_osm->sa.dirty = TRUE; in osm_svcr_remove_from_db()
|
H A D | osm_sminfo_rcv.c | 75 sm->p_subn->opt.sm_priority, in smi_rcv_remote_sm_is_higher() 76 sm->p_subn->sm_port_guid); in smi_rcv_remote_sm_is_higher() 97 p_smi->guid = sm->p_subn->sm_port_guid; in smi_rcv_process_get_request() 98 p_smi->act_count = cl_hton32(sm->p_subn->p_osm->stats.qp0_mads_sent); in smi_rcv_process_get_request() 99 p_smi->pri_state = (uint8_t) (sm->p_subn->sm_state | in smi_rcv_process_get_request() 100 sm->p_subn->opt.sm_priority << 4); in smi_rcv_process_get_request() 101 p_smi->sm_key = fill_sm_key ? sm->p_subn->opt.sm_key : 0; in smi_rcv_process_get_request() 172 p_smi->guid = sm->p_subn->sm_port_guid; in smi_rcv_process_set_request() 173 p_smi->act_count = cl_hton32(sm->p_subn->p_osm->stats.qp0_mads_sent); in smi_rcv_process_set_request() 174 p_smi->pri_state = (uint8_t) (sm->p_subn->sm_state | in smi_rcv_process_set_request() [all …]
|
H A D | osm_sa_path_record.c | 189 p_osm = sa->p_subn->p_osm; in pr_rcv_get_path_parms() 202 if (sa->p_subn->opt.enable_quirks && in pr_rcv_get_path_parms() 241 if (sa->p_subn->opt.qos) { in pr_rcv_get_path_parms() 383 if (sa->p_subn->opt.qos) { in pr_rcv_get_path_parms() 445 if (sa->p_subn->opt.qos && in pr_rcv_get_path_parms() 446 sa->p_subn->p_qos_policy && in pr_rcv_get_path_parms() 448 osm_qos_policy_get_qos_level_by_pr(sa->p_subn->p_qos_policy, in pr_rcv_get_path_parms() 484 pkt_life = sa->p_subn->opt.subnet_timeout; in pr_rcv_get_path_parms() 624 sa->p_subn->opt.allow_both_pkeys); in pr_rcv_get_path_parms() 636 sa->p_subn->opt.allow_both_pkeys)) { in pr_rcv_get_path_parms() [all …]
|
H A D | osm_port_info_rcv.c | 103 if (mtu < sm->p_subn->min_ca_mtu) { in pi_rcv_process_endport() 107 sm->p_subn->min_ca_mtu = mtu; in pi_rcv_process_endport() 112 if (ib_path_compare_rates(rate, sm->p_subn->min_ca_rate) < 0) { in pi_rcv_process_endport() 116 sm->p_subn->min_ca_rate = rate; in pi_rcv_process_endport() 120 if (data_vls > 1U << (sm->p_subn->opt.max_op_vls - 1)) in pi_rcv_process_endport() 121 data_vls = 1U << (sm->p_subn->opt.max_op_vls - 1); in pi_rcv_process_endport() 124 if ((uint8_t)data_vls < sm->p_subn->min_data_vls) { in pi_rcv_process_endport() 128 sm->p_subn->min_data_vls = data_vls; in pi_rcv_process_endport() 140 if (port_guid != sm->p_subn->sm_port_guid) { in pi_rcv_process_endport() 141 p_sm_tbl = &sm->p_subn->sm_guid_tbl; in pi_rcv_process_endport() [all …]
|
H A D | osm_sm.c | 88 osm_perfmgr_process(&sm->p_subn->p_osm->perfmgr); in sm_process() 142 if (sm->p_subn->sm_state == IB_SMINFO_STATE_MASTER || in sm_sweep() 143 sm->p_subn->sm_state == IB_SMINFO_STATE_DISCOVERING) in sm_sweep() 145 cl_timer_start(&sm->sweep_timer, sm->p_subn->opt.sweep_interval * 1000); in sm_sweep() 153 sm->p_subn->force_heavy_sweep = TRUE; in sweep_fail_process() 240 ib_api_status_t osm_sm_init(IN osm_sm_t * p_sm, IN osm_subn_t * p_subn, in osm_sm_init() argument 251 p_sm->p_subn = p_subn; in osm_sm_init() 294 status = osm_sm_mad_ctrl_init(&p_sm->mad_ctrl, p_sm->p_subn, in osm_sm_init() 386 p_subn->sm_state = p_subn->opt.sm_inactive ? in osm_sm_init() 400 if (p_sm->p_subn->opt.sweep_interval) in osm_sm_init() [all …]
|
H A D | osm_req.c | 79 p_sm_port = osm_get_port_by_guid(sm->p_subn, sm->p_subn->sm_port_guid); in req_determine_mkey() 83 dest_port_guid = sm->p_subn->sm_port_guid; in req_determine_mkey() 122 if (!osm_db_neighbor_get(sm->p_subn->p_neighbor, in req_determine_mkey() 131 if (!osm_db_guid2mkey_get(sm->p_subn->p_g2m, in req_determine_mkey() 140 m_key = sm->p_subn->opt.m_key; in req_determine_mkey() 145 m_key = sm->p_subn->opt.m_key; in req_determine_mkey() 195 if (sm->p_subn->opt.m_key_lookup == TRUE) { in osm_req_get() 201 m_key_calc = sm->p_subn->opt.m_key; in osm_req_get() 278 if (sm->p_subn->opt.m_key_lookup == TRUE) { in osm_prepare_req_set() 284 m_key_calc = sm->p_subn->opt.m_key; in osm_prepare_req_set() [all …]
|
H A D | osm_sw_info_rcv.c | 211 p_sw_guid_tbl = &sm->p_subn->sw_guid_tbl; in si_rcv_process_new() 227 sm->p_subn->max_mcast_lid_ho) { in si_rcv_process_new() 228 sm->p_subn->max_mcast_lid_ho = cl_ntoh16(p_si->mcast_cap) + in si_rcv_process_new() 232 sm->p_subn->max_mcast_lid_ho); in si_rcv_process_new() 236 if (cl_ntoh16(p_si->lin_cap) < sm->p_subn->max_ucast_lid_ho) { in si_rcv_process_new() 237 sm->p_subn->max_ucast_lid_ho = cl_ntoh16(p_si->lin_cap); in si_rcv_process_new() 240 sm->p_subn->max_ucast_lid_ho); in si_rcv_process_new() 271 if (!sm->p_subn->opt.disable_multicast) in si_rcv_process_new() 322 if (sm->p_subn->first_time_master_sweep == FALSE && in si_rcv_process_existing() 328 osm_opensm_report_event(sm->p_subn->p_osm, in si_rcv_process_existing() [all …]
|
H A D | osm_sa_mcmember_record.c | 159 osm_subn_t *p_subn = sa->p_subn; in get_new_mlid() local 164 && cl_ntoh16(requested_mlid) <= p_subn->max_mcast_lid_ho in get_new_mlid() 165 && !osm_get_mbox_by_mlid(p_subn, requested_mlid)) in get_new_mlid() 168 if (sa->p_subn->opt.consolidate_ipv6_snm_req in get_new_mlid() 170 && (requested_mlid = find_ipv6_snm_mlid(sa->p_subn, &mcmr->mgid))) { in get_new_mlid() 178 max = p_subn->max_mcast_lid_ho - IB_LID_MCAST_START_HO + 1; in get_new_mlid() 180 if (!sa->p_subn->mboxes[i]) in get_new_mlid() 408 res = osm_get_gid_by_mad_addr(sa->p_log, sa->p_subn, p_mad_addr, in validate_modify() 439 sa->p_subn, in validate_modify() 687 mtu = port_mtu ? port_mtu : sa->p_subn->min_ca_mtu; in mgrp_request_is_realizable() [all …]
|
H A D | osm_prtn_config.c | 91 osm_subn_t *p_subn; member 99 extern osm_prtn_t *osm_prtn_make_new(osm_log_t * p_log, osm_subn_t * p_subn, 101 extern ib_api_status_t osm_prtn_add_all(osm_log_t * p_log, osm_subn_t * p_subn, 105 osm_subn_t * p_subn, osm_prtn_t * p, 109 ib_api_status_t osm_prtn_add_mcgroup(osm_log_t * p_log, osm_subn_t * p_subn, 190 osm_prtn_add_mcgroup(conf->p_log, conf->p_subn, conf->p_prtn, in __create_mgrp() 204 osm_prtn_add_mcgroup(conf->p_log, conf->p_subn, conf->p_prtn, in __create_mgrp() 236 conf->p_prtn = osm_prtn_make_new(conf->p_log, conf->p_subn, in partition_create() 241 if (!conf->p_subn->opt.qos && conf->flags.sl != OSM_DEFAULT_SL) { in partition_create() 400 if (!conf->p_subn->opt.allow_both_pkeys || membership == BOTH) in manage_membership_change() [all …]
|
H A D | osm_node_info_rcv.c | 162 p_neighbor_node = osm_get_node_by_guid(sm->p_subn, in ni_rcv_set_links() 200 sm->p_subn->force_heavy_sweep = TRUE; in ni_rcv_set_links() 205 sm->p_subn->force_heavy_sweep == FALSE && in ni_rcv_set_links() 236 sm->p_subn->force_heavy_sweep = TRUE; in ni_rcv_set_links() 253 port_num != 0 && cl_qmap_count(&sm->p_subn->sw_guid_tbl) == 0) { in ni_rcv_set_links() 270 if (sm->p_subn->opt.exit_on_fatal == TRUE) { in ni_rcv_set_links() 299 osm_db_neighbor_set(sm->p_subn->p_neighbor, in ni_rcv_set_links() 304 osm_db_neighbor_set(sm->p_subn->p_neighbor, in ni_rcv_set_links() 328 if (sm->p_subn->opt.fdr10) in ni_rcv_get_port_info() 449 sm->p_subn->sm_port_guid = p_node->node_info.port_guid; in ni_rcv_process_new_ca_or_router() [all …]
|
H A D | osm_sa_informinfo.c | 101 p_requester_physp = osm_get_physp_by_mad_addr(sa->p_log, sa->p_subn, in validate_ports_access_rights() 110 p_port = osm_get_port_by_guid(sa->p_subn, portguid); in validate_ports_access_rights() 123 sa->p_subn->opt.allow_both_pkeys)) { in validate_ports_access_rights() 144 lids_size = cl_ptr_vector_get_size(&sa->p_subn->port_lid_tbl); in validate_ports_access_rights() 165 p_port = osm_get_port_by_lid_ho(sa->p_subn, lid); in validate_ports_access_rights() 173 sa->p_subn->opt.allow_both_pkeys)) { in validate_ports_access_rights() 269 p_subscriber_port = osm_get_port_by_guid(sa->p_subn, portguid); in sa_inform_info_rec_by_comp_mask() 282 sa->p_subn->opt.allow_both_pkeys)) { in sa_inform_info_rec_by_comp_mask() 345 p_req_physp = osm_get_physp_by_mad_addr(sa->p_log, sa->p_subn, in infr_rcv_process_get_method() 382 cl_qlist_apply_func(&sa->p_subn->sa_infr_list, in infr_rcv_process_get_method() [all …]
|
H A D | osm_sa_mad_ctrl.c | 130 if (num_messages > 1 && p_ctrl->p_subn->opt.max_msg_fifo_timeout && in sa_mad_ctrl_process() 132 p_ctrl->p_subn->opt.max_msg_fifo_timeout) { in sa_mad_ctrl_process() 319 if (p_ctrl->p_subn->sm_state != IB_SMINFO_STATE_MASTER) { in sa_mad_ctrl_rcv_callback() 326 if (p_ctrl->p_subn->first_time_master_sweep == TRUE) { in sa_mad_ctrl_rcv_callback() 345 p_sa_mad->sm_key != p_ctrl->p_subn->opt.sa_key) { in sa_mad_ctrl_rcv_callback() 350 cl_ntoh64(p_ctrl->p_subn->opt.sa_key), in sa_mad_ctrl_rcv_callback() 510 IN osm_subn_t * p_subn, in osm_sa_mad_ctrl_init() argument 529 p_ctrl->p_subn = p_subn; in osm_sa_mad_ctrl_init() 582 bind_info.timeout = p_ctrl->sa->p_subn->opt.transaction_timeout; in osm_sa_mad_ctrl_bind() 583 bind_info.retries = p_ctrl->sa->p_subn->opt.transaction_retries; in osm_sa_mad_ctrl_bind()
|
H A D | osm_port.c | 239 IN const osm_subn_t * p_subn, in osm_physp_calc_link_op_vls() argument 290 if (op_vls > p_subn->opt.max_op_vls) in osm_physp_calc_link_op_vls() 291 op_vls = p_subn->opt.max_op_vls; in osm_physp_calc_link_op_vls() 319 IN osm_subn_t const *p_subn, in physp_get_dr_physp_set() argument 332 p_port = osm_get_port_by_guid(p_subn, p_subn->sm_port_guid); in physp_get_dr_physp_set() 436 *p_subn, IN osm_physp_t const in osm_physp_replace_dr_path_with_alternate_dr_path() 465 physp_get_dr_physp_set(p_log, p_subn, p_dr_path, &physp_map); in osm_physp_replace_dr_path_with_alternate_dr_path() 474 port_guid = p_subn->sm_port_guid; in osm_physp_replace_dr_path_with_alternate_dr_path() 478 p_port = osm_get_port_by_guid(p_subn, port_guid); in osm_physp_replace_dr_path_with_alternate_dr_path() 604 void osm_physp_set_pkey_tbl(IN osm_log_t * p_log, IN const osm_subn_t * p_subn, in osm_physp_set_pkey_tbl() argument [all …]
|
/freebsd/contrib/ofed/opensm/include/opensm/ |
H A D | osm_subnet.h | 977 void osm_subn_construct(IN osm_subn_t * p_subn); 1006 void osm_subn_destroy(IN osm_subn_t * p_subn); 1034 ib_api_status_t osm_subn_init(IN osm_subn_t * p_subn, 1078 IN const osm_subn_t * p_subn, 1116 IN const osm_subn_t * p_subn, 1151 IN const osm_subn_t * p_subn, 1183 struct osm_switch *osm_get_switch_by_guid(IN const osm_subn_t * p_subn, 1212 struct osm_node *osm_get_node_by_guid(IN osm_subn_t const *p_subn, 1241 struct osm_port *osm_get_port_by_guid(IN osm_subn_t const *p_subn, 1296 struct osm_alias_guid *osm_get_alias_guid_by_guid(IN osm_subn_t const *p_subn, [all …]
|
H A D | osm_inform.h | 178 osm_infr_t *osm_infr_get_by_rec(IN osm_subn_t const *p_subn, 198 void osm_infr_insert_to_db(IN osm_subn_t * p_subn, IN osm_log_t * p_log, 201 void osm_infr_remove_from_db(IN osm_subn_t * p_subn, IN osm_log_t * p_log, 214 osm_infr_remove_subscriptions(IN osm_subn_t * p_subn, IN osm_log_t * p_log, 247 ib_api_status_t osm_report_notice(IN osm_log_t * p_log, IN osm_subn_t * p_subn,
|