pci: probe only devices without any driver
authorBen Walker <benjamin.walker@intel.com>
Tue, 25 Oct 2016 21:50:40 +0000 (14:50 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 6 Nov 2016 21:58:08 +0000 (22:58 +0100)
commitd9dd34bc8a70e80fdac3f4da45ad987e614a1154
treea9d54de9842cf1e1fe58d766eaaa3ae6f48a3bac
parent545f16daf6867640261fe7bd263c777a8c61a3c1
pci: probe only devices without any driver

If the user asks to probe multiple times, the probe
callback should only be called on devices that don't have
a driver already loaded.

This is useful if a driver is registered after the
execution of a program has started and the list of devices
needs to be re-scanned.

Signed-off-by: Ben Walker <benjamin.walker@intel.com>
lib/librte_eal/common/eal_common_pci.c