DPDK patches and discussions
 help / color / mirror / Atom feed
From: Gopakumar Choorakkot Edakkunni <gopakumar.c.e@gmail.com>
To: dev@dpdk.org
Subject: [dpdk-dev] dpdk 16.07, issues with rte_mempool_create and rte_kni_alloc()
Date: Sat, 30 Jul 2016 22:39:33 -0700	[thread overview]
Message-ID: <CABK1yFCOi4WyBhtOdqvA28-cV03_UHPeSu2oz+xx5Mimb0QKiA@mail.gmail.com> (raw)

Hi all,

So 16.07 seems to have an rte_mempool_create() which can allocate items
from multiple memzones (commit d1d914eb), which is awesome and is the
reason I upgraed to 16.07 !!

But .. when I call rte_kni_alloc() with the mempool as parameter, theres a
check in there which says below

    /* KNI currently requires to have only one memory chunk */
    if (mp->nb_mem_chunks != 1)
        goto kni_fail;

And I hit that check because I am allocating a large mempool that happens
to span multiple memzones. I am perfectly fine with allocating a seperate
mempool just for KNI, except that I am unable to find any API or a flag or
some setting which says "create me a mempool that doesnt span memzones",
just so that I can use it with rte_kni_alloc()

Any suggestions will be helpful !

Rgds,
Gopa.

             reply	other threads:[~2016-07-31  5:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-31  5:39 Gopakumar Choorakkot Edakkunni [this message]
2016-08-01 21:19 ` Gopakumar Choorakkot Edakkunni
2016-08-04 16:14   ` Ferruh Yigit
2016-08-10 10:51     ` Ferruh Yigit
2016-08-25 13:51       ` Ferruh Yigit
2016-08-25 14:19         ` Gopakumar Choorakkot Edakkunni

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=CABK1yFCOi4WyBhtOdqvA28-cV03_UHPeSu2oz+xx5Mimb0QKiA@mail.gmail.com \
    --to=gopakumar.c.e@gmail.com \
    --cc=dev@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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).