Home
last modified time | relevance | path

Searched full:lid (Results 1 – 25 of 312) sorted by relevance

12345678910>>...13

/freebsd/contrib/ofed/opensm/opensm/
H A Dosm_lid_mgr.c39 * This file implements the LID Manager object which is responsible for
43 * p_subn->port_lid_tbl : a vector pointing from lid to its port.
44 * osm db guid2lid domain : a hash from guid to lid (min lid).
49 * 0. we define a function to obtain the correct port lid:
51 * 0.1 if the port info lid matches the guid2lid return 0
52 * 0.2 if the port info has a lid and that range is empty in
64 * 2. During SM port lid assignment:
70 * 3. During all other ports lid assignment:
101 lid range item of qlist
127 Validate the guid to lid data by making sure that under the current
[all …]
H A Dosm_ucast_file.c58 static uint16_t remap_lid(osm_opensm_t * p_osm, uint16_t lid, ib_net64_t guid) in remap_lid() argument
68 " , will use the same lid\n", cl_ntoh64(guid)); in remap_lid()
69 return lid; in remap_lid()
73 if (min_lid <= lid && lid <= max_lid) in remap_lid()
74 return lid; in remap_lid()
77 return min_lid + (lid & ((1 << lmc) - 1)); in remap_lid()
81 osm_switch_t * p_sw, uint16_t lid, uint8_t port_num, in add_path() argument
87 new_lid = port_guid ? remap_lid(p_osm, lid, port_guid) : lid; in add_path()
91 "LID collision is detected on switch " in add_path()
92 "0x016%" PRIx64 ", will overwrite LID %u entry\n", in add_path()
[all …]
H A Dosm_ucast_cache.c108 /* port[0] fields represent this switch details - lid and type */ in cache_sw_new()
156 "Caching switch port: lid %u [port %u] -> lid %u (%s)\n", in cache_add_sw_link()
263 "Found uncached switch/link (lid %u, port %u)\n", in cache_remove_port()
272 "Found uncached switch link (lid %u, port %u)\n", in cache_remove_port()
280 "Remote lid change on switch lid %u, port %u " in cache_remove_port()
291 "Remote node type change on switch lid %u, port %u\n", in cache_remove_port()
298 "New link from lid %u, port %u to lid %u - " in cache_remove_port()
355 "\t Switch lid %u %s%s\n", in ucast_cache_dump()
364 "\t - port %u -> lid %u %s\n", in ucast_cache_dump()
471 "Checking switch lid %u, port %u\n", in ucast_cache_validate()
[all …]
H A Dosm_dump.c157 LID assignments. Running SM with --reassign_lids in dump_ucast_routes()
158 will reassign and compress the LID range. The in dump_ucast_routes()
166 lid due to a recent reconfiguration of the subnet. in dump_ucast_routes()
171 /* Target LID is switch. in dump_ucast_routes()
172 Get its base lid and check hop count for this base LID only. */ in dump_ucast_routes()
178 /* Target LID is not switch (CA or router). in dump_ucast_routes()
310 uint16_t lid; in dump_lid_matrix() local
315 for (lid = 1; lid <= max_lid; lid++) { in dump_lid_matrix()
317 if (osm_switch_get_least_hops(p_sw, lid) == OSM_NO_PATH) in dump_lid_matrix()
319 fprintf(file, "0x%04x:", lid); in dump_lid_matrix()
[all …]
H A Dosm_trap_rcv.c87 IN ib_net16_t lid, IN uint8_t num) in get_physp_by_lid_and_num() argument
89 osm_port_t *p_port = osm_get_port_by_lid(sm->p_subn, lid); in get_physp_by_lid_and_num()
103 ib_net16_t lid; in aging_tracker_callback() local
113 lid = (ib_net16_t) ((key & 0x0000FFFF00000000ULL) >> 32); in aging_tracker_callback()
118 p_physp = get_physp_by_lid_and_num(sm, lid, port_num); in aging_tracker_callback()
121 "Cannot find port num:%u with lid:%u\n", in aging_tracker_callback()
122 port_num, cl_ntoh16(lid)); in aging_tracker_callback()
127 "Clearing health bit of port num:%u with lid:%u\n", in aging_tracker_callback()
128 port_num, cl_ntoh16(lid)); in aging_tracker_callback()
185 port_num lid crc
[all …]
H A Dosm_ucast_ftree.c144 uint16_t lid; /* lid of the current node */ member
145 uint16_t remote_lid; /* lid of the remote node */
154 cl_ptr_vector_t ports; /* vector of ports to the same lid */
172 uint16_t lid; member
387 static ftree_port_group_t *port_group_create(IN uint16_t lid, in port_group_create() argument
406 p_group->lid = lid; in port_group_create()
508 " Local <--> Remote GUID (LID):" in port_group_dump()
514 p_group->lid, cl_ntoh64(p_group->remote_port_guid), in port_group_dump()
564 p_sw->lid = in sw_create()
720 IN uint8_t remote_port_num, IN uint16_t lid, in sw_add_port() argument
[all …]
H A Dosm_sa_slvl_record.c79 uint16_t lid; in sa_slvl_create() local
91 lid = p_physp->port_info.base_lid; in sa_slvl_create()
93 lid = osm_node_get_base_lid(p_physp->p_node, 0); in sa_slvl_create()
97 ", lid 0x%X, port %u to In Port:%u\n", in sa_slvl_create()
99 cl_ntoh16(lid), osm_physp_get_port_num(p_physp), in_port_idx); in sa_slvl_create()
103 p_rec_item->resp.slvl_rec.lid = lid; in sa_slvl_create()
261 "Got Query Lid:%u(%02X), In-Port:0x%02X(%02X), Out-Port:0x%02X(%02X)\n", in osm_slvl_rec_rcv_process()
262 cl_ntoh16(p_rcvd_rec->lid), in osm_slvl_rec_rcv_process()
270 If the user specified a LID, it obviously narrows our in osm_slvl_rec_rcv_process()
274 p_port = osm_get_port_by_lid(sa->p_subn, p_rcvd_rec->lid); in osm_slvl_rec_rcv_process()
[all …]
H A Dosm_sa_vlarb_record.c79 uint16_t lid; in sa_vl_arb_create() local
91 lid = p_physp->port_info.base_lid; in sa_vl_arb_create()
93 lid = osm_node_get_base_lid(p_physp->p_node, 0); in sa_vl_arb_create()
97 ", lid %u, port %u Block:%u\n", in sa_vl_arb_create()
99 cl_ntoh16(lid), osm_physp_get_port_num(p_physp), block); in sa_vl_arb_create()
103 p_rec_item->resp.vlarb_rec.lid = lid; in sa_vl_arb_create()
268 "Got Query Lid:%u(%02X), Port:0x%02X(%02X), Block:0x%02X(%02X)\n", in osm_vlarb_rec_rcv_process()
269 cl_ntoh16(p_rcvd_rec->lid), in osm_vlarb_rec_rcv_process()
276 If the user specified a LID, it obviously narrows our in osm_vlarb_rec_rcv_process()
280 p_port = osm_get_port_by_lid(sa->p_subn, p_rcvd_rec->lid); in osm_vlarb_rec_rcv_process()
[all …]
H A Dosm_sa_pkey_record.c72 uint16_t lid; in sa_pkey_create() local
85 lid = p_physp->port_info.base_lid; in sa_pkey_create()
87 lid = osm_node_get_base_lid(p_physp->p_node, 0); in sa_pkey_create()
91 ", lid %u, port %u Block:%u\n", in sa_pkey_create()
93 cl_ntoh16(lid), osm_physp_get_port_num(p_physp), block); in sa_pkey_create()
97 p_rec_item->resp.pkey_rec.lid = lid; in sa_pkey_create()
288 "Got Query Lid:%u(%02X), Block:0x%02X(%02X), Port:0x%02X(%02X)\n", in osm_pkey_rec_rcv_process()
289 cl_ntoh16(p_rcvd_rec->lid), in osm_pkey_rec_rcv_process()
295 If the user specified a LID, it obviously narrows our in osm_pkey_rec_rcv_process()
299 p_port = osm_get_port_by_lid(sa->p_subn, p_rcvd_rec->lid); in osm_pkey_rec_rcv_process()
[all …]
/freebsd/contrib/ofed/opensm/include/opensm/
H A Dosm_lid_mgr.h39 * This object represents the LID Manager object.
63 /****h* OpenSM/LID Manager
65 * LID Manager
68 * The LID Manager object encapsulates the information
69 * needed to control LID assignments on the subnet.
71 * The LID Manager object is thread safe.
81 /****s* OpenSM: LID Manager/osm_lid_mgr_t
86 * LID Manager structure.
122 * Pointer to the database domain storing guid to lid mapping.
125 * A list of available free lid ranges. The list is initialized
[all …]
H A Dosm_switch.h129 * Max LID that is accessible from this switch.
138 * LID Matrix for this switch containing the hop count
139 * to every LID from every port.
262 * Returns the hop count at the specified LID/Port intersection.
279 * [in] LID value (host order) for which to return the hop count
285 * Returns the hop count at the specified LID/Port intersection.
297 * Sets the hop count at the specified LID/Port intersection.
309 * [in] LID value (host order) for which to set the count.
330 * Cleanup existing hops tables (lid matrix)
350 * Returns the number of hops in the short path to this lid from
[all …]
/freebsd/contrib/ofed/infiniband-diags/man/
H A Dibnetdiscover.870 list of connected ports with relevant information (like LID, portnum,
114 \fBport\fP = port connections, \fBlid\fP = lids, \fBnodedesc\fP = node
115 descriptions. Note that \fBport\fP, \fBlid\fP, and \fBnodedesc\fP are
117 \fBca\fP, \fBrouter\fP). If \fBport\fP is specified alongside \fBlid\fP
309 whether switch port 0 is base or enhanced, and the LID and LMC of port 0.
316 the NodeDescription in quotes and the LID of the peer node. If it is a
317 CA or router node, it is followed by the local LID and LMC and then
318 followed by the NodeDescription in quotes and the LID of the peer node.
340 Switch 24 "S\-005442ba00003080" # "ISR9024 Voltaire" base port 0 lid 6 lmc 0
341 …008f10403961354"[1](8f10403961355) # "MT23108 InfiniHost Mellanox Technologies" lid 4 4xSDR
[all …]
H A Dinfiniband-diags.842 utilities, require LID routed MAD\(aqs and to some extent SA/SM access.
111 \fB\-L, \-\-Lid\fP The address specified is a LID
115 \fB\-s, \-\-sm_port <smlid>\fP use \(aqsmlid\(aq as the target lid for SA queries.
300 whether switch port 0 is base or enhanced, and the LID and LMC of port 0.
307 the NodeDescription in quotes and the LID of the peer node. If it is a
308 CA or router node, it is followed by the local LID and LMC and then
309 followed by the NodeDescription in quotes and the LID of the peer node.
331 Switch 24 "S\-005442ba00003080" # "ISR9024 Voltaire" base port 0 lid 6 lmc 0
332 …008f10403961354"[1](8f10403961355) # "MT23108 InfiniHost Mellanox Technologies" lid 4 4xSDR
333 [10] "S\-0008f10400410015"[1] # "SW\-6IB4 Voltaire" lid 3 4xSDR
[all …]
H A Dsaquery.836 saquery [options] [<name> | <lid> | <guid>]
62 return the unique Lid of the name specified
68 return the name for the Lid specified
119 \fB\-\-slid <lid>\fP Source LID (PathRecord)
121 \fB\-\-dlid <lid>\fP Destination LID (PathRecord)
123 \fB\-\-mlid <lid>\fP Multicast LID (MCMemberRecord)
178 NodeRecord (NR) [lid]
179 PortInfoRecord (PIR) [[lid]/[port]/[options]]
180 SL2VLTableRecord (SL2VL) [[lid]/[in_port]/[out_port]]
181 PKeyTableRecord (PKTR) [[lid]/[port]/[block]]
[all …]
H A Dibportstate.835 ibportstate [options] <dest dr_path|lid|guid> <portnum> [<op>]
50 on, off, down, arm, active, vls, mtu, lid, smlid, lmc,
83 initial LID route with directed routing to the peer) which can only be
85 requires LID routing to be functioning in the subnet.
97 \fB\-L, \-\-Lid\fP The address specified is a LID
125 \fB\-s, \-\-sm_port <smlid>\fP use \(aqsmlid\(aq as the target lid for SA queries.
244 ibportstate 3 1 disable # by lid
247 ibportstate 3 1 reset # by lid
248 ibportstate 3 1 speed 1 # by lid
249 ibportstate 3 1 width 1 # by lid
[all …]
H A Dperfquery.836 perfquery [options] [<lid|guid> [[port(s)] [reset_mask]]]
119 show aggregated counters for all ports of the destination lid, reset
121 the counters of the specified ports. If the destination lid does not support
147 \fB\-L, \-\-Lid\fP The address specified is a LID
151 \fB\-s, \-\-sm_port <smlid>\fP use \(aqsmlid\(aq as the target lid for SA queries.
266 perfquery 32 1 # read performance counters from lid 32, port 1
267 perfquery \-x 32 1 # read extended performance counters from lid 32, port 1
268 perfquery \-a 32 # read perf counters from lid 32, all ports
276 perfquery \-a 32 1\-10 # read performance counters from lid 32, port 1\-10, aggregate output
277 perfquery \-l 32 1\-10 # read performance counters from lid 32, port 1\-10, output each port
[all …]
H A Dibaddr.838 Display the lid (and range) as well as the GID address of the
39 port specified (by DR path, lid, or GUID) or the local port by default.
48 show lid range only
51 show lid range (in decimal) only
80 \fB\-s, \-\-sm_port <smlid>\fP use \(aqsmlid\(aq as the target lid for SA queries.
195 ibaddr 32 # show lid range and gid of lid 32
197 ibaddr \-l 32 # show lid range only
198 ibaddr \-L 32 # show decimal lid range only
H A Dibccconfig.835 ibccconfig [common_options] [\-c cckey] [\-\-dgid gid] <op> <lid|guid> [port]
48 CongestionKeyInfo (CK) <lid|guid> <cckey> <cckeyprotectbit> <cckeyleaseperiod> <cckeyviolations>
49 SwitchCongestionSetting (SS) <lid|guid> <controlmap> <victimmask> <creditmask> <threshold> <packets…
50 SwitchPortCongestionSetting (SP) <lid|guid> <portnum> <valid> <control_type> <threshold> <packet_si…
51 CACongestionSetting (CS) <lid|guid> <port_control> <control_map> <ccti_timer> <ccti_increase> <trig…
52 CongestionControlTable (CT) <lid|guid> <cctilimit> <index> <cctentry> <cctentry> ...
100 \fB\-L, \-\-Lid\fP The address specified is a LID
104 \fB\-s, \-\-sm_port <smlid>\fP use \(aqsmlid\(aq as the target lid for SA queries.
/freebsd/contrib/ofed/infiniband-diags/src/
H A Dibtracert.c83 int lid; member
166 mad_decode_field(pi, IB_PORT_LID_F, &port->lid); in get_node()
175 static int switch_lookup(Switch * sw, ib_portid_t * portid, int lid) in switch_lookup() argument
188 if (lid >= sw->linearcap && lid > sw->linearFDBtop) in switch_lookup()
192 if (!smp_query_via(fdb, portid, IB_ATTR_LINEARFORWTBL, lid / 64, in switch_lookup()
196 DEBUG("portid %s: forward lid %d to port %d", in switch_lookup()
197 portid2str(portid), lid, sw->fdb[lid % 64]); in switch_lookup()
198 return sw->fdb[lid % 64]; in switch_lookup()
203 return a->portguid == b->portguid || (force && a->lid == b->lid); in sameport()
231 fprintf(f, "%s %s {0x%016" PRIx64 "} portnum %d lid %u-%u \"%s\"\n", in dump_endnode()
[all …]
H A Dibaddr.c69 mad_decode_field(portinfo, IB_PORT_LID_F, &portid->lid); in ib_resolve_addr()
83 printf("LID start 0x%x end 0x%x", portid->lid, in ib_resolve_addr()
84 portid->lid + (1 << lmc) - 1); in ib_resolve_addr()
86 printf("LID start %u end %u", portid->lid, in ib_resolve_addr()
87 portid->lid + (1 << lmc) - 1); in ib_resolve_addr()
121 {"lid_show", 'l', 0, NULL, "show lid range only"}, in main()
122 {"Lid_show", 'L', 0, NULL, "show lid range (in decimal) only"}, in main()
125 char usage_args[] = "[<lid|dr_path|guid>]"; in main()
128 "32\t\t# show lid range and gid of lid 32", in main()
130 "-l 32\t\t# show lid range only", in main()
[all …]
H A Dibmirror.c185 mad_set_field(buf, 0, IB_PMR_LRH_SLID_F, portid->lid); in port_mirror_route()
266 peerportid.drpath.drslid = (uint16_t) selfportid.lid; in get_peer()
312 get_peer(portid, outport, &peerportid.lid, &peerport); in lossy_config()
314 printf("local lid %d / port %d\n", portid->lid, outport); in lossy_config()
315 printf("peer lid %d / port %d\n", peerportid.lid, peerport); in lossy_config()
321 IBEXIT("get lossy config from lid %d port %d failed - not supported\n", in lossy_config()
322 portid->lid, outport); in lossy_config()
327 IBEXIT("get lossy config from lid %d port %d failed - not supported\n", in lossy_config()
328 peerportid.lid, peerport); in lossy_config()
332 printf("local port lid %d port %d ignore_buffer 0x%04x, ignore_credit 0x%04x\n", in lossy_config()
[all …]
H A Dsaquery.c140 printf("%6d \"%s\"\n", cl_ntoh16(node_record->lid), name); in print_node_desc()
169 cl_ntoh16(nr->lid), cl_ntoh16(nr->resv), in dump_node_record()
191 printf("%u\n", cl_ntoh16(node_record->lid)); in print_node_record()
259 "\t\tRedirect LID.............%u\n" in dump_class_port_info()
265 "\t\tTrap LID.................%u\n" in dump_class_port_info()
292 cl_ntoh16(p_pir->lid), p_pir->port_num, in dump_portinfo_record()
308 cl_ntoh16(pir->lid), pir->port_num, pir->options); in dump_one_portinfo_record()
514 cl_ntoh16(p_smr->lid), in dump_sm_info_record()
541 cl_ntoh16(p_sir->lid), in dump_switch_info_record()
667 cl_ntoh16(slvl->lid), slvl->in_port_num, slvl->out_port_num, in dump_one_slvl_record()
[all …]
/freebsd/sys/dev/acpica/
H A Dacpi_lid.c52 ACPI_MODULE_NAME("LID")
65 ACPI_SERIAL_DECL(lid, "ACPI lid");
103 * Evaluate _LID and check the return value, update lid status. in acpi_lid_status_update()
104 * Zero: The lid is closed in acpi_lid_status_update()
105 * Non-zero: The lid is open in acpi_lid_status_update()
109 lid_status = 1; /* assume lid is opened */ in acpi_lid_status_update()
118 acpi_UserNotify("Lid", sc->lid_handle, sc->lid_status); in acpi_lid_status_update()
121 /* Notify evdev about lid status */ in acpi_lid_status_update()
134 if (acpi_disabled("lid")) in acpi_lid_probe()
138 device_set_desc(dev, "Control Method Lid Switch"); in acpi_lid_probe()
[all …]
/freebsd/contrib/ofed/libibmad/
H A Dgs.c56 int lid = dest->lid; in pma_query_via() local
59 DEBUG("lid %u port %d", lid, port); in pma_query_via()
61 if (lid == -1) { in pma_query_via()
62 IBWARN("only lid routed is supported"); in pma_query_via()
94 int lid = dest->lid; in performance_reset_via() local
97 DEBUG("lid %u port %d mask 0x%x", lid, port, mask); in performance_reset_via()
99 if (lid == -1) { in performance_reset_via()
100 IBWARN("only lid routed is supported"); in performance_reset_via()
H A Dresolve.c90 if (!IB_LID_VALID(sm_id->lid)) { in ib_resolve_gid_via()
95 if ((portid->lid = in ib_resolve_gid_via()
115 if (!IB_LID_VALID(sm_id->lid)) { in ib_resolve_guid_via()
134 if ((portid->lid = in ib_resolve_guid_via()
148 int lid; in ib_resolve_portid_str_via() local
157 lid = strtol(addr_str, 0, 0); in ib_resolve_portid_str_via()
158 if (!IB_LID_VALID(lid)) { in ib_resolve_portid_str_via()
162 return ib_portid_set(portid, lid, 0, 0); in ib_resolve_portid_str_via()
181 lid = strtol(addr_str, &routepath, 0); in ib_resolve_portid_str_via()
183 if (!IB_LID_VALID(lid)) { in ib_resolve_portid_str_via()
[all …]

12345678910>>...13