> -----Original Message-----
> From: Thomas Monjalon [mailto:thomas.monja...@6wind.com]
> Sent: Wednesday, April 12, 2017 12:58 AM
> To: john miller <john.mil...@atomicrules.com>
> Cc: dev@dpdk.org; olivier.m...@6wind.com; Shreyansh Jain
> <shreyansh.j...@nxp.com>
> 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.

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.

Reply via email to