Searched refs:nifp (Results 1 - 8 of 8) sorted by relevance

/freebsd-9.3-release/sys/net/
H A Dnetmap_user.h33 * The address of the struct netmap_if, say nifp, is computed from the
37 * nifp = NETMAP_IF(mem, req.nr_nifp);
41 * struct netmap_ring *NETMAP_TXRING(nifp, index)
42 * struct netmap_ring *NETMAP_RXRING(nifp, index)
85 #define NETMAP_TXRING(nifp, index) _NETMAP_OFFSET(struct netmap_ring *, \
86 nifp, (nifp)->ring_ofs[index] )
88 #define NETMAP_RXRING(nifp, index) _NETMAP_OFFSET(struct netmap_ring *, \
89 nifp, (nifp)
197 struct netmap_if * const nifp; member in struct:nm_desc
485 struct netmap_if *nifp = NETMAP_IF(d->mem, d->req.nr_offset); local
[all...]
H A Dvnet.c273 struct ifnet *ifp, *nifp; local
286 TAILQ_FOREACH_SAFE(ifp, &V_ifnet, if_link, nifp) {
/freebsd-9.3-release/tools/tools/netmap/
H A Dbridge.c41 tot += nm_ring_space(NETMAP_TXRING(d->nifp, i));
45 tot += nm_ring_space(NETMAP_RXRING(d->nifp, i));
124 rxring = NETMAP_RXRING(src->nifp, si);
125 txring = NETMAP_TXRING(dst->nifp, di);
281 NETMAP_RXRING(pa->nifp, pa->cur_rx_ring)->cur,
286 NETMAP_RXRING(pb->nifp, pb->cur_rx_ring)->cur,
292 struct netmap_ring *rx = NETMAP_RXRING(pa->nifp, pa->cur_rx_ring);
297 struct netmap_ring *rx = NETMAP_RXRING(pb->nifp, pb->cur_rx_ring);
H A Dpkt-gen.c731 struct netmap_if *nifp = targ->nmd->nifp; local
752 struct netmap_ring *ring = NETMAP_TXRING(nifp, 0);
780 ring = NETMAP_RXRING(nifp, i);
834 struct netmap_if *nifp = targ->nmd->nifp; local
855 txring = NETMAP_TXRING(nifp, 0);
860 rxring = NETMAP_RXRING(nifp, i);
981 struct netmap_if *nifp = targ->nmd->nifp; local
1155 struct netmap_if *nifp = targ->nmd->nifp; local
1815 struct netmap_if *nifp = g.nmd->nifp; local
[all...]
/freebsd-9.3-release/sys/dev/netmap/
H A Dnetmap.c604 struct netmap_if *nifp; local
622 nifp = netmap_mem_if_new(ifname, na);
623 if (nifp == NULL)
626 return (nifp);
708 * The second argument is the nifp to work on. In some cases it is
714 netmap_do_unregif(struct netmap_priv_d *priv, struct netmap_if *nifp) argument
754 /* delete the nifp */
755 netmap_mem_if_delete(na, nifp);
1539 struct netmap_if *nifp = NULL; local
1557 nifp
1627 struct netmap_if *nifp; local
[all...]
H A Dnetmap_mem2.c450 * objects (rings, nifp)
1295 struct netmap_if *nifp; local
1296 ssize_t base; /* handy for relative offsets between rings and nifp */
1310 nifp = netmap_if_malloc(na->nm_mem, len);
1311 if (nifp == NULL) {
1317 *(u_int *)(uintptr_t)&nifp->ni_tx_rings = na->num_tx_rings;
1318 *(u_int *)(uintptr_t)&nifp->ni_rx_rings = na->num_rx_rings;
1319 strncpy(nifp->ni_name, ifname, (size_t)IFNAMSIZ);
1323 * between the ring and nifp, so the information is usable in
1324 * userspace to reach the ring from the nifp
1342 netmap_mem_if_delete(struct netmap_adapter *na, struct netmap_if *nifp) argument
[all...]
H A Dnetmap_vale.c639 struct netmap_if *nifp; local
664 nifp = netmap_do_regif(npriv, na, nmr->nr_ringid, nmr->nr_flags, &error);
665 if (!nifp) {
/freebsd-9.3-release/usr.sbin/ifmcstat/
H A Difmcstat.c335 struct ifnet *ifp, *nifp, ifnet; local
353 nifp = ifnet.if_link.tqe_next;
367 ifp = nifp;

Completed in 110 milliseconds