numam-dpdk/lib
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
..
librte_acl acl: fix build with some arm64 compiler 2019-06-12 00:07:13 +09:00
librte_bbdev enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_bitratestats bitrate: fix unchecked return value 2019-04-23 00:19:06 +02:00
librte_bpf enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_cfgfile cfgfile: replace strcat with strlcat 2019-04-05 14:48:15 +02:00
librte_cmdline replace snprintf with strlcpy without adding extra include 2019-04-04 22:45:54 +02:00
librte_compressdev enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_cryptodev enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_distributor doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
librte_eal eal: fix positive error codes from probe/remove 2019-06-29 21:28:38 +02:00
librte_efd doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
librte_ethdev enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_eventdev enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_flow_classify enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_gro net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00
librte_gso net: add rte prefix to UDP structure 2019-05-24 13:34:46 +02:00
librte_hash enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_ip_frag enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_ipsec enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_jobstats replace snprintf with strlcpy 2019-04-04 22:46:05 +02:00
librte_kni enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_kvargs remove experimental tags from all symbol definitions 2019-06-29 19:04:43 +02:00
librte_latencystats doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
librte_lpm doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
librte_mbuf enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_member replace snprintf with strlcpy 2019-04-04 22:46:05 +02:00
librte_mempool doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
librte_meter enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_metrics metrics: disallow null as metric name 2018-07-26 20:30:18 +02:00
librte_net enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_pci pci: fix parsing of address without function number 2018-11-13 17:59:42 +01:00
librte_pdump ipc: handle unsupported IPC in action register 2019-06-05 11:27:36 +02:00
librte_pipeline enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_port net: add rte prefix to IP defines 2019-05-24 13:34:46 +02:00
librte_power enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_rawdev doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
librte_rcu enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_reorder doc: fix spelling reported by aspell in comments 2019-05-03 00:38:14 +02:00
librte_ring ring: remove unnecessary forward declaration 2019-06-04 13:09:51 +02:00
librte_sched enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_security enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_stack enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_table enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_telemetry enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_timer enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
librte_vhost enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
Makefile rcu: add RCU library supporting QSBR mechanism 2019-05-02 01:32:41 +02:00
meson.build build: enable BSD features visibility for FreeBSD 2019-06-26 16:50:33 +02:00