Lines Matching full:portid
62 char *check_switch(ib_portid_t * portid, unsigned int *nports, uint64_t * guid, in check_switch() argument
69 if (!smp_query_via(ni, portid, IB_ATTR_NODE_INFO, 0, 0, srcport)) { in check_switch()
74 if (!smp_query_via(nd, portid, IB_ATTR_NODE_DESC, 0, 0, srcport)) in check_switch()
85 if (!smp_query_via(sw, portid, IB_ATTR_SWITCH_INFO, 0, 0, srcport)) in check_switch()
138 char *dump_multicast_tables(ib_portid_t * portid, unsigned startlid, in dump_multicast_tables() argument
152 if ((s = check_switch(portid, &nports, &nodeguid, sw, nd))) in dump_multicast_tables()
184 " (%s):\n", startlid, endlid, portid2str(portid), nodeguid, in dump_multicast_tables()
220 (mft + j, portid, IB_ATTR_MULTICASTFORWTBL, mod, 0, in dump_multicast_tables()
326 char *dump_unicast_tables(ib_portid_t * portid, int startlid, int endlid) in dump_unicast_tables() argument
338 if ((s = check_switch(portid, &nports, &nodeguid, sw, nd))) in dump_unicast_tables()
355 " (%s):\n", startlid, endlid, portid2str(portid), nodeguid, in dump_unicast_tables()
369 if (!smp_query_status_via(lft, portid, IB_ATTR_LINEARFORWTBL, block, in dump_unicast_tables()
424 ib_portid_t portid = { 0 }; in main() local
475 if (resolve_portid_str(ibd_ca, ibd_ca_port, &portid, argv[0], in main()
480 err = dump_multicast_tables(&portid, startlid, endlid); in main()
482 err = dump_unicast_tables(&portid, startlid, endlid); in main()