From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH 18/32] net/dpaa2: introducing dpaa2 pmd driver Date: Tue, 06 Dec 2016 22:08:05 +0100 Message-ID: <2956951.cEfl6HOu1U@xps13> 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, bruce.richardson@intel.com, shreyansh.jain@nxp.com To: Ferruh Yigit , Hemant Agrawal Return-path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 39FAE2BCD for ; Tue, 6 Dec 2016 22:08:08 +0100 (CET) Received: by mail-wm0-f43.google.com with SMTP id g23so143408843wme.1 for ; Tue, 06 Dec 2016 13:08:08 -0800 (PST) In-Reply-To: <2023a9a6-f342-8986-7ded-3703b3623a70@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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).