From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id B530621C33; Sun, 22 Apr 2018 19:13:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 22 Apr 2018 19:13:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=JiTOHIS4SDvo924Z/tx3pIun+o wTICpVQll1qxKACCc=; b=DKNcVHSlHF+LcRuO0EwWzLA6P5dzjLXFR2Gk4PkfJy V575rn2s+JCfggN6YZGQk5DeS/EXu1TkJOfbwzLtWs5l398Y5kvo5LQa0zEu2isI Kfvn9LqbN21PT10tt/EXfJKroKhq25ba8mTY9pY7jjzCzQKdmD8KDKspIGsP+6D7 g= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=JiTOHI S4SDvo924Z/tx3pIun+owTICpVQll1qxKACCc=; b=dnydMQmNwxTB/MoDl03lQ5 Z2vhH7OAR9CLFgblbK184UXMvRfKtNBmB6rV4e4olFXvqYm28C6gEhfBIHgdGwec wGw90BxICaM/aIqNflZT71YZFcmzksqZkodHL3i3xUmK6Ljs5aypkq0PJfGsYWzG o+SBTavkcJfJbtgaNfK3E0OQ8RCQZPOAXydN56wOOqJpqqtu7lMYt+Te6DtgxcNZ SANIkizhmaJZ5e6gVZ+N6PWvpiMK0g0QQ2sqbI6pHTf93EsLZQRr18oYyxAf2B4G zDc+mXutnaUhoLjjgXfrdo7Jt0eIC/hhOkUoQ1Pgh5WyPOfdOGEkof3tsWNYztGw == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id E6CB0E463E; Sun, 22 Apr 2018 19:13:30 -0400 (EDT) From: Thomas Monjalon To: "Varghese, Vipin" Cc: dev@dpdk.org, "Pattan, Reshma" , "Mcnamara, John" Date: Mon, 23 Apr 2018 01:13:28 +0200 Message-ID: <7124290.kCCu9OWjhV@xps> In-Reply-To: <3AEA2BF9852C6F48A459DA490692831F2A2A4920@irsmsx110.ger.corp.intel.com> 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-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v2] app/pdump: check for ports X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Apr 2018 23:13:32 -0000 > > 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