From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id 095861B79A for ; Wed, 7 Feb 2018 09:59:28 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 6D51220C90; Wed, 7 Feb 2018 03:59:27 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 07 Feb 2018 03:59:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=KFGunkUElYAV+BZZh t3g2haBN4v87QQAGkSzciBYAbM=; b=o1Nuj92cJWDlyXTHWrF7bhBPSb876LFt9 exk+/d8JPfN7Y2iz/Mju0XLTsKqkWjKw5NMDXq627nUgLOL7k92ExhPPgaZgO9A3 b9u2J0z/O4Fah1bj7HWLkB56MglUZIx1EDhlCpIT36XMtwuZecKXAIRXiVrpqcbk FFwnX6DbnTP2jkUuMdnq9/kL9edE+s1nBbTEXx0PME8V5Sw9pc//XDvik1c8Asvz cXiIuRJgXv7oaLTEk8AKD0v2gLBYdZysyVB6D3CciierS2XJ04TvUVEv2qIw4KDp 1usj0DUJC4cZ1Mytk17eoBrMKcDTa1XrcNFuRv049SvLxuESXicQw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=KFGunkUElYAV+BZZht3g2haBN4v87QQAGkSzciBYAbM=; b=YcbXso/b 4/0SU+PXYuMfPPHjSyuD46x8y14mVVZ0meqnlzkebtnAjGsEfb+eYapbMKIDa2sy FJ2/uo/ip/oGmQrmT0XYVUbA58ZRM5b7M3ERetzszJpV63J9ew52UKZJ7d5T00mt fmICm8NLbEPsrn8/77ycbcTuThsgsrqo8oRIWHkNeN7xdLTkn21McwMIBd+zxZwW TNoB8iF2/Mk+6Iu1PXPf+/Qo6HBpG1vQDpbKq6xjbf5yVSNSuIFVSZWAF+uRN97e voYAyKRLtspu6ANPRElBl0pbWnubxgsXeI8xeazLt3Ok/YWWyhBDo6t9Ny2D6yGh XPJHKq/gR6j6eg== X-ME-Sender: Received: from localhost.localdomain (unknown [182.84.161.100]) by mail.messagingengine.com (Postfix) with ESMTPA id DCDCA240DE; Wed, 7 Feb 2018 03:59:25 -0500 (EST) From: Yuanhan Liu To: Moti Haimovsky Cc: dpdk stable Date: Wed, 7 Feb 2018 16:56:56 +0800 Message-Id: <1517993838-26692-2-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517993838-26692-1-git-send-email-yliu@fridaylinux.org> References: <1517993838-26692-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'bus/vdev: continue probing after a device failure' has been queued to LTS release 17.11.1 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Feb 2018 08:59:28 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/09/18. So please shout if anyone has objections. Thanks. --yliu --- >>From abb25d6009b0fa4f79c89ef7ff4d717038596a6a Mon Sep 17 00:00:00 2001 From: Moti Haimovsky Date: Mon, 5 Feb 2018 19:15:03 +0200 Subject: [PATCH] bus/vdev: continue probing after a device failure [ upstream commit 9576ded31edeee3ca82799bf55db6a5458f44feb ] This commit modifies vdev_probe to continue probing all the devices regardless of device probing failures. Signed-off-by: Moti Haimovsky --- drivers/bus/vdev/vdev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/bus/vdev/vdev.c b/drivers/bus/vdev/vdev.c index fd7736d..ba0ed7a 100644 --- a/drivers/bus/vdev/vdev.c +++ b/drivers/bus/vdev/vdev.c @@ -289,6 +289,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) { @@ -299,11 +300,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 * -- 2.7.4