From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh Jain Subject: Re: error in testpmd when CONFIG_RTE_BUILD_SHARED_LIB=y Date: Wed, 12 Apr 2017 10:26:07 +0000 Message-ID: References: <357262EF-AA7B-4064-963E-FF130E4607E6@atomicrules.com> <1675520.qVeAGBHxLM@xps13> <20170412100521.GB20092@bricha3-MOBL3.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Cc: Thomas Monjalon , john miller , "dev@dpdk.org" , "olivier.matz@6wind.com" To: Bruce Richardson Return-path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0080.outbound.protection.outlook.com [104.47.0.80]) by dpdk.org (Postfix) with ESMTP id 04F992E8A for ; Wed, 12 Apr 2017 12:26:27 +0200 (CEST) In-Reply-To: <20170412100521.GB20092@bricha3-MOBL3.ger.corp.intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Bruce Richardson [mailto:bruce.richardson@intel.com] > Sent: Wednesday, April 12, 2017 3:35 PM > To: Shreyansh Jain > Cc: Thomas Monjalon ; john miller > ; dev@dpdk.org; olivier.matz@6wind.com > Subject: Re: [dpdk-dev] error in testpmd when CONFIG_RTE_BUILD_SHARED_LIB= =3Dy >=20 > 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=3Dy > > > > > > 2017-04-11 14:02, john miller: > > > > > > > > We are seeing an issue when running from the head of the master bra= nch > in > > > dpdk-next-net and building with CONFIG_RTE_BUILD_SHARED_LIB=3Dy. Wh= en 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 argumen= t > > > > > > > > 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. How= ever > > > 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 l= ib. > > >=20 > 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. =20 For Ring Mempool as default enabled, +1 >=20 > > 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. >=20 > This should be fixed by always having a mempool driver installed. =20 Agree. Otherwise also, the framework seems to be replying with a valid code 'EINVA= L' for an invalid mempool specified. >=20 > /Bruce