numam-spdk/lib/env_dpdk
Darek Stojaczyk f4ba781552 pci: fix config access return codes on BSD
BSD implementation for config access in DPDK seems to
return 0 on success while Linux implementation returns 0
only on failure. The env wrapper was always treating 0 as
an error and caused some of our PCI initialization code
to fail prematurely.

At one point DPDK harmonized this BSD behavior with Linux,
but only for config reads.

Fixes #484

Change-Id: I4ea850ea50f5e667fad28e8125209b21c377a2a3
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/432401
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2018-11-08 23:15:26 +00:00
..
env_internal.h env_dpdk: track PCI devices internally for vtophys 2018-04-02 14:03:05 -04:00
env.c env: Fix spdk_ring creation and access. 2018-09-20 21:51:55 +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: lock global mem_map only when necessary 2018-10-12 16:29:30 +00:00
pci_ioat.c env: register PMDs on associated first probe 2017-03-06 12:44:34 -07:00
pci_nvme.c dpdk/pci: support DPDK 18.08 write combined PCI resources 2018-08-15 17:43:30 +00:00
pci_virtio.c dpdk/pci: support DPDK 18.08 write combined PCI resources 2018-08-15 17:43:30 +00:00
pci.c pci: fix config access return codes on BSD 2018-11-08 23:15:26 +00:00
threads.c env/dpdk: add security checks to spdk_env_get_socket_id() 2018-09-10 17:23:39 +00:00
vtophys.c env_dpdk: spdk_mem_map_translate informs user of translation size. 2018-09-26 20:57:57 +00:00