DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] How to address the error “MBUF: error setting mempool handler” seen with DPDK 20.11
@ 2021-06-01 20:42 Prashanth Fernando
  2021-06-07 15:37 ` Prashanth Fernando
  0 siblings, 1 reply; 3+ messages in thread
From: Prashanth Fernando @ 2021-06-01 20:42 UTC (permalink / raw)
  To: users

Hi all,

I did a static linking of libdpdk to my application and when I start the application EAL init fails.
Logs:
EAL: Detected 80 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: No legacy callbacks, legacy socket not created
MBUF: error setting mempool handler
EAL: Error - exiting with code: 1
  Cause: Cannot init packet mbuf pool Invalid argument

I installed DPDK-20.11 in my test server, using the following commands.
# meson build
#cd build
#ninja ; ninja install

I built my application Makefile taking l2fwd Makefile as an example, not sure what I am missing.
Looking out for suggestions.

Regards,
Prashanth

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

* Re: [dpdk-users]  How to address the error “MBUF: error setting mempool handler” seen with DPDK 20.11
  2021-06-01 20:42 [dpdk-users] How to address the error “MBUF: error setting mempool handler” seen with DPDK 20.11 Prashanth Fernando
@ 2021-06-07 15:37 ` Prashanth Fernando
  2021-06-07 16:35   ` David Marchand
  0 siblings, 1 reply; 3+ messages in thread
From: Prashanth Fernando @ 2021-06-07 15:37 UTC (permalink / raw)
  To: users

Update:
Had few issues with DPDK 20.11 in Centos-7.


  *   Installing  Mellanox libverbs somehow affects the cflags and ldflags for dpdk libdpdk.pc
  *   pkg-config from the installed target was also incorrect.

Manually updating libdpdk.pc to include the static libraries under -Wl,--whole-archive and -Wl,--no-whole-archive

Regards,
Prashanth

From: Prashanth Fernando
Sent: 02 June 2021 02:12
To: users@dpdk.org
Subject: How to address the error “MBUF: error setting mempool handler” seen with DPDK 20.11

Hi all,

I did a static linking of libdpdk to my application and when I start the application EAL init fails.
Logs:
EAL: Detected 80 lcore(s)
EAL: Detected 2 NUMA nodes
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: Probing VFIO support...
EAL: VFIO support initialized
EAL: No legacy callbacks, legacy socket not created
MBUF: error setting mempool handler
EAL: Error - exiting with code: 1
  Cause: Cannot init packet mbuf pool Invalid argument

I installed DPDK-20.11 in my test server, using the following commands.
# meson build
#cd build
#ninja ; ninja install

I built my application Makefile taking l2fwd Makefile as an example, not sure what I am missing.
Looking out for suggestions.

Regards,
Prashanth


Tata Communications - Public


Tata Communications - Public

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

* Re: [dpdk-users]  How to address the error “MBUF: error setting mempool handler” seen with DPDK 20.11
  2021-06-07 15:37 ` Prashanth Fernando
@ 2021-06-07 16:35   ` David Marchand
  0 siblings, 0 replies; 3+ messages in thread
From: David Marchand @ 2021-06-07 16:35 UTC (permalink / raw)
  To: Prashanth Fernando; +Cc: users

On Mon, Jun 7, 2021 at 5:37 PM Prashanth Fernando
<prashanth.fernando@tatacommunications.com> wrote:
>
> Update:
> Had few issues with DPDK 20.11 in Centos-7.
>
>
>   *   Installing  Mellanox libverbs somehow affects the cflags and ldflags for dpdk libdpdk.pc
>   *   pkg-config from the installed target was also incorrect.
>
> Manually updating libdpdk.pc to include the static libraries under -Wl,--whole-archive and -Wl,--no-whole-archive

This is a known issue with pkg-config 0.27.
See: https://doc.dpdk.org/guides/linux_gsg/sys_reqs.html?highlight=pkg%20config#building-dpdk-applications


-- 
David Marchand


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

end of thread, other threads:[~2021-06-07 16:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-01 20:42 [dpdk-users] How to address the error “MBUF: error setting mempool handler” seen with DPDK 20.11 Prashanth Fernando
2021-06-07 15:37 ` Prashanth Fernando
2021-06-07 16:35   ` David Marchand

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).