/freebsd-current/tools/tools/netmap/ |
H A D | bridge.c | 46 tot += nm_ring_space(NETMAP_RXRING(d->nifp, i)); 58 tot += nm_ring_space(NETMAP_TXRING(d->nifp, i)); 144 rxring = NETMAP_RXRING(src->nifp, si); 145 txring = NETMAP_TXRING(dst->nifp, di); 356 NETMAP_RXRING(pa->nifp, pa->cur_rx_ring)->head, 361 NETMAP_RXRING(pb->nifp, pb->cur_rx_ring)->head, 367 struct netmap_ring *rx = NETMAP_RXRING(pa->nifp, pa->cur_rx_ring); 372 struct netmap_ring *rx = NETMAP_RXRING(pb->nifp, pb->cur_rx_ring);
|
H A D | lb.c | 370 *b = rxport->nmd->nifp->ni_bufs_head; 371 rxport->nmd->nifp->ni_bufs_head = s.buf_idx; 745 rxport->ring = NETMAP_RXRING(rxport->nmd->nifp, 0); 778 for (scan = rxport->nmd->nifp->ni_bufs_head; 796 rxport->nmd->nifp->ni_bufs_head = 0; 829 p->ring = NETMAP_TXRING(p->nmd->nifp, 0); 889 struct netmap_ring *rxring = NETMAP_RXRING(rxport->nmd->nifp, i); 1006 struct netmap_ring *rxring = NETMAP_RXRING(rxport->nmd->nifp, i);
|
H A D | pkt-gen.c | 1387 struct netmap_if *nifp = targ->nmd->nifp; local 1422 struct netmap_ring *ring = NETMAP_TXRING(nifp, targ->nmd->first_tx_ring); 1486 ring = NETMAP_RXRING(nifp, i); 1586 struct netmap_if *nifp = targ->nmd->nifp; local 1616 txring = NETMAP_TXRING(nifp, targ->nmd->first_tx_ring); 1621 rxring = NETMAP_RXRING(nifp, i); 1680 struct netmap_if *nifp; local 1747 nifp 1927 struct netmap_if *nifp; local 3297 struct netmap_if *nifp = g.nmd->nifp; local [all...] |
/freebsd-current/sys/net/ |
H A D | netmap_user.h | 35 * The address of the struct netmap_if, say nifp, is computed from the 39 * nifp = NETMAP_IF(mem, req.nr_nifp); 43 * struct netmap_ring *NETMAP_TXRING(nifp, index) 44 * struct netmap_ring *NETMAP_RXRING(nifp, index) 111 #define NETMAP_TXRING(nifp, index) _NETMAP_OFFSET(struct netmap_ring *, \ 112 nifp, (nifp)->ring_ofs[index] ) 114 #define NETMAP_RXRING(nifp, index) _NETMAP_OFFSET(struct netmap_ring *, \ 115 nifp, (nifp) 273 struct netmap_if * const nifp; member in struct:nm_desc 1017 struct netmap_if *nifp = NETMAP_IF(d->mem, d->req.nr_offset); local [all...] |
H A D | if.c | 480 struct ifnet *ifp, *nifp; local 504 CK_STAILQ_FOREACH_SAFE(ifp, &V_ifnet, if_link, nifp) {
|
/freebsd-current/sys/dev/netmap/ |
H A D | netmap_mem2.c | 268 struct netmap_if *nifp; local 272 nifp = nmd->ops->nmd_if_new(nmd, na, priv); 275 return nifp; 1088 * objects (rings, nifp) 1440 * to native interfaces. In all other cases (nifp, netmap rings 2094 struct netmap_if *nifp; local 2095 ssize_t base; /* handy for relative offsets between rings and nifp */ 2111 nifp = netmap_if_malloc(nmd, len); 2112 if (nifp == NULL) { 2117 *(u_int *)(uintptr_t)&nifp 2160 netmap_mem2_if_delete(struct netmap_mem_d *nmd, struct netmap_adapter *na, struct netmap_if *nifp) argument 2745 struct netmap_if *nifp = NULL; local 2760 netmap_mem_pt_guest_if_delete(struct netmap_mem_d * nmd, struct netmap_adapter *na, struct netmap_if *nifp) argument 2777 struct netmap_if *nifp; local [all...] |
H A D | netmap.c | 1100 /* delete the nifp */ 2562 struct netmap_if *nifp = NULL; local 2647 nifp = netmap_mem_if_new(na, priv); 2648 if (nifp == NULL) { 2672 priv->np_nifp = nifp; 2677 netmap_mem_if_delete(na, nifp); 2782 struct netmap_if *nifp; local 2855 nifp = priv->np_nifp; 2871 *(uint32_t *)(uintptr_t)&nifp->ni_flags |= NI_PRIV_MEM; 2883 &nifp [all...] |
/freebsd-current/lib/libnetmap/ |
H A D | nmport.c | 713 d->nifp = NETMAP_IF(m->mem, d->reg.nr_offset); 715 num_tx = d->reg.nr_tx_rings + d->nifp->ni_host_tx_rings; 716 for (i = 0; i < num_tx && !d->nifp->ring_ofs[i]; i++) 719 for ( ; i < num_tx && d->nifp->ring_ofs[i]; i++) 723 num_rx = d->reg.nr_rx_rings + d->nifp->ni_host_rx_rings; 724 for (i = 0; i < num_rx && !d->nifp->ring_ofs[i + num_tx]; i++) 727 for ( ; i < num_rx && d->nifp->ring_ofs[i + num_tx]; i++) 768 d->nifp = NULL; 856 c->nifp = NULL; 885 ring = NETMAP_TXRING(d->nifp, r [all...] |
H A D | libnetmap.h | 198 struct netmap_if *nifp; /* pointer to the netmap_if */ member in struct:nmport_d
|
/freebsd-current/usr.sbin/bhyve/ |
H A D | net_backend_netmap.c | 142 priv->tx = NETMAP_TXRING(priv->nmd->nifp, 0); 143 priv->rx = NETMAP_RXRING(priv->nmd->nifp, 0);
|
/freebsd-current/usr.sbin/ifmcstat/ |
H A D | ifmcstat.c | 331 struct ifnet *ifp, *nifp, ifnet; local 349 nifp = ifnet.if_link.tqe_next; 363 ifp = nifp;
|
/freebsd-current/sys/netinet/ |
H A D | ip_mroute.c | 752 int nifp; local 799 for (vifi = 0, nifp = 0; vifi < V_numvifs; vifi++) { 802 ifps[nifp++] = V_viftable[vifi].v_ifp; 838 for (vifi = 0; vifi < nifp; vifi++)
|