Searched refs:nifp (Results 1 – 8 of 8) sorted by relevance
| /trueos/sys/net/ |
| HD | netmap_user.h | 85 #define NETMAP_TXRING(nifp, index) _NETMAP_OFFSET(struct netmap_ring *, \ argument 86 nifp, (nifp)->ring_ofs[index] ) 88 #define NETMAP_RXRING(nifp, index) _NETMAP_OFFSET(struct netmap_ring *, \ argument 89 nifp, (nifp)->ring_ofs[index + (nifp)->ni_tx_rings + 1] ) 198 struct netmap_if * const nifp; member 488 struct netmap_if *nifp = NETMAP_IF(d->mem, d->req.nr_offset); in nm_open() local 489 struct netmap_ring *r = NETMAP_RXRING(nifp, ); in nm_open() 491 *(struct netmap_if **)(uintptr_t)&(d->nifp) = nifp; in nm_open() 528 struct netmap_ring *r = NETMAP_TXRING(d->nifp, i); in nm_open() 532 struct netmap_ring *r = NETMAP_RXRING(d->nifp, i); in nm_open() [all …]
|
| HD | vnet.c | 273 struct ifnet *ifp, *nifp; in vnet_destroy() local 286 TAILQ_FOREACH_SAFE(ifp, &V_ifnet, if_link, nifp) { in vnet_destroy()
|
| /trueos/tools/tools/netmap/ |
| HD | bridge.c | 41 tot += nm_ring_space(NETMAP_TXRING(d->nifp, i)); in pkt_queued() 45 tot += nm_ring_space(NETMAP_RXRING(d->nifp, i)); in pkt_queued() 124 rxring = NETMAP_RXRING(src->nifp, si); in move() 125 txring = NETMAP_TXRING(dst->nifp, di); in move() 281 NETMAP_RXRING(pa->nifp, pa->cur_rx_ring)->cur, in main() 286 NETMAP_RXRING(pb->nifp, pb->cur_rx_ring)->cur, in main() 292 struct netmap_ring *rx = NETMAP_RXRING(pa->nifp, pa->cur_rx_ring); in main() 297 struct netmap_ring *rx = NETMAP_RXRING(pb->nifp, pb->cur_rx_ring); in main()
|
| HD | pkt-gen.c | 798 struct netmap_if *nifp = targ->nmd->nifp; in pinger_body() local 818 struct netmap_ring *ring = NETMAP_TXRING(nifp, 0); in pinger_body() 849 ring = NETMAP_RXRING(nifp, i); in pinger_body() 906 struct netmap_if *nifp = targ->nmd->nifp; in ponger_body() local 927 txring = NETMAP_TXRING(nifp, 0); in ponger_body() 932 rxring = NETMAP_RXRING(nifp, i); in ponger_body() 1053 struct netmap_if *nifp; in sender_body() local 1115 nifp = targ->nmd->nifp; in sender_body() 1149 txring = NETMAP_TXRING(nifp, i); in sender_body() 1176 txring = NETMAP_TXRING(nifp, i); in sender_body() [all …]
|
| /trueos/sys/dev/netmap/ |
| HD | netmap.c | 870 struct netmap_if *nifp; in netmap_if_new() local 894 nifp = netmap_mem_if_new(na); in netmap_if_new() 895 if (nifp == NULL) in netmap_if_new() 898 return (nifp); in netmap_if_new() 987 netmap_do_unregif(struct netmap_priv_d *priv, struct netmap_if *nifp) in netmap_do_unregif() argument 1025 netmap_mem_if_delete(na, nifp); in netmap_do_unregif() 1937 struct netmap_if *nifp = NULL; in netmap_do_regif() local 1956 nifp = netmap_if_new(na); in netmap_do_regif() 1957 if (nifp == NULL) { /* allocation failed */ in netmap_do_regif() 1973 netmap_do_unregif(priv, nifp); in netmap_do_regif() [all …]
|
| HD | netmap_mem2.c | 1467 struct netmap_if *nifp; in netmap_mem_if_new() local 1482 nifp = netmap_if_malloc(na->nm_mem, len); in netmap_mem_if_new() 1483 if (nifp == NULL) { in netmap_mem_if_new() 1489 *(u_int *)(uintptr_t)&nifp->ni_tx_rings = na->num_tx_rings; in netmap_mem_if_new() 1490 *(u_int *)(uintptr_t)&nifp->ni_rx_rings = na->num_rx_rings; in netmap_mem_if_new() 1491 strncpy(nifp->ni_name, na->name, (size_t)IFNAMSIZ); in netmap_mem_if_new() 1498 base = netmap_if_offset(na->nm_mem, nifp); in netmap_mem_if_new() 1500 *(ssize_t *)(uintptr_t)&nifp->ring_ofs[i] = in netmap_mem_if_new() 1504 *(ssize_t *)(uintptr_t)&nifp->ring_ofs[i+ntx] = in netmap_mem_if_new() 1510 return (nifp); in netmap_mem_if_new() [all …]
|
| HD | netmap_vale.c | 2264 struct netmap_if *nifp; in netmap_bwrap_bdg_ctl() local 2278 nifp = netmap_do_regif(npriv, na, nmr->nr_ringid, nmr->nr_flags, &error); in netmap_bwrap_bdg_ctl() 2279 if (!nifp) { in netmap_bwrap_bdg_ctl()
|
| /trueos/usr.sbin/ifmcstat/ |
| HD | ifmcstat.c | 335 struct ifnet *ifp, *nifp, ifnet; in ifmcstat_kvm() local 353 nifp = ifnet.if_link.tqe_next; in ifmcstat_kvm() 367 ifp = nifp; in ifmcstat_kvm()
|