eal: add function to query device status
authorThomas Monjalon <thomas@monjalon.net>
Tue, 25 Sep 2018 20:55:27 +0000 (22:55 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Oct 2018 23:49:28 +0000 (01:49 +0200)
commit52897e7e702b96e4ff6835ead95075b20f65392b
tree916541ae346f2cb76eabbdb76ef3d486c7aee4a9
parent391797f04208aec3a75efd01bfa368899b2f37db
eal: add function to query device status

The function rte_dev_is_probed() is added in order to improve semantic
and enforce proper check of the probing status of a device.

It will answer this rte_device query:
Is it already successfully probed or not?

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com>
Tested-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/bus/ifpga/ifpga_bus.c
drivers/bus/pci/pci_common.c
drivers/bus/vdev/vdev.c
drivers/bus/vmbus/vmbus_common.c
lib/librte_eal/common/eal_common_dev.c
lib/librte_eal/common/include/rte_dev.h
lib/librte_eal/rte_eal_version.map