numam-dpdk/drivers/net/failsafe
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
..
failsafe_args.c net: add rte prefix to ether defines 2019-05-24 13:34:45 +02:00
failsafe_eal.c eal: fix positive error codes from probe/remove 2019-06-29 21:28:38 +02:00
failsafe_ether.c eal: fix positive error codes from probe/remove 2019-06-29 21:28:38 +02:00
failsafe_flow.c net/failsafe: switch to flow API object conversion function 2018-10-11 18:53:49 +02:00
failsafe_intr.c net/failsafe: change back-reference from sub-device 2019-03-29 17:25:32 +01:00
failsafe_ops.c net/failsafe: fix reported device info 2019-06-13 23:54:30 +09:00
failsafe_private.h net/failsafe: fix reported device info 2019-06-13 23:54:30 +09:00
failsafe_rxtx.c net/failsafe: fix source port id in Rx packets 2019-04-19 14:51:55 +02:00
failsafe.c eal: fix positive error codes from probe/remove 2019-06-29 21:28:38 +02:00
Makefile build/linux: rename macro from LINUXAPP to LINUX 2019-03-12 17:31:22 +01:00
meson.build build: increase readability via shortcut variables 2019-04-17 18:09:52 +02:00
rte_pmd_failsafe_version.map net/failsafe: add fail-safe PMD 2017-07-19 16:25:42 +03:00