From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH] eal: don't crash if one pci device fails Date: Thu, 3 Dec 2015 10:02:07 +0000 Message-ID: <20151203100207.GD7972@bricha3-MOBL3> References: <1449106720-30430-1-git-send-email-stephen@networkplumber.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Stephen Hemminger Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 20E41568A for ; Thu, 3 Dec 2015 11:02:10 +0100 (CET) Content-Disposition: inline In-Reply-To: <1449106720-30430-1-git-send-email-stephen@networkplumber.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Dec 02, 2015 at 05:38:40PM -0800, Stephen Hemminger wrote: > If there is a failure to setup one pci device, there maybe other > devices that can be initialized. Don't call rte_exit which > is a forced crash, pass the error back to the > application to decide what it wants to do. > > Might be good idea to return a positive value for the > number of devices found, but that would break ABI. > > Signed-off-by: Stephen Hemminger The return value from this function gets passed back to rte_eal_init() where it will still cause an application to terminate. Therefore, I think the commit message is a little misleading. Otherwise all looks ok to me. Will help weed out multiple device failures on a single pass too. /Bruce