[dpdk-users] [E!] : Re: Problem in dpdk mpool initialization in dpdk20.11

Pinak Tripathy Pinak.Tripathy at exfo.com
Mon Mar 8 12:18:42 CET 2021


Hi David,

Makefile statically linking the libraries. Do I still need to use -d /path/to/librte_mempool_ring.so. I tried this also and error persists.

Do I need to link all the library (*.a) files individually in my Makefile


Below is the snippet of project source Makefile

PC_FILE := $(shell $(PKGCONF) --path libdpdk 2>/dev/null)
PKGCONF ?= pkg-config
CFLAGS += -O3 $(shell $(PKGCONF) --cflags libdpdk)
LDFLAGS_STATIC = $(shell $(PKGCONF) --libs --static libdpdk)

build/$(APP): $(SRCS-y) Makefile  $(PC_FILE) | build
	$(CC) $(CFLAGS) $(SRCS-y) -o $@ $(LDFLAGS)  $(LDFLAGS_STATIC)
	
build:
	@mkdir -p $@

Best Regards,
Pinak


-----Original Message-----
From: David Marchand <david.marchand at redhat.com> 
Sent: Monday, March 8, 2021 3:47 PM
To: Pinak Tripathy <Pinak.Tripathy at exfo.com>
Cc: users at dpdk.org
Subject: [E!] : Re: [dpdk-users] Problem in dpdk mpool initialization in dpdk20.11

On Mon, Mar 8, 2021 at 9:42 AM Pinak Tripathy <Pinak.Tripathy at exfo.com> wrote:
> I am porting the application from dpdk 17.11 to dpdk 20.11 Application 
> uses centos7.9 and melanox 5.2.2 PMD
>
> Below api call works fine in dpdk17.11 but fails in dpdk20.11
>
> rte_pktmbuf_pool_create ("mbuf_pool_0", (4096 * 64 * 16 - 1), 512, 0, RTE_MBUF_DEFAULT_BUF_SIZE) fails with error no 22 (EINVAL)
>               -MBUF: error setting mempool handler
>               -PANIC in app_init_mbuf_pools():
>               -Cannot create mbuf pool on socket 0 (errno=22)
>
> On adding debug trace found that  rte_mempool_ops_table.num_ops =0.
>
> Not sure what is causing this issue. Can you please point out likely cause of this?

This is likely a problem with loading mempool drivers.
Does adding "-d /path/to/librte_mempool_ring.so" to your EAL options help with this issue?


--
David Marchand



More information about the users mailing list