From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from MWHPR03CA0023.namprd03.prod.outlook.com (10.175.133.161) by CY1PR03MB2362.namprd03.prod.outlook.com (10.166.207.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.302.9; Fri, 15 Dec 2017 10:25:43 +0000 Received: from BL2FFO11FD036.protection.gbl (2a01:111:f400:7c09::162) by MWHPR03CA0023.outlook.office365.com (2603:10b6:300:117::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.302.9 via Frontend Transport; Fri, 15 Dec 2017 10:25:43 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD036.mail.protection.outlook.com (10.173.161.132) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.282.5 via Frontend Transport; Fri, 15 Dec 2017 10:25:33 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vBFAPe5i017334; Fri, 15 Dec 2017 03:25:40 -0700 From: Hemant Agrawal To: , CC: Date: Fri, 15 Dec 2017 15:54:41 +0530 Message-ID: <1513333483-4372-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1499170968-23016-1-git-send-email-hemant.agrawal@nxp.com> References: <1499170968-23016-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131578071339665045; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(7966004)(336005)(39380400002)(39860400002)(346002)(396003)(376002)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(2950100002)(50226002)(105606002)(6306002)(53936002)(8936002)(47776003)(106466001)(59450400001)(51416003)(48376002)(86362001)(2906002)(4326008)(81166006)(68736007)(81156014)(76176011)(50466002)(77096006)(36756003)(498600001)(97736004)(53376002)(316002)(110136005)(16586007)(8676002)(104016004)(5660300001)(85426001)(356003)(305945005)(966005); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2362; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD036; 1:BMD/kY7SWNEtQmBRGtRyiq2ukjnb8aiLi5dK+1/JHbLxY72XsHGgx/gx4o34bBwQmxvWiASkbExgB/ho0nlnOyEvMXo5zKSmpVBx9UxsEvP9/t89aNULZXWwzmXiQOL0 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f56864f2-ea46-40d4-8695-08d543a62ce5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4628075)(201703131517081)(2017052603307); SRVR:CY1PR03MB2362; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2362; 3:xc7H2wfI9o4KQ1VuAPKgVB+JJyCnMVPB6AGW3/GcBTAi64tt7i7ZMMWM04CwoaT4PHuUVV64yUxz99ga7Su3kfA81C2OHuv1F9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JuZQ9VDMx8U/blQwfWhMP++1slwdSL503hZ/jmx3iEUq5ryRfLqJ5T/L5Kv0jAhF+AQXRxw4LM51SWuz3w+RJp/9BEcUoi+JtGCHOIuU8Yp9YeR0nHEGJt+iIZiehlqrV4+iH8GMe1JXARa4zkdfyMXUIPP4DbFbAqwsa5TOHCNqQqREpNIdi1MA3iWY7yPxwgoYyOm X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(3231023)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123565025)(20161123556025)(20161123561025)(20161123559100)(20161123563025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(201708071742011); SRVR:CY1PR03MB2362; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CY1PR03MB2362; X-Forefront-PRVS: 05220145DE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2362; 23:O0ObL9cwcJ7qtc1Sx+mqsX5q9G7QyvhWrjJBqakAi?= =?us-ascii?Q?7bIIusamBDHbE6JnYf2sy+uz6PyAxhzMxc+iTqDeWUPbcIV7/VXW69POBNiC?= =?us-ascii?Q?pZlXkornNKnxLwSbC3SFIt8SdVYywAyPAF1apsLehUr+4s5QzHGcJB1NpHWw?= =?us-ascii?Q?vUL+6qh3l0m7ydRzuWUjXtCO39WlnzTxlGqlcY7EAJrBtTJ8b7zfsTGnWwTo?= =?us-ascii?Q?35Nmo9cMtr+XwP0MCyIwtnQnRoe4/Za7fTkkVeq7hBihh0rEVOBMwVAQxWKj?= =?us-ascii?Q?qF55Ea0KLygCKADNbUrN1RM0SYvMpfiCNUJg8pIZyaQhF6OxvbX2Fy95H8bG?= =?us-ascii?Q?Ek05jdkoWjX+9SAfgdbumvCDpTxcAXL8ygHPeLVjz5R4lWEUeaGaf5Nt7Om2?= =?us-ascii?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mc4x9e/CMHJ91+H5xlq37CrMDkuha1Uwat8QtvORGyS67k19PrPoK7yqI9xESvcNt4hzSDFiuV7aQpCvjfxIEQeMWdS3wGZq1JWgoHhUZCzoQQyTDZFh5W3AwVRSbG+aADjzoPkgcou9erX0aVi/8B7Lyr5x80ftuf4MQj2VFSHoJ6w9OYK141Y8+y+QGwbmV1vVxXtU2pFZN3YV96hiYB9Vbb/eDRuq9FQ=; 5:qfv2SnwOhxWwuNYTrUnbIlVXm+9EcQhEB9Xrc+Rjad2bWwBZiwDy7OtEmmhPEjwcKERKkDv86oOIHbTu3g4AcOV/z0p/I1aVFVjle7zpM1DOqF6AFwNGUdpxbTXEOuTZ+nmy/lfcpbT+bwc4lvkuA9nNP0YShuB0Vy1nUqyBRD4=; 24:JrLFnQSFXpKvL88Px7FilzXjbLbcdEf/+DctkJNn0w7cqI7yuv4IJPF59vqtN35v4SNF2gUPUewoixUXLzrtzEuWzPp70OPoP9YTTYYc6W8=; 7:H5M9j3ZQ+qS6usj07BsMmH/fMTyEWe33HF1lrVux9fTZ9sIDIrXpuazdTi7XOxEIjRxzLQdDZA9YKCn2lHHkDTAb7Wod7rid+MKzNDejWwSkaHaNPT2Nue/VLvWT1uF5Qq98gYHer2+ZKk8jWlssLLw1IzOkSQvcLZVz1QWg8ogHpUNB5w0gPBvSs3199JMd3URfDsdBD9enKBHOE8H2LXxezu+yudVfeECnJpIthe6PmDOndiRalRnOqYpQuR/n SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Dec 2017 10:25:33.8105 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f56864f2-ea46-40d4-8695-08d543a62ce5 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2362 Subject: [dpdk-dev] [PATCH 0/2] Dynamic HW Mempool Detection Support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2017 10:25:45 -0000 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