Lines Matching defs:path
105 ib_portid_t path;
184 extend_dpath(ib_dr_path_t *path, int nextport)
186 if (path->cnt+2 >= sizeof(path->p))
188 ++path->cnt;
189 path->p[path->cnt] = nextport;
190 return path->cnt;
352 IBWARN("Direct path too long!");
412 new_node(Node *node, Port *port, ib_portid_t *path, int dist)
430 node->path = *path;
491 ib_portid_t *path;
523 path = &node->path;
533 leafport = path->drpath.p[path->drpath.cnt];
544 if (switch_mclookup(node, path, mlid, map) < 0) {
557 path->drpath.cnt--;
562 if (get_port(port, i, path) < 0) {
563 IBWARN("can't reach node %s port %d", portid2str(path), i);
576 if (extend_dpath(&path->drpath, i) < 0)
586 if (get_node(remotenode, remoteport, path) < 0) {
588 portid2str(path), i);
589 path->drpath.cnt--; /* restore path */
599 if ((r = new_node(remotenode, remoteport, path, dist+1)) > 0)
609 path->drpath.cnt--; /* restore path */
704 fprintf(stderr, "\t\t%s 4 16\t\t\t# show path between lids 4 and 16\n", basename);
709 fprintf(stderr, "\t\t%s -m 0xc000 4 16\t# show multicast path of mlid 0xc000 between lids 4 and 16\n", basename);
838 /* first find a direct path to the src port */
860 /* dump multicast path */