From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh Jain Subject: Re: [PATCH v9 13/25] ethdev: convert to eal hotplug Date: Thu, 15 Sep 2016 12:59:29 +0530 Message-ID: <4d5e4a29-0942-d688-3ab3-ca0fb519bd89@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1473257297-7221-1-git-send-email-shreyansh.jain@nxp.com> <1473257297-7221-14-git-send-email-shreyansh.jain@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" , To: David Marchand Return-path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0052.outbound.protection.outlook.com [104.47.42.52]) by dpdk.org (Postfix) with ESMTP id 4E32B569F for ; Thu, 15 Sep 2016 09:29:07 +0200 (CEST) In-Reply-To: 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 Monday 12 September 2016 12:46 PM, David Marchand wrote: > On Wed, Sep 7, 2016 at 4:08 PM, Shreyansh Jain wrote: > > [snip] > >> diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c >> index fdeac86..86c9d1a 100644 >> --- a/lib/librte_ether/rte_ethdev.c >> +++ b/lib/librte_ether/rte_ethdev.c > > [snip] > >> + ret = rte_eal_dev_attach(name, args); >> + if (ret < 0) >> + goto err; >> + >> + /* no point looking at eth_dev_last_created_port if no port exists */ >> + if (!nb_ports) { >> + RTE_LOG(ERR, EAL, "No ports founds for device (%s)\n", name); > > No port found ? Yes, that will be corrected in next version. Thanks. > > -- Shreyansh