DPDK usage discussions
 help / color / mirror / Atom feed
From: Pinak Tripathy <Pinak.Tripathy@exfo.com>
To: David Marchand <david.marchand@redhat.com>
Cc: "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] [E!] : Re: Problem in dpdk mpool initialization in dpdk20.11
Date: Mon, 8 Mar 2021 11:18:42 +0000
Message-ID: <BYAPR11MB27101C1D0BF4D21FEE61E360E9939@BYAPR11MB2710.namprd11.prod.outlook.com> (raw)
In-Reply-To: <CAJFAV8zb0XqWmoEF26+Uf4_5o9JEDvCJ1o62LrvdDZkMuo_TvA@mail.gmail.com>

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@redhat.com> 
Sent: Monday, March 8, 2021 3:47 PM
To: Pinak Tripathy <Pinak.Tripathy@exfo.com>
Cc: users@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@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


  reply	other threads:[~2021-03-08 11:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-08  7:45 [dpdk-users] " Pinak Tripathy
2021-03-08  8:42 ` Pinak Tripathy
2021-03-08 10:16   ` David Marchand
2021-03-08 11:18     ` Pinak Tripathy [this message]
2021-03-08 12:47     ` David Marchand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BYAPR11MB27101C1D0BF4D21FEE61E360E9939@BYAPR11MB2710.namprd11.prod.outlook.com \
    --to=pinak.tripathy@exfo.com \
    --cc=david.marchand@redhat.com \
    --cc=users@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK usage discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/users/0 users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 users users/ https://inbox.dpdk.org/users \
		users@dpdk.org
	public-inbox-index users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.users


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git