From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: error in testpmd when CONFIG_RTE_BUILD_SHARED_LIB=y Date: Tue, 11 Apr 2017 21:28:19 +0200 Message-ID: <1675520.qVeAGBHxLM@xps13> References: <357262EF-AA7B-4064-963E-FF130E4607E6@atomicrules.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, olivier.matz@6wind.com, shreyansh.jain@nxp.com To: john miller Return-path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 4DE96532E for ; Tue, 11 Apr 2017 21:28:21 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id w204so15353279wmd.1 for ; Tue, 11 Apr 2017 12:28:21 -0700 (PDT) In-Reply-To: <357262EF-AA7B-4064-963E-FF130E4607E6@atomicrules.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" 2017-04-11 14:02, john miller: > > We are seeing an issue when running from the head of the master branch in dpdk-next-net and building with CONFIG_RTE_BUILD_SHARED_LIB=y. When we run testpmd using -d to point to our PMD we get this error > > EAL: Error - exiting with code: 1 > Cause: Creation of mbuf pool for socket 0 failed: Invalid argument > > This error occurs as a result of the rte mempool ops table having 0 entries. This table is populated from a call to rte_mempool_register_ops(). This function gets called in rte_mempool_ring.c via the static initialization MACRO MEMPOOL_REGISTER_OPS and exists in librte_mempool_ring.so. However this library is not loaded when the rte_eal_init() gets called so the static initializers are not yet loaded. > > I am requesting advice on the proper way to repair this. We should just add a better error message if no mempool driver is available.