From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0080.outbound.protection.outlook.com [104.47.34.80]) by dpdk.org (Postfix) with ESMTP id 1B9262C57 for ; Mon, 15 Jan 2018 07:12:26 +0100 (CET) Received: from BLUPR0301CA0023.namprd03.prod.outlook.com (2a01:111:e400:5259::33) by SN2PR03MB2367.namprd03.prod.outlook.com (2603:10b6:804:e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Mon, 15 Jan 2018 06:12:24 +0000 Received: from BL2FFO11FD036.protection.gbl (2a01:111:f400:7c09::129) by BLUPR0301CA0023.outlook.office365.com (2a01:111:e400:5259::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Mon, 15 Jan 2018 06:12:24 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; NXP1.onmicrosoft.com; dkim=none (message not signed) header.d=none;NXP1.onmicrosoft.com; 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.345.12 via Frontend Transport; Mon, 15 Jan 2018 06:12:23 +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 w0F6CKAE011776; Sun, 14 Jan 2018 23:12:21 -0700 From: Hemant Agrawal To: CC: , , Date: Mon, 15 Jan 2018 11:41:09 +0530 Message-ID: <1515996674-26338-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513333483-4372-1-git-send-email-hemant.agrawal@nxp.com> References: <1513333483-4372-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131604703441504103; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(396003)(376002)(39860400002)(39380400002)(346002)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(356003)(50226002)(104016004)(8936002)(6916009)(77096006)(16586007)(2950100002)(81156014)(59450400001)(81166006)(36756003)(51416003)(2906002)(54906003)(85426001)(53376002)(76176011)(2351001)(6306002)(86362001)(68736007)(316002)(296002)(47776003)(48376002)(8676002)(105606002)(5660300001)(53936002)(498600001)(106466001)(97736004)(966005)(6666003)(305945005)(50466002)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR03MB2367; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD036; 1:Yv5UFkhWUmxk+xl0jVcbZgY1DqXt2v3asxSWz7nSSAk2g0GC7vBpYKWh1Cd666MqgdJd30+xq+sLgolGBYKSO0VepfWKhnIR8nPTK+LYQQM9+6lBuW5RtFXERWBEsEse MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cd353760-eee2-4263-c767-08d55bdef1dd X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:SN2PR03MB2367; X-Microsoft-Exchange-Diagnostics: 1; SN2PR03MB2367; 3:MEkLDykm76vM/TOvBVdF0xgXyG0nLkIwYzQIR6aWbBWpLHKJWUn731YfLWuOp/HM5UK2aeI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DvvBHvs7BR16Ddu8LprWLVT/3qtLiBijVnsX4IddLfZAL//21SJT0vX0J00xApz/OlyVIBwvDogrMP2ml2IeP5sTf0HvxnUDCT5VbKVGUMyMsq7vinQ5I5VkjXKDs6wgJceecbQYLx/ndgY0+6A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(10201501046)(3231023)(944501161)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123559100)(20161123565025)(20161123563025)(20161123561025)(201703131430075)(201703131520075)(201703131448075)(201703131433075)(201703151042153)(20161123556025)(201708071742011); SRVR:SN2PR03MB2367; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:SN2PR03MB2367; X-Forefront-PRVS: 0553CBB77A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR03MB2367; 23:+yWo96g0QcS1REd7hP+95Tf8SQZbwme3OpH4Or44v?= =?us-ascii?Q?RPYojKPrrdYVchu82hhrFWddcX0I2sxLGlvtnnnUFjpnPx+qAHaqhkd1JlGN?= =?us-ascii?Q?EI7Q4hR4l633SmFVCiemCG2qxMqdpSkKr9blZlKXQHuGyV6kh8ZSL0yqXSLy?= =?us-ascii?Q?xO0JQNhiaeMzotWc9QiDJropn8pw5ytJ564Pd1ESBj44/SUJmtGr4gZFCi3B?= =?us-ascii?Q?HcUc8LUb+dAmLyJKbbUWaq32vU3xscTqjQ7CFyuA0BP+j0o01tTgWtt5Rjzv?= =?us-ascii?Q?iByPiX7u+KJQ/w4NBa+u6fDl0BZHHUh2xfhfMa9/wR/abEcY7HVcsDOFeUXt?= =?us-ascii?Q?zuXXyw+OeyP9cmGz8mMKuvHHVU9VOuoBqx3Gr5Qsw3oGgy6zzGttujFs7DMz?= =?us-ascii?Q?nT7WjfO/OjmWQfzCKY4uE1qIUnU16Lp9j1HKUAezexyZL7zhYiYeD9uDkgcJ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fNPjFKwr10sX2Is0FNAEt8xFrMA/rRBjyFMviFuGXpCV3iBhxuDpak2KyiU0/ue+81OtOAiUh41paM/hMyGA4odEC0HeGbi54QoNRBhjilm8NCK+NMZi/mugkwuIxJIPV4/RDr7/YElwWDiwatLNt1148GlKA370fNP7G1cOj+smAFETJkFXNhyfRPl8Q=; 5:PugjCqdcgjGbt9TfGgyWoJPDoLfoXabFxuJLaVRJjJTpFIrYH3spEve2Jzab2dC+/qQBFyxvh9qMGY5MzoyqckSBuW3426kIAWyPNTLF1p2OXmJsP6b8WguNnlHYjDX8umUf49wH0diMK4FLGPpWi0V87sRRa1Zw8Abv4wQO56g=; 24:Ix9VlLPmJGNXC1YG3VeXh/nbgX1ErnZf/JuG4rxV/G/7h1IP4kkDSgArT0YAwsecD9vQ91F3futLUL+NMRoHW7F5ikDzglIK+VixB3Q0dsw=; 7:++3cKSjliRH4VZb87l0pkGyTYZcLuxOvsQqdKodg8edrEPXWh1UGWU49+uPnYl1PBGBQ8bZAPpBnP5D8bP44wqOLRQbbdj4Id6/3QBRD2Vum1KGgTqL6oOB49XkiBublgaArKN8RYR5ulrSWfVSZvWYoYZOrSyvKSl4ggXRW9XkQKgztpJp3yF9qkBhWRk3h4fkOJ3ncxc2TApJCENaVO3r0r7Z2u9+gpQYuyMAcHsDu0AEgFzV9ey9YiwgQoaAy SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jan 2018 06:12:23.9944 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cd353760-eee2-4263-c767-08d55bdef1dd 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: SN2PR03MB2367 Subject: [dpdk-dev] [PATCH v2 0/5] 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: Mon, 15 Jan 2018 06:12:26 -0000 W.r.t the multiple discussions in the past about the ability to dynamically detect the HW mempool support. [1],[2] & [3] This patchset helps in removing the current static mempool selection model and provides a flexible model to select the pktmbuf mempool in more dynamic way. 1) This patchset updates the hw mempool on the basis of device probe()), thus avoiding the need to specify the hw mempool in config file and focing different binaries for diffirent config architectures. 2) Selection of mempool ops though --mbuf-pool-ops-name (cmd line arg) which can overridden the scheme(1) 3) A new best mempool ops selection logic. 4) A new wrapper for the pktmbuf_pool_create helper to take mempool ops name as an argument as well. *Limitations and open points* It was suggested to add all APIs in librte_mbuf, currently internal_config is storing the mempool_ops names. So internal_config is exported in this patchset. An alternate would be to keep these APIs in eal only and access them indirectly from librte_mbuf. Moreover, this logic can be further extended with addition for following patch, which is still under discussion: The ethdev PMD capability exposed through existing rte_eth_dev_pool_ops_supported() to select the update the mempool ops with some "weight" based algorithm like: http://dpdk.org/dev/patchwork/patch/32245/ ----- [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 [3] http://dpdk.org/ml/archives/dev/2017-December/084775.html ------ Changes in v2: 1. Changed the active mempool to platform mempool 2. Moved all the relavant APIs to librte_mbuf 3. Added pktmbuf_create_pool_specific wrapper in this patch series. Hemant Agrawal (5): eal: prefix mbuf pool ops name with user defined eal: add platform mempool ops name in internal config mbuf: support register mempool Hw ops name APIs mbuf: pktmbuf pool create helper for specific mempool ops mbuf: add user command line config mempools ops API doc/guides/rel_notes/deprecation.rst | 7 +++ lib/librte_eal/bsdapp/eal/eal.c | 4 +- lib/librte_eal/common/eal_common_options.c | 3 +- lib/librte_eal/common/eal_internal_cfg.h | 5 ++- lib/librte_eal/linuxapp/eal/eal.c | 4 +- lib/librte_eal/rte_eal_version.map | 1 + lib/librte_mbuf/Makefile | 1 + lib/librte_mbuf/rte_mbuf.c | 67 ++++++++++++++++++++++++--- lib/librte_mbuf/rte_mbuf.h | 72 ++++++++++++++++++++++++++++++ lib/librte_mbuf/rte_mbuf_version.map | 10 +++++ 10 files changed, 162 insertions(+), 12 deletions(-) -- 2.7.4