[dpdk-dev] [PATCH 0/2] Dynamic HW Mempool Detection Support

Hemant Agrawal hemant.agrawal at nxp.com
Fri Dec 15 11:24:41 CET 2017


W.r.t the multiple discussions in the past about the ability to
dynamically detect the HW mempool support. [1]

This patch set is another way to solve the issue.

With this patch the specific HW mempool are no longer required to be
specified in the config file at compile. A default active hw mempool
can be detected dynamically and published to default mempools ops
config at run time. Only one type of HW mempool can be active default.

Note that in the current model, HW mempool based devices usages a compile
time flag to define the default MEMPOOL_OPS.
e.g. CONFIG_RTE_MBUF_DEFAULT_MEMPOOL_OPS="dpaa2"

This requies that each type of device maintains it's own dpdk build
config file. Hence, these devices are generally omitted from the standard
build configs and distros.

After this change the platform independent image can detects the underlying
default active hw mempool, if available. This is application agnostic.
e.g. DPAA2 and DPAA are two different NXP platforms,
based on the underlying platform the default ops for mbuf can be dpaa or
dpaa2 or even ring_mp_mc(when dpaa/dpaa2 nics are not being used).

The aim is:
*The same image of an application should work seemlessly on any platform.*

[1]Multiple Pktmbuf mempool support
http://dpdk.org/ml/archives/dev/2017-September/076531.html
[2]Allow application set mempool handle
http://dpdk.org/ml/archives/dev/2017-June/067022.html
Other discussions
[4] http://dpdk.org/dev/patchwork/patch/28596/
[5] http://dpdk.org/ml/archives/dev/2017-September/074489.html
[6] http://dpdk.org/dev/patchwork/patch/27610/

Hemant Agrawal (2):
  mbuf: update default Mempool ops with HW active pool
  dpaa2: register dpaa2 mempool ops as active mempool

 config/defconfig_arm64-dpaa2-linuxapp-gcc |  1 -
 drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c  |  6 ++++++
 drivers/bus/fslmc/portal/dpaa2_hw_pvt.h   |  2 ++
 drivers/mempool/dpaa2/dpaa2_hw_mempool.c  |  2 +-
 lib/librte_mbuf/rte_mbuf.c                | 33 ++++++++++++++++++++++++++++++-
 lib/librte_mbuf/rte_mbuf.h                | 13 ++++++++++++
 6 files changed, 54 insertions(+), 3 deletions(-)

-- 
2.7.4



More information about the dev mailing list