numam-spdk/lib/env_dpdk
Darek Stojaczyk 55656fb19f env: deprecate phys_addr param in spdk_*malloc()
Historically, all memory returned from spdk_*malloc()
used to be physically contiguous, hence it could be
addressed by offsetting just a single physical address.

Since DPDK dynamic memory management came along, the
above is no longer true. Memory returned from spdk_*malloc()
doesn't have to be physically contiguous anymore. The
phys_addr returned from spdk_*malloc() only applies to
the beginning of the allocated buffer and user can't
possibly know how big that "beginning" is.

The phys_addr parameter in spdk_*malloc() is useless on
its own in most cases and only suggests that the returned
buffer is physically contiguous, which is wrong.

This information can be returned from spdk_vtophys(),
which is the only safe way to retrieve physical addresses.
That's why phys_addr param in spdk_*malloc() is now
deprecated.

Change-Id: I934292f7db28b869b05caca4cb5c68c436e228d4
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/448168
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-03-20 01:06:09 +00:00
..
env_internal.h env/dpdk: remove rte_pci_bus extern declaration 2019-02-06 20:22:16 +00:00
env.c env: deprecate phys_addr param in spdk_*malloc() 2019-03-20 01:06:09 +00:00
env.mk configure: add option not to use the internal rte_vhost copy 2019-03-13 14:26:20 +00:00
init.c env_dpdk: add spdk_env_dpdk_external_init() 2019-03-04 14:00:16 +00:00
Makefile env_dpdk: move vtophys.c contents to memory.c 2019-02-20 16:41:46 +00:00
memory.c env/dpdk: remove the fake rte_bus 2019-03-18 16:36:40 +00:00
pci_ioat.c ioat: add device IDs for new CB-DMA engines 2019-02-26 06:50:52 +00:00
pci_nvme.c pci: remove nvme-specific attach functions 2018-12-07 17:24:19 +00:00
pci_virtio.c pci: remove virtio-specific attach functions 2018-12-07 17:24:19 +00:00
pci.c pci: rescan the bus on device enumeration 2019-01-09 08:23:42 +00:00
threads.c env: drop DPDK 16.07 support 2018-11-30 19:59:34 +00:00