From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id B8E362E8A for ; Wed, 12 Apr 2017 12:05:26 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Apr 2017 03:05:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,190,1488873600"; d="scan'208";a="1154759603" Received: from bricha3-mobl3.ger.corp.intel.com ([10.237.221.140]) by fmsmga002.fm.intel.com with SMTP; 12 Apr 2017 03:05:23 -0700 Received: by (sSMTP sendmail emulation); Wed, 12 Apr 2017 11:05:22 +0100 Date: Wed, 12 Apr 2017 11:05:22 +0100 From: Bruce Richardson To: Shreyansh Jain Cc: Thomas Monjalon , john miller , "dev@dpdk.org" , "olivier.matz@6wind.com" Message-ID: <20170412100521.GB20092@bricha3-MOBL3.ger.corp.intel.com> References: <357262EF-AA7B-4064-963E-FF130E4607E6@atomicrules.com> <1675520.qVeAGBHxLM@xps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Research and =?iso-8859-1?Q?De=ACvel?= =?iso-8859-1?Q?opment?= Ireland Ltd. User-Agent: Mutt/1.8.0 (2017-02-23) Subject: Re: [dpdk-dev] error in testpmd when CONFIG_RTE_BUILD_SHARED_LIB=y 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: Wed, 12 Apr 2017 10:05:27 -0000 On Wed, Apr 12, 2017 at 04:52:47AM +0000, Shreyansh Jain wrote: > > -----Original Message----- > > From: Thomas Monjalon [mailto:thomas.monjalon@6wind.com] > > Sent: Wednesday, April 12, 2017 12:58 AM > > To: john miller > > Cc: dev@dpdk.org; olivier.matz@6wind.com; Shreyansh Jain > > > > Subject: Re: [dpdk-dev] error in testpmd when CONFIG_RTE_BUILD_SHARED_LIB=y > > > > 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. > > "-d" the ring library (rte_mempool_ring) - just like any other shared lib. > I think this is a bug that should be fixed. The user should not need to have to specify a mempool driver just to get testpmd working, so I think the ring handler as default should be compiled in automatically so as to allow regular mempools to just work as before. > This change was done recently to move ring handler into its separate drivers/mempool/ring directory. That also means it no longer is compiled into the librte_mempool. > > > > > We should just add a better error message if no mempool driver is available. > > Yes, that is something to be improved. This should be fixed by always having a mempool driver installed. /Bruce