Home
last modified time | relevance | path

Searched refs:p_subn (Results 1 – 25 of 78) sorted by relevance

1234

/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_state_mgr.c93 sm->p_subn->opt.sweep_interval ? in state_mgr_up_msg()
249 sm->p_subn->in_sweep_hop_0 = TRUE; in state_mgr_sweep_hop_0()
305 osm_subn_t * p_subn; in state_mgr_sa_clean() local
312 p_subn = sm->p_subn; in state_mgr_sa_clean()
387 p_subn->p_osm->sa.dirty = TRUE; in state_mgr_sa_clean()
1069 sm->p_subn->sm_port_guid; in state_mgr_report_new_ports()
1308 sm->p_subn->need_update = 1; in do_sweep()
1350 (sm->p_subn->force_reroute || sm->p_subn->coming_out_of_standby)) in do_sweep()
1421 sm->p_subn->need_update = 1; in do_sweep()
1676 sm->p_subn->need_update = 0; in do_sweep()
[all …]
H A Dosm_prtn.c115 osm_mgrp_cleanup(p_subn, p->mgrps[i]); in osm_prtn_delete()
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()
211 osm_subn_t *p_subn, const ib_gid_t *mgid, in track_mgrp_w_partition() argument
237 osm_mgrp_cleanup(p_subn, mgrp); in track_mgrp_w_partition()
255 osm_sa_t *p_sa = &p_subn->p_osm->sa; in osm_prtn_add_mcgroup()
298 cl_qmap_t *m = &p_subn->prtn_pkey_tbl; in generate_pkey()
333 if (!(pkey = generate_pkey(p_subn))) in osm_prtn_make_new()
351 osm_prtn_delete(p_subn, &p); in osm_prtn_make_new()
373 osm_prtn_add_port(p_log, p_subn, p, p_subn->sm_port_guid, TRUE, FALSE); in prtn_make_default()
[all …]
H A Dosm_subnet.c334 pfn(p_subn, &val); in opts_parse_net64()
352 pfn(p_subn, &val); in opts_parse_uint32()
370 pfn(p_subn, &val); in opts_parse_net32()
385 pfn(p_subn, &val); in opts_parse_int32()
404 pfn(p_subn, &val); in opts_parse_uint16()
423 pfn(p_subn, &val); in opts_parse_net16()
442 pfn(p_subn, &val); in opts_parse_uint8()
465 pfn(p_subn, &val); in opts_parse_boolean()
483 pfn(p_subn, new); in opts_parse_charp()
555 pfn(p_subn, val); in opts_parse_256bit()
[all …]
H A Dosm_sm_state_mgr.c108 if (guid == sm->p_subn->sm_port_guid) { in sm_state_mgr_send_master_sm_info_req()
188 sm_state = sm->p_subn->sm_state; 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()
292 switch (sm->p_subn->sm_state) { in osm_sm_state_mgr_process()
308 sm->p_subn->master_sm_base_lid = in osm_sm_state_mgr_process()
309 sm->p_subn->sm_base_lid; in osm_sm_state_mgr_process()
324 sm->p_subn->ignore_existing_lfts = FALSE; in osm_sm_state_mgr_process()
358 sm->p_subn->coming_out_of_standby = TRUE; in osm_sm_state_mgr_process()
382 sm->p_subn->master_sm_base_lid = in osm_sm_state_mgr_process()
383 sm->p_subn->sm_base_lid; in osm_sm_state_mgr_process()
[all …]
H A Dosm_link_mgr.c78 return sm->p_subn->opt.sm_sl; in link_mgr_get_smsl()
272 sm->p_subn->opt. in link_mgr_set_physp_pi()
287 sm->p_subn-> in link_mgr_set_physp_pi()
300 p_subn-> in link_mgr_set_physp_pi()
305 p_subn-> in link_mgr_set_physp_pi()
311 p_subn-> in link_mgr_set_physp_pi()
316 p_subn-> in link_mgr_set_physp_pi()
329 sm->p_subn->opt. in link_mgr_set_physp_pi()
331 sm->p_subn->opt. in link_mgr_set_physp_pi()
349 sm->p_subn->opt. in link_mgr_set_physp_pi()
[all …]
H A Dosm_ucast_mgr.c92 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()
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()
501 osm_subn_t *p_subn = ctx; in set_search_ordering_ports() local
614 p_mgr->p_subn->opt.hop_weights_file); in osm_ucast_mgr_build_lid_matrices()
619 p_mgr->p_subn->opt.hop_weights_file); in osm_ucast_mgr_build_lid_matrices()
736 …port->use_scatter = (m->p_subn->opt.guid_routing_order_no_scatter == TRUE) ? 0 : m->p_subn->opt.s… in add_guid_to_order_list()
1043 tbl = &p_mgr->p_subn->sw_guid_tbl; in ucast_mgr_pipeline_fwd_tbl()
[all …]
H A Dosm_lid_mgr.c230 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()
382 p_mgr->p_subn)) in lid_mgr_init_sweep()
605 p_mgr->p_subn->opt.lmc, num_lids); in lid_mgr_find_free_lid_range()
879 p_pi->m_key = p_mgr->p_subn->opt.m_key; in lid_mgr_set_physp_pi()
972 p_mgr->p_subn->opt. in lid_mgr_set_physp_pi()
974 p_mgr->p_subn->opt. in lid_mgr_set_physp_pi()
1027 if (p_mgr->p_subn->opt.lmc_esp0) { in lid_mgr_set_physp_pi()
1116 p_mgr->p_subn->sm_port_guid); in lid_mgr_process_our_sm_node()
[all …]
H A Dosm_drop_mgr.c74 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()
201 notice.issuer_lid = sm->p_subn->sm_base_lid; in drop_mgr_remove_port()
257 p_sm_guid_tbl = &sm->p_subn->sm_guid_tbl; in drop_mgr_remove_port()
275 p_port_lid_tbl = &sm->p_subn->port_lid_tbl; in drop_mgr_remove_port()
282 if (sm->p_subn->opt.drop_event_subscriptions) { in drop_mgr_remove_port()
315 p_sw_guid_tbl = &sm->p_subn->sw_guid_tbl; in drop_mgr_remove_switch()
505 p_node_guid_tbl = &sm->p_subn->node_guid_tbl; in osm_drop_mgr_process()
506 p_port_guid_tbl = &sm->p_subn->port_guid_tbl; in osm_drop_mgr_process()
[all …]
H A Dosm_service.c102 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 Dosm_sa_sminfo_record.c257 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()
291 pri_state = sa->p_subn->sm_state & 0x0F; in osm_smir_rcv_process()
294 sa->p_subn->sm_port_guid, in osm_smir_rcv_process()
295 cl_ntoh32(sa->p_subn->p_osm->stats. in osm_smir_rcv_process()
304 p_sm_guid_tbl = &sa->p_subn->sm_guid_tbl; in osm_smir_rcv_process()
[all …]
H A Dosm_inform.c201 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()
227 cl_qlist_count(&p_subn->sa_infr_list)); in osm_infr_insert_to_db()
228 dump_all_informs(p_subn, p_log); in osm_infr_insert_to_db()
237 p_subn->p_osm->sa.dirty = TRUE; in osm_infr_insert_to_db()
240 cl_qlist_count(&p_subn->sa_infr_list)); in osm_infr_insert_to_db()
241 dump_all_informs(p_subn, p_log); in osm_infr_insert_to_db()
261 p_subn->p_osm->sa.dirty = TRUE; in osm_infr_remove_from_db()
376 osm_subn_t *p_subn = p_infr_rec->sa->p_subn; in is_access_permitted() local
400 p_dest_port = osm_get_port_by_lid(p_subn, in is_access_permitted()
[all …]
H A Dosm_sminfo_rcv.c75 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()
100 sm->p_subn->opt.sm_priority << 4); in smi_rcv_process_get_request()
172 p_smi->guid = sm->p_subn->sm_port_guid; in smi_rcv_process_set_request()
176 p_smi->sm_key = sm->p_subn->opt.sm_key; in smi_rcv_process_set_request()
288 switch (sm->p_subn->sm_state) { in smi_rcv_process_get_sm()
400 sm->p_subn->force_heavy_sweep = TRUE; in smi_rcv_process_get_sm()
439 p_sm_tbl = &sm->p_subn->sm_guid_tbl; in smi_rcv_process_get_response()
446 if (sm->p_subn->opt.sm_key != 0 && p_smi->sm_key != sm->p_subn->opt.sm_key) { in smi_rcv_process_get_response()
[all …]
H A Dosm_sa_path_record.c189 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()
624 sa->p_subn->opt.allow_both_pkeys); in pr_rcv_get_path_parms()
699 sa->p_subn->opt.allow_both_pkeys); in pr_rcv_get_path_parms()
784 } else if (sa->p_subn->opt.qos) { in pr_rcv_get_path_parms()
1306 sa->p_subn->opt.subnet_prefix) { in osm_pr_get_end_points()
[all …]
H A Dosm_port_info_rcv.c103 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()
116 sm->p_subn->min_ca_rate = rate; in pi_rcv_process_endport()
128 sm->p_subn->min_data_vls = data_vls; in pi_rcv_process_endport()
141 p_sm_tbl = &sm->p_subn->sm_guid_tbl; in pi_rcv_process_endport()
155 if (sm->p_subn->opt.ignore_other_sm) in pi_rcv_process_endport()
217 sm->p_subn->ignore_existing_lfts = TRUE; in pi_rcv_process_switch_port0()
284 if (sm->p_subn->opt.fdr10) in pi_rcv_process_switch_ext_port()
410 sm->p_subn->ignore_existing_lfts = TRUE; in pi_rcv_process_switch_ext_port()
703 sm->p_subn->force_heavy_sweep = TRUE; in osm_pi_rcv_process()
[all …]
H A Dosm_sm.c88 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()
153 sm->p_subn->force_heavy_sweep = TRUE; in sweep_fail_process()
251 p_sm->p_subn = 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()
402 p_sm->p_subn->opt.sweep_interval * 1000); in osm_sm_init()
457 uint8_t old_pri = sm->p_subn->opt.sm_priority; in osm_set_sm_priority()
459 sm->p_subn->opt.sm_priority = priority; in osm_set_sm_priority()
[all …]
H A Dosm_req.c79 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()
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()
358 port = osm_get_port_by_guid(sm->p_subn, sm->p_subn->sm_port_guid); in osm_send_trap144()
[all …]
H A Dosm_sw_info_rcv.c211 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()
232 sm->p_subn->max_mcast_lid_ho); 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()
362 sm->p_subn->opt.fdr10) { in si_rcv_get_sp0_info()
415 p_node = osm_get_node_by_guid(sm->p_subn, node_guid); in osm_si_rcv_process()
440 sm->p_subn->ignore_existing_lfts = TRUE; in osm_si_rcv_process()
[all …]
H A Dosm_sa_mcmember_record.c159 osm_subn_t *p_subn = sa->p_subn; in get_new_mlid() local
180 if (!sa->p_subn->mboxes[i]) in get_new_mlid()
439 sa->p_subn, in validate_modify()
703 mtu = sa->p_subn->min_ca_mtu; in mgrp_request_is_realizable()
754 sa->p_subn->min_ca_rate) < 0) in mgrp_request_is_realizable()
755 rate = sa->p_subn->min_ca_rate; in mgrp_request_is_realizable()
980 sa->p_subn->opt.subnet_prefix) { in mcmr_rcv_leave_mgrp()
1163 sa->p_subn->opt.subnet_prefix) { in mcmr_rcv_join_mgrp()
1341 osm_mgrp_cleanup(sa->p_subn, p_mgrp); in mcmr_rcv_join_mgrp()
1358 osm_mgrp_cleanup(sa->p_subn, p_mgrp); in mcmr_rcv_join_mgrp()
[all …]
H A Dosm_prtn_config.c91 osm_subn_t *p_subn; member
105 osm_subn_t * p_subn, osm_prtn_t * p,
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()
487 guid = cl_ntoh64(conf->p_subn->sm_port_guid); in partition_add_port()
497 osm_prtn_add_port(conf->p_log, conf->p_subn, p, in partition_add_port()
502 osm_prtn_add_port(conf->p_log, conf->p_subn, p, in partition_add_port()
629 if (osm_get_mgrp_by_mgid(conf->p_subn, &mgroup.mgid)) in mgroup_create()
646 conf->p_subn = p_subn; in new_part_conf()
[all …]
H A Dosm_node_info_rcv.c162 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()
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()
548 if (sm->p_subn->sm_state == IB_SMINFO_STATE_MASTER) in ni_rcv_process_existing_ca_or_router()
775 if (sm->p_subn->sm_state == IB_SMINFO_STATE_MASTER) in ni_rcv_process_new()
[all …]
H A Dosm_sa_informinfo.c110 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()
555 osm_infr_insert_to_db(sa->p_subn, sa->p_log, p_infr); in infr_rcv_process_set_method()
[all …]
H A Dosm_sa_mad_ctrl.c130 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 Dosm_port.c239 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()
652 p_subn->opt.allow_both_pkeys); in osm_physp_set_pkey_tbl()
[all …]
/freebsd/contrib/ofed/opensm/include/opensm/
H A Dosm_subnet.h977 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,
1326 struct osm_port *osm_get_port_by_alias_guid(IN osm_subn_t const *p_subn,
[all …]
H A Dosm_inform.h178 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,

1234