DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] error in testpmd when CONFIG_RTE_BUILD_SHARED_LIB=y
@ 2017-04-11 18:02 john miller
  2017-04-11 19:28 ` Thomas Monjalon
  0 siblings, 1 reply; 19+ messages in thread
From: john miller @ 2017-04-11 18:02 UTC (permalink / raw)
  To: dev


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.

Thank you,
-John

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2017-04-13  6:53 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-11 18:02 [dpdk-dev] error in testpmd when CONFIG_RTE_BUILD_SHARED_LIB=y john miller
2017-04-11 19:28 ` Thomas Monjalon
2017-04-12  4:52   ` Shreyansh Jain
2017-04-12 10:05     ` Bruce Richardson
2017-04-12 10:25       ` Thomas Monjalon
2017-04-12 11:40         ` Neil Horman
2017-04-12 10:26       ` Shreyansh Jain
2017-04-12 10:32         ` Ananyev, Konstantin
2017-04-12 10:33         ` Shreyansh Jain
2017-04-12 10:38           ` Bruce Richardson
2017-04-12 10:42             ` Bruce Richardson
2017-04-12 11:02               ` Van Haaren, Harry
2017-04-12 11:02               ` Shreyansh Jain
2017-04-12 11:31                 ` Richardson, Bruce
2017-04-12 12:31                   ` Thomas Monjalon
2017-04-12 19:55                     ` Olivier MATZ
2017-04-13  6:41                       ` Shreyansh Jain
2017-04-13  6:53                         ` Thomas Monjalon
2017-04-12 14:43                 ` Ananyev, Konstantin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).