Spdk/lib/env_dpdk
Ben Walker cf450c0d7c env: Add spdk_mem_reserve
The spdk_mem_reserve() function reserves a memory region in SPDK's
memory maps. This pre-allocates all of the required data structures
to hold memory address translations for that region without actually
populating the region.

After a region is reserved, calls to spdk_mem_register() for
addresses in that range will not require any internal memory
allocations. This is useful when overlaying a custom memory allocator
on top of SPDK's hugepage memory, such as tcmalloc.

Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Change-Id: Ia4e8a770e8b5c956814aa90e9119013356dfab46
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2511
Community-CI: Mellanox Build Bot
Community-CI: Broadcom CI
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
2020-05-20 14:14:21 +00:00
..
env_internal.h lib/env_dpdk: remove spdk prefix from internal functions. 2020-04-22 09:21:55 +00:00
env.c env: add a new function for printing memory layout 2019-12-13 11:05:57 +00:00
env.mk dpdkbuild: build and link with rte_hash if RAID5 is built 2020-03-18 08:02:43 +00:00
init.c lib/env_dpdk: remove spdk prefix from internal functions. 2020-04-22 09:21:55 +00:00
Makefile lib/idxd: add low level idxd library 2020-04-23 15:48:32 +00:00
memory.c env: Add spdk_mem_reserve 2020-05-20 14:14:21 +00:00
pci_idxd.c lib/idxd: add low level idxd library 2020-04-23 15:48:32 +00:00
pci_ioat.c lib/env_dpdk: remove spdk prefix from internal functions. 2020-04-22 09:21:55 +00:00
pci_nvme.c lib/env_dpdk: remove spdk prefix from internal functions. 2020-04-22 09:21:55 +00:00
pci_virtio.c env: add the device ID of virtio device 2020-05-12 08:12:22 +00:00
pci_vmd.c lib/env_dpdk: remove spdk prefix from internal functions. 2020-04-22 09:21:55 +00:00
pci.c lib/env_dpdk: remove spdk prefix from internal functions. 2020-04-22 09:21:55 +00:00
spdk_env_dpdk.map module/idxd: accel framework plug-in for idxd 2020-04-23 15:48:32 +00:00
threads.c env: drop DPDK 16.07 support 2018-11-30 19:59:34 +00:00