numam-spdk/lib/env_dpdk
Darek Stojaczyk 07042bdeb1 env/dpdk: remove the fake rte_bus
This practically reverts commit 2fe7aa5e4 [1].

The extra rte_bus was supposed to allow running SPDK
as a non-priviledged user by enabling RTE_IOVA_VA mode.
DPDK uses RTE_IOVA_PA by default - which means there are
physical addresses used as memseg IOVAs and hence the
root access is required to retrieve those physical
addresses. This patch was supposed to be paired with
a different DPDK patch of mine, but DPDK rejected that
one. Instead, in DPDK 18.11+ the user can force iova mode
by specifying --iova-mode=<mode> command line option,
where <mode> is either pa or va.

Either way, apparently there are cases where physical
address contiguity is required even without UIO (#707)
so let's revert this patch and consistently stick with
RTE_IOVA_PA.

SPDK requires some more effort to support running as
a non-priviledged user anyway.

Fixes #707

[1] env_dpdk/vtophys: register a fake rte_bus supporting RTE_IOVA_VA

Change-Id: I90bf097fd6a7f129444229dc7cf07a462d4f2d09
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/448121
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
2019-03-18 16:36:40 +00:00
..
env_internal.h env/dpdk: remove rte_pci_bus extern declaration 2019-02-06 20:22:16 +00:00
env.c OCF: use rte_pause in wait loop 2019-01-28 19:24:13 +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