Home
last modified time | relevance | path

Searched refs:mlid (Results 1 – 25 of 32) sorted by relevance

12

/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_multicast.c58 static osm_mgrp_box_t *mgrp_box_new(uint16_t mlid) in mgrp_box_new() argument
65 mbox->mlid = mlid; in mgrp_box_new()
119 osm_mgrp_t *osm_mgrp_new(IN osm_subn_t * subn, IN ib_net16_t mlid, in osm_mgrp_new() argument
132 p_mgrp->mlid = mlid; in osm_mgrp_new()
135 mbox = osm_get_mbox_by_mlid(subn, p_mgrp->mlid); in osm_mgrp_new()
136 if (!mbox && !(mbox = mgrp_box_new(cl_ntoh16(p_mgrp->mlid)))) { in osm_mgrp_new()
142 subn->mboxes[mbox->mlid - IB_LID_MCAST_START_HO] = mbox; in osm_mgrp_new()
179 mbox = osm_get_mbox_by_mlid(subn, mgrp->mlid); in osm_mgrp_cleanup()
182 subn->mboxes[cl_ntoh16(mgrp->mlid) - IB_LID_MCAST_START_HO] = NULL; in osm_mgrp_cleanup()
291 cl_ntoh16(mgrp->mlid)); in osm_mgrp_add_port()
[all …]
H A Dosm_mcast_mgr.c466 static void mcast_mgr_purge_list(osm_sm_t * sm, uint16_t mlid, cl_qlist_t * list) in mcast_mgr_purge_list() argument
476 mlid, cl_ntoh64(osm_port_get_guid(wobj->p_port))); in mcast_mgr_purge_list()
773 mbox->mlid, num_ports); in mcast_mgr_build_spanning_tree()
798 mbox->mlid); in mcast_mgr_build_spanning_tree()
804 mbox->root = mcast_mgr_branch(sm, mbox->mlid, p_sw, &port_list, 0, 0, in mcast_mgr_build_spanning_tree()
809 mbox->mlid, num_ports, max_depth); in mcast_mgr_build_spanning_tree()
861 static void mcast_mgr_clear(osm_sm_t * sm, uint16_t mlid) in mcast_mgr_clear() argument
874 osm_mcast_tbl_clear_mlid(p_mcast_tbl, mlid); in mcast_mgr_clear()
887 IN ib_net16_t const mlid,
903 CL_ASSERT(mlid);
[all …]
H A Dosm_sa_mcmember_record.c103 dest->mlid = src->mlid; in copy_from_create_mc_rec()
119 static void free_mlid(IN osm_sa_t * sa, IN uint16_t mlid) in free_mlid() argument
122 UNUSED_PARAM(mlid); in free_mlid()
147 return m->mlid; in find_ipv6_snm_mlid()
160 ib_net16_t requested_mlid = mcmr->mlid; in get_new_mlid()
826 ib_net16_t mlid; in mcmr_rcv_create_new_mgrp() local
904 mlid = get_new_mlid(sa, &mcm_rec); in mcmr_rcv_create_new_mgrp()
905 if (mlid == 0) { in mcmr_rcv_create_new_mgrp()
908 cl_ntoh16(mcm_rec.mlid)); in mcmr_rcv_create_new_mgrp()
914 cl_ntoh16(mlid)); in mcmr_rcv_create_new_mgrp()
[all …]
H A Dosm_sm.c444 void osm_sm_reroute_mlid(osm_sm_t * sm, ib_net16_t mlid) in osm_sm_reroute_mlid() argument
446 mlid = cl_ntoh16(mlid) - IB_LID_MCAST_START_HO; in osm_sm_reroute_mlid()
447 sm->mlids_req[mlid] = 1; in osm_sm_reroute_mlid()
448 if (sm->mlids_req_max < mlid) in osm_sm_reroute_mlid()
449 sm->mlids_req_max = mlid; in osm_sm_reroute_mlid()
452 mlid + IB_LID_MCAST_START_HO); in osm_sm_reroute_mlid()
H A Dosm_sa.c635 cl_ntoh16(p_mgrp->mlid), in sa_dump_one_mgrp()
642 cl_ntoh16(p_mgrp->mcmember_rec.mlid), in sa_dump_one_mgrp()
837 static osm_mgrp_t *load_mcgroup(osm_opensm_t * p_osm, ib_net16_t mlid, in load_mcgroup() argument
847 if (p_mgrp->mlid == mlid) { in load_mcgroup()
849 "mgrp %04x is already here.", cl_ntoh16(mlid)); in load_mcgroup()
854 "request clients reregistration.\n", cl_ntoh16(mlid)); in load_mcgroup()
864 p_mgrp->mlid != mlid) { in load_mcgroup()
867 "0x%016" PRIx64 ":0x%016" PRIx64 "\n", cl_ntoh16(mlid), in load_mcgroup()
1161 ib_net16_t mlid; in osm_sa_db_file_load() local
1166 PARSE_AHEAD(p, net16, " 0x", &mlid); in osm_sa_db_file_load()
[all …]
H A Dosm_ucast_dfsssp.c2655 mbox->mlid, num_ports); in dfsssp_do_mcast_routing()
2666 mbox->mlid); in dfsssp_do_mcast_routing()
2688 mbox->mlid); in dfsssp_do_mcast_routing()
2699 err = update_mcft(sm, adj_list, adj_list_size, mbox->mlid, in dfsssp_do_mcast_routing()
2704 mbox->mlid); in dfsssp_do_mcast_routing()
H A Dosm_sa_path_record.c1543 if ((comp_mask & IB_PR_COMPMASK_DLID) && p_mgrp->mlid != p_pr->dlid) { in pr_match_mgrp_attributes()
1546 cl_ntoh16(p_pr->dlid), cl_ntoh16(p_mgrp->mlid)); in pr_match_mgrp_attributes()
1679 pr_item->resp.path_rec.dlid = mgrp->mcmember_rec.mlid; in pr_process_multicast()
/freebsd/contrib/ofed/opensm/include/opensm/
H A Dosm_multicast.h103 ib_net16_t mlid; member
152 uint16_t mlid; member
182 osm_mgrp_t *osm_mgrp_new(IN osm_subn_t * subn, IN ib_net16_t mlid,
311 return p_mgrp->mlid; in osm_mgrp_get_mlid()
H A Dosm_subnet.h1486 static inline struct osm_mgrp_box *osm_get_mbox_by_mlid(osm_subn_t const *p_subn, ib_net16_t mlid) in osm_get_mbox_by_mlid() argument
1488 return (struct osm_mgrp_box *)p_subn->mboxes[cl_ntoh16(mlid) - IB_LID_MCAST_START_HO]; in osm_get_mbox_by_mlid()
H A Dosm_sm.h620 void osm_sm_reroute_mlid(osm_sm_t * sm, ib_net16_t mlid);
/freebsd/contrib/ofed/infiniband-diags/src/
H A Dibtracert.c487 static int switch_mclookup(Node * node, ib_portid_t * portid, int mlid, in switch_mclookup() argument
503 mlid -= 0xc000; in switch_mclookup()
507 if (mlid >= sw.mccap) in switch_mclookup()
510 block = mlid / 32; in switch_mclookup()
520 uint16_t mask = ntohs(msets[mlid % 32]); in switch_mclookup()
527 node->nodeguid, mlid + 0xc000, i + set * 16); in switch_mclookup()
537 static Node *find_mcpath(ib_portid_t * from, int mlid) in find_mcpath() argument
566 if (switch_mclookup(node, from, mlid, map) < 0 || !map[0]) in find_mcpath()
599 if (switch_mclookup(node, path, mlid, map) < 0) { in find_mcpath()
755 static int dumplevel = 2, multicast, mlid; variable
[all …]
H A Dibroute.c93 int dump_mlid(char *str, int strlen, unsigned mlid, unsigned nports, in dump_mlid() argument
103 mask = ntohs(mft[i][mlid % IB_MLIDS_IN_BLOCK]); in dump_mlid()
122 mask = ntohs(mft[chunk][mlid % IB_MLIDS_IN_BLOCK]); in dump_mlid()
H A Ddump_fts.c68 int dump_mlid(char *str, int strlen, unsigned mlid, unsigned nports, in dump_mlid() argument
78 mask = ntohs(mft[i][mlid % IB_MLIDS_IN_BLOCK]); in dump_mlid()
97 mask = ntohs(mft[chunk][mlid % IB_MLIDS_IN_BLOCK]); in dump_mlid()
H A Dsaquery.c73 uint16_t slid, dlid, mlid; member
338 cl_ntoh32(mr->qkey), cl_ntoh16(mr->mlid), mr->mtu, mr->tclass, in dump_one_mcmember_record()
357 cl_ntoh16(p_mcmr->mlid), in dump_multicast_group_record()
367 uint16_t mlid = cl_ntoh16(p_mcmr->mlid); in dump_multicast_member_record() local
389 if (strtol(requested_name, NULL, 0) == mlid) in dump_multicast_member_record()
403 cl_ntoh16(p_mcmr->mlid), in dump_multicast_member_record()
1226 CHECK_AND_SET_VAL(p->mlid, 16, 0, mr.mlid, MCR, MLID); in query_mcmember_records()
1650 p->mlid = (uint16_t) strtoul(optarg, NULL, 0); in process_opt()
/freebsd/sys/ofed/drivers/infiniband/ulp/ipoib/
H A Dipoib_verbs.c39 int ipoib_mcast_attach(struct ipoib_dev_priv *priv, u16 mlid, union ib_gid *mgid, int set_qkey) in ipoib_mcast_attach() argument
68 ret = ib_attach_mcast(priv->qp, mgid, mlid); in ipoib_mcast_attach()
H A Dipoib_multicast.c186 ret = ipoib_mcast_attach(priv, be16_to_cpu(mcast->mcmember.mlid), in ipoib_mcast_join_finish()
199 .dlid = be16_to_cpu(mcast->mcmember.mlid), in ipoib_mcast_join_finish()
224 be16_to_cpu(mcast->mcmember.mlid), in ipoib_mcast_join_finish()
619 be16_to_cpu(mcast->mcmember.mlid)); in ipoib_mcast_leave()
H A Dipoib.h509 int ipoib_mcast_attach(struct ipoib_dev_priv *priv, u16 mlid,
/freebsd/contrib/ofed/libibverbs/
H A Dsa.h70 uint16_t mlid; member
H A Dkern-abi.h1061 __u16 mlid; member
1090 __u16 mlid; member
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_multicast.c298 if (comp_mask & IB_SA_MCMEMBER_REC_MLID && src->mlid != dst->mlid) in cmp_rec()
747 ah_attr->dlid = be16_to_cpu(rec->mlid); in ib_init_ah_from_mcmember()
H A Dib_uverbs_cmd.c2508 if (cmd.mlid == mcast->lid && in ib_uverbs_attach_mcast()
2520 mcast->lid = cmd.mlid; in ib_uverbs_attach_mcast()
2523 ret = ib_attach_mcast(qp, &mcast->gid, cmd.mlid); in ib_uverbs_attach_mcast()
2558 if (cmd.mlid == mcast->lid && in ib_uverbs_detach_mcast()
2571 ret = ib_detach_mcast(qp, (union ib_gid *)cmd.gid, cmd.mlid); in ib_uverbs_detach_mcast()
/freebsd/sys/ofed/include/rdma/
H A Dib_sa.h214 __be16 mlid; member
/freebsd/sys/ofed/include/uapi/rdma/
H A Dib_user_verbs.h895 __u16 mlid; member
903 __u16 mlid; member
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_mcg.c89 __be16 mlid; member
393 if (comp_mask & IB_SA_MCMEMBER_REC_MLID && src->mlid != dst->mlid) in cmp_rec()
/freebsd/contrib/ofed/librdmacm/
H A Dcma.c116 uint16_t mlid; member
1826 ibv_detach_mcast(id->qp, &mc->mgid, mc->mlid); in rdma_leave_multicast()
2008 evt->mc->mlid = evt->event.param.ud.ah_attr.dlid; in ucma_process_join()
2014 &evt->mc->mgid, evt->mc->mlid)); in ucma_process_join()

12