Home
last modified time | relevance | path

Searched refs:drpath (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/ofed/libibmad/
H A Dmad.c86 void *mad_encode(void *buf, ib_rpc_t * rpc, ib_dr_path_t * drpath, void *data) in mad_encode() argument
104 if (!drpath) { in mad_encode()
109 if (drpath->cnt >= IB_SUBNET_PATH_HOPS_MAX) { in mad_encode()
110 IBWARN("dr path with hop count %d", drpath->cnt); in mad_encode()
114 mad_set_field(buf, 0, IB_DRSMP_HOPCNT_F, drpath->cnt); in mad_encode()
116 is_resp ? drpath->cnt + 1 : 0x0); in mad_encode()
136 drpath->drdlid ? drpath->drdlid : 0xffff); in mad_encode()
138 drpath->drslid ? drpath->drslid : 0xffff); in mad_encode()
142 mad_set_array(buf, 0, IB_DRSMP_RPATH_F, drpath->p); in mad_encode()
144 mad_set_array(buf, 0, IB_DRSMP_PATH_F, drpath->p); in mad_encode()
[all …]
H A Dportid.c53 if (portid->drpath.cnt == 0) in portid2portnum()
56 return portid->drpath.p[(portid->drpath.cnt - 1)]; in portid2portnum()
72 if (portid->drpath.cnt) in portid2str()
78 drpath2str(&(portid->drpath), buf + n, sizeof(buf) - n); in portid2str()
H A Dsmp.c69 (portid->drpath.drslid == 0xffff) || in smp_set_status_via()
70 (portid->drpath.drdlid == 0xffff)) in smp_set_status_via()
123 (portid->drpath.drslid == 0xffff) || in smp_query_status_via()
124 (portid->drpath.drdlid == 0xffff)) in smp_query_status_via()
H A Dresolve.c165 if (str2drpath(&portid->drpath, addr_str, 0, 0) < 0) { in ib_resolve_portid_str_via()
192 if (str2drpath(&portid->drpath, routepath, selfportid.lid, 0) < in ib_resolve_portid_str_via()
H A Dmad.h307 ib_dr_path_t drpath; member
1575 MAD_EXPORT void *mad_encode(void *buf, ib_rpc_t * rpc, ib_dr_path_t * drpath,
/freebsd/contrib/ofed/infiniband-diags/src/
H A Dibtracert.c317 if (extend_dpath(&from->drpath, outport) < 0) in find_route()
345 if (from->drpath.cnt > 0) { in find_route()
347 from->drpath.cnt--; in find_route()
351 && extend_dpath(&from->drpath, portnum) < 0) in find_route()
362 from->drpath.p[from->drpath.cnt + 1]; in find_route()
586 leafport = path->drpath.p[path->drpath.cnt]; in find_mcpath()
611 if (from->drpath.cnt > 0) in find_mcpath()
612 path->drpath.cnt--; in find_mcpath()
633 if (extend_dpath(&path->drpath, i) < 0) { in find_mcpath()
649 path->drpath.cnt--; /* restore path */ in find_mcpath()
[all …]
H A Dibportstate.c668 peerportid.drpath.cnt++; in main()
669 if (peerportid.drpath.cnt == IB_SUBNET_PATH_HOPS_MAX) { in main()
673 peerportid.drpath.cnt = 1; in main()
679 peerportid.drpath.drslid = (uint16_t) selfportid.lid; in main()
680 peerportid.drpath.drdlid = 0xffff; in main()
682 peerportid.drpath.p[peerportid.drpath.cnt] = (uint8_t) portnum; in main()
H A Dibmirror.c262 peerportid.drpath.cnt = 1; in get_peer()
263 peerportid.drpath.p[1] = outport; in get_peer()
266 peerportid.drpath.drslid = (uint16_t) selfportid.lid; in get_peer()
267 peerportid.drpath.drdlid = 0xffff; in get_peer()
H A Dibdiag_common.c709 if (str2drpath(&portid->drpath, addr_str, 0, 0) < 0) in resolve_portid_str()
732 if (str2drpath(&portid->drpath, routepath, selfportid.lid, 0) < in resolve_portid_str()
/freebsd/contrib/ofed/libibnetdisc/
H A Dibnetdisc.c113 portid->drpath.p[portid->drpath.cnt] = 0; in retract_dpath()
114 portid->drpath.cnt--; in retract_dpath()
130 portid->drpath.drslid = (uint16_t) scan->selfportid.lid; in extend_dpath()
131 portid->drpath.drdlid = 0xFFFF; in extend_dpath()
134 if (add_port_to_dpath(&portid->drpath, nextport) < 0) { in extend_dpath()
140 if (((unsigned) portid->drpath.cnt - scan->initial_hops) > in extend_dpath()
253 path.drpath.cnt > 1) in mlnx_ext_port_info_err()
302 path.drpath.cnt > 1) in recv_mlnx_ext_port_info()
417 path.drpath.cnt > 1) in recv_port_info()
780 scan.initial_hops = from->drpath.cnt; in ibnd_discover_fabric()
H A Dquery_smp.c147 if (portid->lid <= 0 || portid->drpath.drslid == 0xffff || in issue_smp()
148 portid->drpath.drdlid == 0xffff) in issue_smp()