diff options
| author | Vincenzo Maffione <vmaffione@FreeBSD.org> | 2018-04-12 07:20:50 +0000 |
|---|---|---|
| committer | Vincenzo Maffione <vmaffione@FreeBSD.org> | 2018-04-12 07:20:50 +0000 |
| commit | 2ff91c175eca50b7d0d9da6b31eae4109c034137 (patch) | |
| tree | 15a4f8847a8cabd782f67326125c48fed4fdd27b /sys/net/netmap_virt.h | |
| parent | 66def52613043a86172a2ebe6feab214258fa2fa (diff) | |
Notes
Diffstat (limited to 'sys/net/netmap_virt.h')
| -rw-r--r-- | sys/net/netmap_virt.h | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/sys/net/netmap_virt.h b/sys/net/netmap_virt.h index 751ae539d982..1b8b26cc9fd3 100644 --- a/sys/net/netmap_virt.h +++ b/sys/net/netmap_virt.h @@ -110,27 +110,9 @@ struct ptnetmap_cfgentry_bhyve { }; /* - * Structure filled-in by the kernel when asked for allocator info - * through NETMAP_POOLS_INFO_GET. Used by hypervisors supporting - * ptnetmap. - */ -struct netmap_pools_info { - uint64_t memsize; /* same as nmr->nr_memsize */ - uint32_t memid; /* same as nmr->nr_arg2 */ - uint32_t if_pool_offset; - uint32_t if_pool_objtotal; - uint32_t if_pool_objsize; - uint32_t ring_pool_offset; - uint32_t ring_pool_objtotal; - uint32_t ring_pool_objsize; - uint32_t buf_pool_offset; - uint32_t buf_pool_objtotal; - uint32_t buf_pool_objsize; -}; - -/* * Pass a pointer to a userspace buffer to be passed to kernelspace for write - * or read. Used by NETMAP_PT_HOST_CREATE and NETMAP_POOLS_INFO_GET. + * or read. Used by NETMAP_PT_HOST_CREATE. + * XXX deprecated */ static inline void nmreq_pointer_put(struct nmreq *nmr, void *userptr) @@ -142,7 +124,7 @@ nmreq_pointer_put(struct nmreq *nmr, void *userptr) static inline void * nmreq_pointer_get(const struct nmreq *nmr) { - const uintptr_t * pp = (const uintptr_t *)&nmr->nr_arg1; + const uintptr_t *pp = (const uintptr_t *)&nmr->nr_arg1; return (void *)*pp; } |
