From: Moti Haimovsky Date: Mon, 5 Feb 2018 17:15:03 +0000 (+0200) Subject: bus/vdev: continue probing after a device failure X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9576ded31edeee3ca82799bf55db6a5458f44feb;p=dpdk.git bus/vdev: continue probing after a device failure This commit modifies vdev_probe to continue probing all the devices regardless of device probing failures. Cc: stable@dpdk.org Signed-off-by: Moti Haimovsky --- diff --git a/drivers/bus/vdev/vdev.c b/drivers/bus/vdev/vdev.c index 0c8a6a85e1..e4bc724638 100644 --- a/drivers/bus/vdev/vdev.c +++ b/drivers/bus/vdev/vdev.c @@ -364,6 +364,7 @@ static int vdev_probe(void) { struct rte_vdev_device *dev; + int ret = 0; /* call the init function for each virtual device */ TAILQ_FOREACH(dev, &vdev_device_list, next) { @@ -374,11 +375,11 @@ vdev_probe(void) if (vdev_probe_all_drivers(dev)) { VDEV_LOG(ERR, "failed to initialize %s device\n", rte_vdev_device_name(dev)); - return -1; + ret = -1; } } - return 0; + return ret; } static struct rte_device *