From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 86D5E5958 for ; Thu, 30 Oct 2014 13:15:01 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP; 30 Oct 2014 05:23:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="408461364" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by FMSMGA003.fm.intel.com with ESMTP; 30 Oct 2014 05:15:32 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id s9UCNeo3005625 for ; Thu, 30 Oct 2014 12:23:40 GMT Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id s9UCNdcQ029355 for ; Thu, 30 Oct 2014 12:23:39 GMT Received: (from pdelarax@localhost) by sivswdev02.ir.intel.com with id s9UCNdGe029351 for dev@dpdk.org; Thu, 30 Oct 2014 12:23:39 GMT From: Pablo de Lara To: dev@dpdk.org Date: Thu, 30 Oct 2014 12:23:39 +0000 Message-Id: <1414671819-29319-1-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] eal/bsd: fix return value when mapping device resources in secondary process X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2014 12:15:02 -0000 On FreeBSD, when initializing a secondary process, EAL was complaining if there were ports not bound to nic_uio module, exiting the application, which should not happen, as this is expected behaviour, and not an error Signed-off-by: Pablo de Lara --- lib/librte_eal/bsdapp/eal/eal_pci.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/librte_eal/bsdapp/eal/eal_pci.c b/lib/librte_eal/bsdapp/eal/eal_pci.c index 54fcaf0..74ecce7 100644 --- a/lib/librte_eal/bsdapp/eal/eal_pci.c +++ b/lib/librte_eal/bsdapp/eal/eal_pci.c @@ -183,7 +183,7 @@ pci_uio_map_secondary(struct rte_pci_device *dev) } RTE_LOG(ERR, EAL, "Cannot find resource for device\n"); - return -1; + return 1; } /* map the PCI resource of a PCI device in virtual memory */ -- 1.7.4.1