• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/netmap/

Lines Matching refs:hostna

395 	struct netmap_vp_adapter *vpna, *hostna = NULL;
505 hostna = hw->na_hostvp;
511 hostna = NULL;
523 if (hostna != NULL) {
525 b->bdg_ports[cand2] = hostna;
526 hostna->bdg_port = cand2;
527 hostna->na_bdg = b;
529 nm_prdis("host %p to bridge port %d", hostna, cand2);
1165 struct netmap_vp_adapter *hostna = &bna->host;
1179 if (hostna->na_bdg) {
1182 * in the hostna also
1184 hostna->up.na_lut = na->na_lut;
1212 if (hostna->na_bdg)
1213 netmap_vp_reg(&hostna->up, onoff);
1227 if (hostna->na_bdg) {
1303 struct netmap_adapter *hostna = &bna->host.up;
1339 /* the hostna rings are the host rings of the bwrap.
1341 * hostna
1343 hostna->tx_rings = &na->tx_rings[na->num_tx_rings];
1344 hostna->rx_rings = &na->rx_rings[na->num_rx_rings];
1346 for (i = 0; i < nma_get_nrings(hostna, t); i++) {
1347 NMR(hostna, t)[i]->na = hostna;
1504 struct netmap_adapter *hostna = NULL;
1547 hostna = &bna->host.up;
1550 nm_bound_var(&hostna->num_tx_rings, 1, 1,
1552 nm_bound_var(&hostna->num_rx_rings, 1, 1,
1555 snprintf(hostna->name, sizeof(hostna->name), "%s^", na->name);
1556 hostna->ifp = hwna->ifp;
1559 u_int nr = nma_get_nrings(hostna, t);
1561 nma_set_nrings(hostna, t, nr);
1566 nma_set_ndesc(hostna, t, nma_get_ndesc(hwna, r));
1568 // hostna->nm_txsync = netmap_bwrap_host_txsync;
1569 // hostna->nm_rxsync = netmap_bwrap_host_rxsync;
1570 hostna->nm_mem = netmap_mem_get(na->nm_mem);
1571 hostna->na_private = bna;
1572 hostna->na_vp = &bna->up;
1574 hostna->na_hostvp = &bna->host;
1575 hostna->na_flags = NAF_BUSY; /* prevent NIOCREGIF */
1576 hostna->rx_buf_maxsize = hwna->rx_buf_maxsize;