| /NextBSD/contrib/ofed/management/infiniband-diags/scripts/ |
| HD | ibidsverify.pl | 62 my ($lid) = shift(@_); 66 if ($lid eq 0) { 75 my ($lid) = shift(@_); 80 print "$nodetype GUID 0x0 found with LID $lid\n"; 92 my ($lid) = shift(@_); 98 $status = validate_non_zero_lid($lid, $nodeguid, $nodetype); 100 if (defined($insert_lid::lids{$lid})) { 102 "LID $lid already defined for NodeGUID $insert_lid::lids{$lid}->{nodeguid}\n"; 104 $rec = {lid => $lid, nodeguid => $nodeguid}; 105 $insert_lid::lids{$lid} = $rec; [all …]
|
| HD | ibcheckport.in | 76 if ! lid=`$IBPATH/ibaddr $ca_info -G -L $1 | awk '/failed/{exit -1} {print $3}'`; then 83 lid=$1 92 text="`eval $IBPATH/smpquery $ca_info portinfo $lid $portnum`" 107 /^PhysLinkState/{ if ($2 != "LinkUp") {err = err "#error: Physical link state is " $2 " lid '$lid'… 109 /^LinkState/{ if ($2 != "Active") warn = warn "#warn: Logical link state is " $2 " lid '$lid' port… 111 /^LinkWidthActive/{ if ($2 == "1X") warn = warn "#warn: Link configured as 1X lid '$lid' port '$po… 113 /^Lid/{ if ($2 == "0") warn = warn "#warn: Lid is not configured lid '$lid' port '$portnum'\n"} 136 echo -n "Port check lid $lid port $portnum: " 141 echo -n "Port check lid $lid port $portnum: "
|
| HD | ibcheckportstate.in | 76 if ! lid=`$IBPATH/ibaddr $ca_info -G -L $1 | awk '/failed/{exit -1} {print $3}'`; then 83 lid=$1 92 text="`eval $IBPATH/smpquery $ca_info portinfo $lid $portnum`" 107 /^PhysLinkState/{ if ($2 != "LinkUp") {err = err "#error: Physical link state is " $2 " lid '$lid'… 109 /^LinkState/{ if ($2 != "Active") warn = warn "#warn: Logical link state is " $2 " lid '$lid' port… 128 echo -n "Port check lid $lid port $portnum: " 133 echo -n "Port check lid $lid port $portnum: "
|
| HD | ibcheckerrs.in | 139 if ! lid=`$IBPATH/ibaddr $ca_info -G -L $1 | awk '/failed/{exit -1} {print $3}'`; then 146 lid=$1 154 nodename=`$IBPATH/smpquery $ca_info nodedesc $lid | sed -e "s/^Node Description:\.*\(.*\)/\1/"` 156 text="`eval $IBPATH/perfquery $ca_info $lid $portnum`" 196 /^PortSelect/ { if ($2 != '$portnum') {err = err "error: lid '$lid' port " $2 " does not match quer… 201 warn = warn "#warn: counter " $1 " = " $2 " \t(threshold " th[$1] ") lid '$lid' port '$portnum'\n" 215 echo -n "Error check on lid $lid ($nodename) port $portname: " 220 echo -n "Error check on lid $lid ($nodename) port $portname: "
|
| HD | ibdatacounts.in | 94 if ! lid=`$IBPATH/ibaddr $ca_info -G -L $1 | awk '/failed/{exit -1} {print $3}'`; then 101 lid=$1 109 nodename=`smpquery $ca_info nodedesc $lid | sed -e "s/^Node Description:\.*\(.*\)/\1/"` 111 text="`eval $IBPATH/perfquery $ca_info $lid $portnum`" 140 /^PortSelect/ { if ($2 != '$portnum') {err = err "error: lid '$lid' port " $2 " does not match quer… 156 echo -n "Error on lid $lid ($nodename) port $portname: " 161 echo -n "Error on lid $lid ($nodename) port $portname: "
|
| HD | ibcheckportwidth.in | 76 if ! lid=`$IBPATH/ibaddr $ca_info -G -L $1 | awk '/failed/{exit -1} {print $3}'`; then 83 lid=$1 92 text="`eval $IBPATH/smpquery $ca_info portinfo $lid $portnum`" 107 /^LinkWidthActive/{ if ($2 == "1X") warn = warn "#warn: Link configured as 1X lid '$lid' port '$po… 126 echo -n "Port check lid $lid port $portnum: " 131 echo -n "Port check lid $lid port $portnum: "
|
| HD | ibchecknode.in | 74 if ! lid=`$IBPATH/ibaddr $ca_info -G -L $1 | awk '/failed/{exit -1} {print $3}'`; then 80 lid=$1 90 if $IBPATH/smpquery $ca_info nodeinfo $lid > /dev/null 2>&1 ; then 92 echo -n "Node check lid $lid: " 97 echo -n "Node check lid $lid: "
|
| /NextBSD/contrib/ofed/management/opensm/opensm/ |
| HD | osm_lid_mgr.c | 141 uint16_t lid; in __osm_lid_mgr_validate_db() local 193 for (lid = min_lid; lid <= max_lid; lid++) { in __osm_lid_mgr_validate_db() 195 (&p_mgr->used_lids) > lid) in __osm_lid_mgr_validate_db() 198 (&p_mgr->used_lids, lid))) { in __osm_lid_mgr_validate_db() 204 lid, p_item->guid); in __osm_lid_mgr_validate_db() 220 for (lid = min_lid; lid <= max_lid; lid++) in __osm_lid_mgr_validate_db() 222 lid, (void *)1); in __osm_lid_mgr_validate_db() 293 static uint16_t __osm_trim_lid(IN uint16_t lid) in __osm_trim_lid() argument 295 if ((lid > IB_LID_UCAST_END_HO) || (lid < IB_LID_UCAST_START_HO)) in __osm_trim_lid() 297 return lid; in __osm_trim_lid() [all …]
|
| HD | osm_ucast_file.c | 56 static uint16_t remap_lid(osm_opensm_t * p_osm, uint16_t lid, ib_net64_t guid) in remap_lid() argument 67 return lid; in remap_lid() 71 if (min_lid <= lid && lid <= max_lid) in remap_lid() 72 return lid; in remap_lid() 75 return min_lid + (lid & ((1 << lmc) - 1)); in remap_lid() 79 osm_switch_t * p_sw, uint16_t lid, uint8_t port_num, in add_path() argument 85 new_lid = port_guid ? remap_lid(p_osm, lid, port_guid) : lid; in add_path() 103 new_lid, lid, port_num, cl_ntoh64(port_guid), in add_path() 108 uint16_t lid, ib_net64_t guid, in add_lid_hops() argument 114 new_lid = guid ? remap_lid(p_osm, lid, guid) : lid; in add_lid_hops() [all …]
|
| HD | osm_sa_slvl_record.c | 83 uint16_t lid; in __osm_sa_slvl_create() local 97 lid = p_physp->port_info.base_lid; in __osm_sa_slvl_create() 99 lid = osm_node_get_base_lid(p_physp->p_node, 0); in __osm_sa_slvl_create() 105 cl_ntoh16(lid), osm_physp_get_port_num(p_physp), in_port_idx); in __osm_sa_slvl_create() 109 p_rec_item->rec.lid = lid; in __osm_sa_slvl_create() 273 cl_ntoh16(p_rcvd_rec->lid), in osm_slvl_rec_rcv_process() 286 osm_get_port_by_base_lid(sa->p_subn, p_rcvd_rec->lid, in osm_slvl_rec_rcv_process() 292 cl_ntoh16(p_rcvd_rec->lid)); in osm_slvl_rec_rcv_process()
|
| HD | osm_sa_vlarb_record.c | 83 uint16_t lid; in __osm_sa_vl_arb_create() local 97 lid = p_physp->port_info.base_lid; in __osm_sa_vl_arb_create() 99 lid = osm_node_get_base_lid(p_physp->p_node, 0); in __osm_sa_vl_arb_create() 105 cl_ntoh16(lid), osm_physp_get_port_num(p_physp), block); in __osm_sa_vl_arb_create() 109 p_rec_item->rec.lid = lid; in __osm_sa_vl_arb_create() 289 cl_ntoh16(p_rcvd_rec->lid), in osm_vlarb_rec_rcv_process() 303 osm_get_port_by_base_lid(sa->p_subn, p_rcvd_rec->lid, in osm_vlarb_rec_rcv_process() 309 cl_ntoh16(p_rcvd_rec->lid)); in osm_vlarb_rec_rcv_process()
|
| HD | osm_sa_pkey_record.c | 76 uint16_t lid; in __osm_sa_pkey_create() local 90 lid = p_physp->port_info.base_lid; in __osm_sa_pkey_create() 92 lid = osm_node_get_base_lid(p_physp->p_node, 0); in __osm_sa_pkey_create() 98 cl_ntoh16(lid), osm_physp_get_port_num(p_physp), block); in __osm_sa_pkey_create() 102 p_rec_item->rec.lid = lid; in __osm_sa_pkey_create() 302 cl_ntoh16(p_rcvd_rec->lid), in osm_pkey_rec_rcv_process() 314 status = osm_get_port_by_base_lid(sa->p_subn, p_rcvd_rec->lid, in osm_pkey_rec_rcv_process() 320 cl_ntoh16(p_rcvd_rec->lid)); in osm_pkey_rec_rcv_process()
|
| HD | osm_dump.c | 302 uint16_t lid; in dump_lid_matrix() local 307 for (lid = 1; lid <= max_lid; lid++) { in dump_lid_matrix() 309 if (osm_switch_get_least_hops(p_sw, lid) == OSM_NO_PATH) in dump_lid_matrix() 311 fprintf(file, "0x%04x:", lid); in dump_lid_matrix() 314 osm_switch_get_hop_count(p_sw, lid, port)); in dump_lid_matrix() 315 p_port = cl_ptr_vector_get(&p_osm->subn.port_lid_tbl, lid); in dump_lid_matrix() 330 uint16_t lid; in dump_ucast_lfts() local 337 for (lid = 0; lid <= max_lid; lid++) { in dump_ucast_lfts() 339 port = osm_switch_get_port_by_lid(p_sw, lid); in dump_ucast_lfts() 344 fprintf(file, "0x%04x %03u # ", lid, port); in dump_ucast_lfts() [all …]
|
| HD | osm_sa_lft_record.c | 76 IN ib_net16_t const lid, IN uint16_t const block) in __osm_lftr_rcv_new_lftr() argument 95 block, cl_ntoh16(lid)); in __osm_lftr_rcv_new_lftr() 99 p_rec_item->rec.lid = lid; in __osm_lftr_rcv_new_lftr() 160 cl_ntoh16(p_rcvd_rec->lid), min_lid_ho, max_lid_ho); in __osm_lftr_rcv_by_comp_mask() 162 if (min_lid_ho > cl_ntoh16(p_rcvd_rec->lid) || in __osm_lftr_rcv_by_comp_mask() 163 max_lid_ho < cl_ntoh16(p_rcvd_rec->lid)) in __osm_lftr_rcv_by_comp_mask()
|
| HD | osm_trap_rcv.c | 91 IN uint16_t lid, IN uint8_t num) in get_physp_by_lid_and_num() argument 96 if (lid > cl_ptr_vector_get_size(p_vec)) in get_physp_by_lid_and_num() 99 p_port = (osm_port_t *) cl_ptr_vector_get(p_vec, lid); in get_physp_by_lid_and_num() 116 uint16_t lid; in osm_trap_rcv_aging_tracker_callback() local 126 lid = cl_ntoh16((uint16_t) ((key & 0x0000FFFF00000000ULL) >> 32)); in osm_trap_rcv_aging_tracker_callback() 129 p_physp = get_physp_by_lid_and_num(sm, lid, port_num); in osm_trap_rcv_aging_tracker_callback() 133 port_num, lid); in osm_trap_rcv_aging_tracker_callback() 139 port_num, lid); in osm_trap_rcv_aging_tracker_callback() 203 __osm_trap_get_key(IN uint16_t lid, in __osm_trap_get_key() argument 212 *trap_key = ((uint64_t) port_num << 48) | ((uint64_t) lid << 32) | crc; in __osm_trap_get_key() [all …]
|
| /NextBSD/contrib/ofed/management/libibmad/src/ |
| HD | resolve.c | 57 int lid; in ib_resolve_smlid_via() local 65 mad_decode_field(portinfo, IB_PORT_SMLID_F, &lid); in ib_resolve_smlid_via() 67 return ib_portid_set(sm_id, lid, 0, 0); in ib_resolve_smlid_via() 92 if ((portid->lid = ib_path_query_via(srcport, portid->gid, portid->gid, sm_id, buf)) < 0) in ib_resolve_guid_via() 102 int lid; in ib_resolve_portid_str_via() local 109 lid = strtol(addr_str, 0, 0); in ib_resolve_portid_str_via() 110 if (!IB_LID_VALID(lid)) in ib_resolve_portid_str_via() 112 return ib_portid_set(portid, lid, 0, 0); in ib_resolve_portid_str_via() 127 lid = strtol(addr_str, &routepath, 0); in ib_resolve_portid_str_via() 129 if (!IB_LID_VALID(lid)) in ib_resolve_portid_str_via() [all …]
|
| HD | gs.c | 56 int lid = dest->lid; in pma_query_via() local 58 DEBUG("lid %d port %d", lid, port); in pma_query_via() 60 if (lid == -1) { in pma_query_via() 126 int lid = dest->lid; in performance_reset_via() local 128 DEBUG("lid %d port %d mask 0x%x", lid, port, mask); in performance_reset_via() 130 if (lid == -1) { in performance_reset_via()
|
| /NextBSD/contrib/ofed/management/infiniband-diags/src/ |
| HD | ibtracert.c | 85 int lid; member 147 mad_decode_field(pi, IB_PORT_LID_F, &port->lid); in get_node() 156 switch_lookup(Switch *sw, ib_portid_t *portid, int lid) in switch_lookup() argument 166 if (lid > sw->linearcap && lid > sw->linearFDBtop) in switch_lookup() 169 if (!smp_query(fdb, portid, IB_ATTR_LINEARFORWTBL, lid / 64, timeout)) in switch_lookup() 173 portid2str(portid), lid, sw->fdb[lid % 64]); in switch_lookup() 174 return sw->fdb[lid % 64]; in switch_lookup() 180 return a->portguid == b->portguid || (force && a->lid == b->lid); in sameport() 213 port->lid, port->lid + (1 << port->lmc) - 1, in dump_endnode() 237 port->lid, port->lid + (1 << port->lmc) - 1, in dump_route() [all …]
|
| HD | saquery.c | 137 cl_ntoh16(node_record->lid), in print_node_desc() 154 printf("%d\n", cl_ntoh16(node_record->lid)); in print_node_record() 189 cl_ntoh16(node_record->lid), in print_node_record() 309 cl_ntoh16(p_pir->lid), in dump_portinfo_record() 333 cl_ntoh16(pir->lid), pir->port_num, pir->resv, buf2); in dump_one_portinfo_record() 597 cl_ntoh16(slvl->lid), slvl->in_port_num, slvl->out_port_num, in dump_one_slvl_record() 617 cl_ntoh16(vlarb->lid), vlarb->port_num, vlarb->block_num); in dump_one_vlarb_record() 647 cl_ntoh16(pktr->lid), pktr->port_num, pktr->block_num); in dump_one_pkey_tbl_record() 666 "\t\tLFT:\n\t\tLID\tPort Number\n", cl_ntoh16(lftr->lid), block); in dump_one_lft_record() 684 cl_ntoh16(mftr->lid), position, block); in dump_one_mft_record() [all …]
|
| /NextBSD/contrib/ofed/management/opensm/osmtest/ |
| HD | osmt_slvl_vl_arb.c | 71 cl_ntoh16(p_rec->lid), in osmtest_write_vl_arb_table() 97 IN ib_net16_t const lid, in osmt_query_vl_arb() argument 111 cl_ntoh16(lid), port_num); in osmt_query_vl_arb() 126 record.lid = lid; in osmt_query_vl_arb() 216 p_src_port->rec.lid, 0, in osmt_query_all_ports_vl_arb() 222 cl_ntoh16(p_src_port->rec.lid), in osmt_query_all_ports_vl_arb() 232 p_src_port->rec.lid, in osmt_query_all_ports_vl_arb() 239 cl_ntoh16(p_src_port->rec.lid), in osmt_query_all_ports_vl_arb() 275 cl_ntoh16(p_rec->lid), in osmtest_write_slvl_map_table() 298 IN ib_net16_t const lid, in osmt_query_slvl_map() argument [all …]
|
| HD | osmtest.c | 70 ib_net16_t lid; member 798 IN ib_net16_t const lid, in osmtest_get_node_rec_by_lid() argument 810 "Getting node record for LID 0x%02X\n", cl_ntoh16(lid)); in osmtest_get_node_rec_by_lid() 823 record.lid = lid; in osmtest_get_node_rec_by_lid() 1070 IN ib_net16_t const lid, in osmtest_get_port_rec() argument 1082 cl_ntoh16(lid)); in osmtest_get_port_rec() 1095 record.lid = lid; in osmtest_get_port_rec() 1144 IN ib_net16_t const lid, in osmtest_get_port_rec_by_num() argument 1158 cl_ntoh16(lid), port_num); in osmtest_get_port_rec_by_num() 1171 record.lid = lid; in osmtest_get_port_rec_by_num() [all …]
|
| /NextBSD/contrib/ofed/libibverbs/fixes/ |
| HD | rocee_examples.patch | 44 printf("\t\t\tport_lid:\t\t%d\n", port_attr.lid); 67 return attr.lid; 122 int lid; 166 - sprintf(msg, "%04x:%06x:%06x", my_dest->lid, my_dest->qpn, my_dest->psn); 168 + sprintf(msg, "%04x:%06x:%06x:%s", my_dest->lid, my_dest->qpn, my_dest->psn, gid); 176 - sscanf(msg, "%x:%x:%x", &rem_dest->lid, &rem_dest->qpn, &rem_dest->psn); 177 + sscanf(msg, "%x:%x:%x:%s", &rem_dest->lid, &rem_dest->qpn, &rem_dest->psn, gid); 209 - sscanf(msg, "%x:%x:%x", &rem_dest->lid, &rem_dest->qpn, &rem_dest->psn); 210 + sscanf(msg, "%x:%x:%x:%s", &rem_dest->lid, &rem_dest->qpn, &rem_dest->psn, gid); 221 - sprintf(msg, "%04x:%06x:%06x", my_dest->lid, my_dest->qpn, my_dest->psn); [all …]
|
| /NextBSD/contrib/elftoolchain/libelf/ |
| HD | gelf_symshndx.c | 43 struct _Libelf_Data *ld, *lid; in gelf_getsymshndx() local 46 lid = (struct _Libelf_Data *) id; in gelf_getsymshndx() 51 if (lid == NULL || (scn = lid->d_scn) == NULL || in gelf_getsymshndx() 96 struct _Libelf_Data *ld, *lid; in gelf_update_symshndx() local 99 lid = (struct _Libelf_Data *) id; in gelf_update_symshndx() 104 if (lid == NULL || (scn = lid->d_scn) == NULL || in gelf_update_symshndx()
|
| /NextBSD/contrib/ofed/management/doc/ |
| HD | diagtools.txt | 9 utilities can operate without accessing the SM, unless GUID to lid translation 54 -s <smlid> use 'smlid' as the target lid for SA queries. 110 for the specified switch LID and the optional lid (mlid) range. 123 ibroute 2 # dump all valid entries of switch lid 2 148 ibtracert 2 23 # show trace between lid 2 and 23 149 ibtracert -m 0xc000 3 5 # show multicast trace between lid 3 and 5 150 for mcast lid 0xc000. 172 smpquery nodeinfo 2 # show nodeinfo for lid 2 173 smpquery portinfo 2 5 # show portinfo for lid 2 port 5 189 smpdump 3 0x15 2 # port info, lid 3 port 2 [all …]
|
| /NextBSD/contrib/ofed/management/infiniband-diags/ |
| HD | README | 9 utilities can operate without accessing the SM, unless GUID to lid translation 54 -s <smlid> use 'smlid' as the target lid for SA queries. 110 for the specified switch LID and the optional lid (mlid) range. 123 ibroute 2 # dump all valid entries of switch lid 2 148 ibtracert 2 23 # show trace between lid 2 and 23 149 ibtracert -m 0xc000 3 5 # show multicast trace between lid 3 and 5 150 for mcast lid 0xc000. 172 smpquery nodeinfo 2 # show nodeinfo for lid 2 173 smpquery portinfo 2 5 # show portinfo for lid 2 port 5 189 smpdump 3 0x15 2 # port info, lid 3 port 2 [all …]
|