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

Lines Matching refs:port

63  * Bytes 13-16 - port count
82 * 1 byte - port num A
84 * 1 byte - port num B
95 * 8 bytes - node guid port "owned" by
96 * 1 byte - flag indicating if remote port exists
97 * 8 bytes - port guid remotely connected to
98 * 1 byte - port num remotely connected to
120 ibnd_port_t *port;
289 if (!port_cache->port_stored_to_fabric && port_cache->port)
290 free(port_cache->port);
403 int hash_indx = HASHGUID(port_cache->port->guid) % HTSZ;
416 ibnd_port_t *port = NULL;
427 port = (ibnd_port_t *) malloc(sizeof(ibnd_port_t));
428 if (!port) {
429 IBND_DEBUG("OOM: port\n");
433 memset(port, '\0', sizeof(ibnd_port_t));
435 port_cache->port = port;
440 offset += _unmarshall64(buf + offset, &port->guid);
442 port->portnum = tmp8;
444 port->ext_portnum = tmp8;
445 offset += _unmarshall16(buf + offset, &port->base_lid);
446 offset += _unmarshall8(buf + offset, &port->lmc);
447 offset += _unmarshall_buf(buf + offset, port->info, IB_SMP_DATA_SIZE);
461 free(port);
474 if (port_cache->port->guid == port_cache_key->guid
475 && port_cache->port->portnum == port_cache_key->portnum)
503 IBND_DEBUG("Cache invalid: cannot find port\n");
508 IBND_DEBUG("Cache invalid: duplicate port discovered\n");
512 node->ports[port_cache->port->portnum] = port_cache->port;
518 int rc = add_to_portguid_hash(port_cache->port,
522 " to insert new port guid 0x%016" PRIx64 " to DB\n",
523 port_cache->port->guid);
590 ibnd_port_t *port;
594 port = port_cache->port;
602 port->node = node_cache->node;
609 ("Cache invalid: cannot find remote port\n");
613 port->remoteport = remoteport_cache->port;
615 port->remoteport = NULL;
617 add_to_portlid_hash(port, fabric_cache->f_int->lid2guid);
779 /* save space for port count */
829 * because port entries can be NULL or (in the case of switches)
830 * there is an additional port 0 not accounted for in numports.
845 /* go back and store number of port keys stored */
854 static int _cache_port(int fd, ibnd_port_t * port)
859 offset += _marshall64(buf + offset, port->guid);
860 offset += _marshall8(buf + offset, (uint8_t) port->portnum);
861 offset += _marshall8(buf + offset, (uint8_t) port->ext_portnum);
862 offset += _marshall16(buf + offset, port->base_lid);
863 offset += _marshall8(buf + offset, port->lmc);
864 offset += _marshall_buf(buf + offset, port->info, IB_SMP_DATA_SIZE);
865 offset += _marshall64(buf + offset, port->node->guid);
866 if (port->remoteport) {
868 offset += _marshall64(buf + offset, port->remoteport->guid);
869 offset += _marshall8(buf + offset, (uint8_t) port->remoteport->portnum);
889 ibnd_port_t *port = NULL;
941 port = fabric->portstbl[i];
942 while (port) {
943 port_next = port->htnext;
945 if (_cache_port(fd, port) < 0)
949 port = port_next;