numam-dpdk/app
Ilya Maximets 75b66decdb eal: fix positive error codes from probe/remove
According to API, 'rte_dev_probe()' and 'rte_dev_remove()' must
return 0 or negative error code. Bus code returns positive values
if device wasn't recognized by any driver, so the result of
'bus->plug/unplug()' must be converted. 'local_dev_probe()' and
'local_dev_remove()' also has their internal API, so the conversion
should be done there.

Positive on remove means that device not found by driver.
Positive on probe means that there are no suitable buses/drivers,
i.e. device is not supported.

Users of these API fixed to provide a good example by respecting
DPDK API. This also will allow to catch such issues in the future.

Fixes: a3ee360f44 ("eal: add hotplug add/remove device")
Fixes: 244d513071 ("eal: enable hotplug on multi-process")
Cc: stable@dpdk.org

Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
2019-06-29 21:28:38 +02:00
..
pdump net: add rte prefix to ether structures 2019-05-24 13:34:45 +02:00
proc-info eal: promote some experimental functions as stable 2019-04-21 19:11:37 +02:00
test test/rcu: fix test case 2019-06-29 14:29:52 +02:00
test-acl net: replace IPv4/v6 constants with uppercase name 2019-06-03 16:54:54 +02:00
test-bbdev app/bbdev: replace sprintf with snprintf or strlcpy 2019-04-22 21:32:10 +02:00
test-cmdline app/cmdline: move from test directory 2019-02-26 15:24:11 +01:00
test-compress-perf app/compress-perf: add incompressible data handling 2019-04-02 16:50:24 +02:00
test-crypto-perf app/crypto-perf: check range of socket id 2019-04-18 16:01:28 +02:00
test-eventdev net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
test-pipeline net: add rte prefix to IP structure 2019-05-24 13:34:46 +02:00
test-pmd eal: fix positive error codes from probe/remove 2019-06-29 21:28:38 +02:00
Makefile test: move to app directory 2019-02-26 15:29:27 +01:00
meson.build build: enable BSD features visibility for FreeBSD 2019-06-26 16:50:33 +02:00