From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hemant Agrawal Subject: [PATCH 0/2] Dynamic HW Mempool Detection Support Date: Fri, 15 Dec 2017 15:54:41 +0530 Message-ID: <1513333483-4372-1-git-send-email-hemant.agrawal@nxp.com> References: <1499170968-23016-1-git-send-email-hemant.agrawal@nxp.com> Mime-Version: 1.0 Content-Type: text/plain Cc: To: , Return-path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0060.outbound.protection.outlook.com [104.47.34.60]) by dpdk.org (Postfix) with ESMTP id A89B5271 for ; Fri, 15 Dec 2017 11:25:44 +0100 (CET) In-Reply-To: <1499170968-23016-1-git-send-email-hemant.agrawal@nxp.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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