[dpdk-dev] [RFC 2/7] mbuf: use helper to create the pool
olivier.matz at 6wind.com
Tue Jan 31 11:31:58 CET 2017
On Mon, 16 Jan 2017 21:00:37 +0530, Santosh Shukla
<santosh.shukla at caviumnetworks.com> wrote:
> Hi Olivier,
> On Mon, Sep 19, 2016 at 03:42:42PM +0200, Olivier Matz wrote:
> > When possible, replace the uses of rte_mempool_create() with
> > the helper provided in librte_mbuf: rte_pktmbuf_pool_create().
> > This is the preferred way to create a mbuf pool.
> > By the way, akso update the documentation.
> I am working on ext-mempool pmd driver for cvm soc.
> So interested in this thread.
> Wondering why this thread not followed up, is it
> because we don't want to deprecate rte_mempool_create()?
> Or if we want to then in which release you are targeting.
It seems that the RFC patchset was not the proper way to fix the issue.
On the other hand, this particular patch should be integrated, as
highlighted by Hemant too. Thanks for reminding it.
> Beside that some high level comment -
> - Your changeset missing mempool test application i.e..
> test_mempool.c/ test_mempool_perf.c; Do you plan to accomodate them?
As answered in the other thread, I think there is nothing to change
in test_mempool*.c, since this patch is just about mbuf pools.
> - ext-mempool does not necessarily need MBUF_CACHE_SIZE. Let HW-mngr
> to directly handover buffer to application; Rather caching same
> buffer per core way. It will save some cycles. What do you think?
It's still possible to set the cache size to 0. In that case, it will
directly call rte_mempool_ops_dequeue_bulk(). But, given the function
call to ops->dequeue() and the few tests, it is probably faster to use
the cache, even with a fast hw allocation.
> - I figured out that ext-mempool API not mapping well on cvm hw; For
> few reason:
> Lets say application calls:
> --> rte_mempool_create_empty()
> --> rte_mempool_ops_byname()
> --> rte_mempool_populate_default()
> -->> rte_mempool_ops_alloc()
> --> ext-mempool-specific-pool-create handle
I'm answering in the other thread.
More information about the dev