Spdk/lib/env_dpdk
Darek Stojaczyk 0cee787483 pci: prevent surprise DPDK device removal
In DPDK 18.11, a device can be potentially detached not only
upon an SPDK request, but also directly from within the DPDK
itself. In a multi-process scenario, when one process detaches
the PCI device, an IPC message - detach request - will be sent
to every other process in the same shared memory group. As we
don't propagate the removal notification to upper layers, the
still-referenced rte_pci_device object will just disappear at
one moment.

SPDK is still not ready for supporting the above case and will
try to avoid it, but just in case some detach request slips
through, then this patch provides the sanity checks preventing
SPDK from crashing.

Change-Id: I3e35d8efb33085163b9acd8a565e86a4221df844
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/434412
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-12-04 15:41:21 +00:00
..
env_internal.h pci: prevent surprise DPDK device removal 2018-12-04 15:41:21 +00:00
env.c env: drop DPDK 16.07 support 2018-11-30 19:59:34 +00:00
env.mk dpdkbuild: stop building ipsec library with make 2018-10-31 21:55:37 +00:00
init.c env: add --huge-dir option 2018-11-08 23:09:34 +00:00
Makefile env: add pci_virtio.c 2017-09-26 14:28:24 -04:00
memory.c memory: fix contiguous memory calculation for unaligned buffers 2018-11-29 15:16:13 +00:00
pci_ioat.c env: drop DPDK 16.07 support 2018-11-30 19:59:34 +00:00
pci_nvme.c env: drop DPDK 16.07 support 2018-11-30 19:59:34 +00:00
pci_virtio.c env: drop DPDK 16.07 support 2018-11-30 19:59:34 +00:00
pci.c pci: prevent surprise DPDK device removal 2018-12-04 15:41:21 +00:00
threads.c env: drop DPDK 16.07 support 2018-11-30 19:59:34 +00:00
vtophys.c env: drop DPDK 16.07 support 2018-11-30 19:59:34 +00:00