From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hemant Agrawal Subject: Re: [PATCH 18/32] net/dpaa2: introducing dpaa2 pmd driver Date: Wed, 7 Dec 2016 15:25:25 +0530 Message-ID: <561c4838-4d8b-cdb4-f1eb-83b4092df5ab@nxp.com> References: <1480875447-23680-1-git-send-email-hemant.agrawal@nxp.com> <1480875447-23680-19-git-send-email-hemant.agrawal@nxp.com> <2023a9a6-f342-8986-7ded-3703b3623a70@intel.com> <2956951.cEfl6HOu1U@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Cc: , , To: Thomas Monjalon , Ferruh Yigit Return-path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0088.outbound.protection.outlook.com [104.47.42.88]) by dpdk.org (Postfix) with ESMTP id D6F5B2BA8 for ; Wed, 7 Dec 2016 10:55:32 +0100 (CET) In-Reply-To: <2956951.cEfl6HOu1U@xps13> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 12/7/2016 2:38 AM, Thomas Monjalon wrote: > 2016-12-06 19:49, Ferruh Yigit: >> On 12/4/2016 6:17 PM, Hemant Agrawal wrote: >>> + if (rte_eal_process_type() == RTE_PROC_PRIMARY) { >>> + eth_dev->data->dev_private = rte_zmalloc( >>> + "ethdev private structure", >>> + eth_drv->dev_private_size, >>> + RTE_CACHE_LINE_SIZE); >>> + if (eth_dev->data->dev_private == NULL) >>> + rte_panic("Cannot allocate memzone for private port" >>> + " data\n"); >> >> Should this error kill all app, or return an error for this PMD that is >> probed. > > It cannot be a question :) > rte_panic() inside libs or drivers is forbidden (and existing ones must > be removed). > I will change it to return an error.