• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/ofed/libibnetdisc/

Lines Matching refs:fabric

68 ibnd_port_t *ibnd_find_port_dr(ibnd_fabric_t * fabric, char *dr_str);
104 f_int->fabric.maxhops_discovered > scan->cfg->max_hops)
112 f_int->fabric.maxhops_discovered++;
125 f_int->fabric.maxhops_discovered > scan->cfg->max_hops)
141 f_int->fabric.maxhops_discovered)
142 f_int->fabric.maxhops_discovered++;
247 (node == f_int->fabric.from_node && port_num == f_int->fabric.from_portnum))) {
252 node == f_int->fabric.from_node &&
296 (node == f_int->fabric.from_node && port_num == f_int->fabric.from_portnum))) {
301 node == f_int->fabric.from_node &&
374 int rc1 = add_to_portguid_hash(port, f_int->fabric.portstbl);
410 (node == f_int->fabric.from_node && port_num == f_int->fabric.from_portnum))) {
416 node == f_int->fabric.from_node &&
484 int rc1 = add_to_nodeguid_hash(rc, f_int->fabric.nodestbl);
491 rc->next = f_int->fabric.nodes;
492 f_int->fabric.nodes = rc;
548 node = ibnd_find_node_guid(&f_int->fabric, node_guid);
575 f_int->fabric.from_node = node;
576 f_int->fabric.from_portnum = port_num;
614 ibnd_node_t *ibnd_find_node_guid(ibnd_fabric_t * fabric, uint64_t guid)
619 if (!fabric) {
620 IBND_DEBUG("fabric parameter NULL\n");
624 for (node = fabric->nodestbl[hash]; node; node = node->htnext)
631 ibnd_node_t *ibnd_find_node_dr(ibnd_fabric_t * fabric, char *dr_str)
633 ibnd_port_t *rc = ibnd_find_port_dr(fabric, dr_str);
705 ibnd_fabric_t *fabric = &f_int->fabric;
708 node->type_next = fabric->ch_adapters;
709 fabric->ch_adapters = node;
712 node->type_next = fabric->switches;
713 fabric->switches = node;
716 node->type_next = fabric->routers;
717 fabric->routers = node;
810 f_int->fabric.total_mads_used = engine.total_smps;
811 f_int->fabric.maxhops_discovered += scan.initial_hops;
813 if (group_nodes(&f_int->fabric))
820 ibnd_destroy_fabric(&f_int->fabric);
836 void ibnd_destroy_fabric(ibnd_fabric_t * fabric)
842 if (!fabric)
845 ch = fabric->chassis;
851 node = fabric->nodes;
857 destroy_lid2guid((f_internal_t *)fabric);
858 free(fabric);
861 void ibnd_iter_nodes(ibnd_fabric_t * fabric, ibnd_iter_node_func_t func,
866 if (!fabric) {
867 IBND_DEBUG("fabric parameter NULL\n");
876 for (cur = fabric->nodes; cur; cur = cur->next)
880 void ibnd_iter_nodes_type(ibnd_fabric_t * fabric, ibnd_iter_node_func_t func,
886 if (!fabric) {
887 IBND_DEBUG("fabric parameter NULL\n");
898 list = fabric->switches;
901 list = fabric->ch_adapters;
904 list = fabric->routers;
915 ibnd_port_t *ibnd_find_port_lid(ibnd_fabric_t * fabric,
919 f_internal_t *f = (f_internal_t *)fabric;
927 ibnd_port_t *ibnd_find_port_guid(ibnd_fabric_t * fabric, uint64_t guid)
932 if (!fabric) {
933 IBND_DEBUG("fabric parameter NULL\n");
937 for (port = fabric->portstbl[hash]; port; port = port->htnext)
944 ibnd_port_t *ibnd_find_port_dr(ibnd_fabric_t * fabric, char *dr_str)
951 if (!fabric) {
952 IBND_DEBUG("fabric parameter NULL\n");
961 cur_node = fabric->from_node;
984 void ibnd_iter_ports(ibnd_fabric_t * fabric, ibnd_iter_port_func_t func,
990 if (!fabric) {
991 IBND_DEBUG("fabric parameter NULL\n");
1001 for (cur = fabric->portstbl[i]; cur; cur = cur->htnext)