From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] app/pdump: check for ports Date: Mon, 23 Apr 2018 01:13:28 +0200 Message-ID: <7124290.kCCu9OWjhV@xps> References: <1519662622-10011-1-git-send-email-vipin.varghese@intel.com> <1519626158-10519-1-git-send-email-vipin.varghese@intel.com> <3AEA2BF9852C6F48A459DA490692831F2A2A4920@irsmsx110.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Pattan, Reshma" , "Mcnamara, John" To: "Varghese, Vipin" Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 3DC881C0B for ; Mon, 23 Apr 2018 01:13:32 +0200 (CEST) In-Reply-To: <3AEA2BF9852C6F48A459DA490692831F2A2A4920@irsmsx110.ger.corp.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" > > In case of application build with shared library mode unless option '-d' is > > passed, poll mode driver for devices is not initialized. Notifying the user just > > after rte_eal_init is pro active way of intimating the user. > > > > Signed-off-by: Vipin Varghese > > --- > > + if (rte_eth_dev_count() == 0) > > + rte_exit(EXIT_FAILURE, "No Ethernet ports - bye\n"); Rebased to the new function rte_eth_dev_count_avail. > Acked-by: Reshma Pattan Applied, thanks