From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0060.outbound.protection.outlook.com [104.47.33.60]) by dpdk.org (Postfix) with ESMTP id EECE07CCD for ; Fri, 22 Sep 2017 09:13:41 +0200 (CEST) Received: from CY4PR03CA0100.namprd03.prod.outlook.com (10.171.242.169) by DM5PR03MB2698.namprd03.prod.outlook.com (10.168.197.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 22 Sep 2017 07:13:40 +0000 Received: from BY2FFO11FD043.protection.gbl (2a01:111:f400:7c0c::126) by CY4PR03CA0100.outlook.office365.com (2603:10b6:910:4d::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11 via Frontend Transport; Fri, 22 Sep 2017 07:13:40 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.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 BY2FFO11FD043.mail.protection.outlook.com (10.1.14.228) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.35.14 via Frontend Transport; Fri, 22 Sep 2017 07:13:39 +0000 Received: from [10.232.133.65] (B10814-12.ap.freescale.net [10.232.133.65]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v8M7DaHJ027629; Fri, 22 Sep 2017 00:13:37 -0700 To: , References: <1499170968-23016-1-git-send-email-hemant.agrawal@nxp.com> CC: , From: Hemant Agrawal Message-ID: <08774e28-430e-4680-587a-909a5f44c5d6@nxp.com> Date: Fri, 22 Sep 2017 12:43:36 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1499170968-23016-1-git-send-email-hemant.agrawal@nxp.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131505380201562405; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(7966004)(39380400002)(346002)(39860400002)(376002)(2980300002)(1109001)(1110001)(339900001)(377454003)(24454002)(189002)(199003)(85426001)(50466002)(2950100002)(106466001)(105606002)(77096006)(498600001)(86362001)(31696002)(229853002)(83506001)(316002)(33646002)(6306002)(189998001)(104016004)(305945005)(230700001)(4326008)(36756003)(53936002)(5660300001)(2906002)(47776003)(54906003)(110136005)(58126008)(356003)(6246003)(65806001)(68736007)(53376002)(65956001)(8936002)(64126003)(53546010)(50986999)(81166006)(65826007)(23746002)(54356999)(97736004)(76176999)(31686004)(966005)(81156014)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2698; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD043; 1:55G7ROS1KML5FggjOE2Ub4AVovqC+x79PgH/Yc/AcuKQFH+cYCi0ijm0D7OilJ8MczTIU3KG/99xT/8Tm+7v4TONNKNChtiekK97E0xYK45VpYG67txEQR75cHjxEJwN X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 554fd42a-5185-469f-148f-08d501897359 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM5PR03MB2698; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2698; 3:1xgAHWcuF1flJg9cW5dh/JpOkTjGICdMVZoHIWLgoucQiaS/b5O+8n55tV+omJ8VFVvjBRjgzMWQe3tWDbxq7hmgoW6nlX7x8/1Pgm1W7mIH18ExFBNtlynUyiEy1zjeIPYnteJuqTA9qKt+WbJKewEDw+iSZjOdrWqbe6nJ/vGtb3G2hnR5VP0eP8h+W6VFp0ZbXdimhHjFiV3rostt0/B5czXwjZAvoQY2P/WaOWcgA7HxvvkbGCjcIDPj3QSDqrLiaptQje3OcZpNPQCIM18hSsHwrRRjhxvNf+e9LCP80FJuqdr50hE547CKjLDxT3+8debWlHBAG9m19oNC6P/33HnMjHd5k4HiVGQLYug=; 25:MpU0lCNFm/9kzi3UhIF9f6Ig+qcMEvfdTg4nWwtOWGOweGC1SnZRQPmKOwNwcZGY5NwMWk7wxSSj+IgDcT35DbJSai84uOU2s5btIzohyurQA/agsHHzloSSHf+eqQwQuaOV2pfRB/TT850kP2bfB0zeUCI2ZCcSulF3kUIR7rTgZqr9TKGlbo3zIoQjkLGBVcRU0jUtFaRZXwSac1nTExWwm227Bsn973ld7MouLdvRwyJxNsucCq/RLOZ0uf59WT6mhL63XRFcHoCmTcR39p8hOpkUyJ3iXYLe8FRj3PM/CUVGm++T3ZvQX14pWc8FzXscP8akWDuBjmzvtUD1CA== X-MS-TrafficTypeDiagnostic: DM5PR03MB2698: X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2698; 31:y8VJXT6SqC4Iv7eNne456dstsfh6m03K3ijQshZezW/7e2JxNC7QmYeG4tZe/h0Vc/DRGaTxQir0Xb2J7GziJZMy1sF9p+ayyyKxJybTMBQH2v4DnoLFQHK8q0njFg2mviQaOEz6UNRK9YenpOG2roILeiGCeL0uHz25dFCt+Uj0+Pla3K3WcTNmkTv8gDWJ01Z32zRVqOVqsOkYf3eLTu1DAjzmGYR607hiwuS5nxI=; 4:psQUVGHN1QBsnhgIH78EpFDjayrF9KOczj/VFq/AiavFJcOWwM07G1Qr/scyGvkl6oPVQy+DNWZpbCtE2sHSjeh/FmrkC2hBSmLVGoS8wWIk06dS3+bvzJDSil6vhVWES0hrJz0M76Wtif29bYEO8Tg0+JZskdMqWkDW9XDRVMRixTW3K3aYavu9dIuPY5MBztU3aFOgLqyhMj7j7Uda2l/DYfyL/J1JD8YTQvshhpVYgYpLvXZfAoaDg+3XOqYX X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123565025)(20161123556025)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR03MB2698; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR03MB2698; X-Forefront-PRVS: 0438F90F17 X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; DM5PR03MB2698; 23:2k6Vi4x5x1JUuP7ZVDLsasDi8O9ID9XqB529P?= =?Windows-1252?Q?Rq3BAsvQow4Y0ibpcXaBUPWGJNdULPYe82ms8GmRCcDr+XIbbbOHRBEb?= =?Windows-1252?Q?Z1gEebjFqR1A7hZBSyo3Jt84jN4B8VJANJBlD87b5MH1sbsDkd0pbiuC?= =?Windows-1252?Q?fKijXhzUHSIgtKs2pywGVkciVyKt6TZUK9T/9bn6A4Eu+KpI1gFenDXy?= =?Windows-1252?Q?eoxm0WlQdaRLIA4NbDpJkhu8V3bhRdGnsBz1UiKgAIbhXFo0MsIIixYx?= =?Windows-1252?Q?oKxcyjBUTgMEDiiT1kMLbbU7LImR9BqESVWIQoRdSLJSSu9/jDwkHhsS?= =?Windows-1252?Q?Um9unRsIPNNmEVFjoS5evtYkxHAwHUK/q3PD2218lOF/pYzvjOcnL8RT?= =?Windows-1252?Q?A3uyPQByWWAqkJ8uXugxCw8iTU1T2WDhvPD+Ftdi0gqqrXdCEKPp7EcH?= =?Windows-1252?Q?MUHcdm3g/BVn8X02xPhmn6AIt+e3+N8XWoe2EGaL5MsrOoNRDX1vy5FR?= =?Windows-1252?Q?xj+mT0Wcj8zfWtkwjuxRSHOKU/QueFmagFbaYorLMRGimj8WAKyI5cwm?= =?Windows-1252?Q?z4Y1EldbrJ1wkyNYjf/3HVn/JXf6OBFI+LKMq6q6ptz61Ht3svahe9EN?= =?Windows-1252?Q?GhVpdifuM3wliQ9bSAiRjnFbQKC74qmV8DPgYm+ryty3yfaoKSFBvIE8?= =?Windows-1252?Q?iHf+aaMryyDkNYxcDJH+hhfXKRsERtVrIHnaZZJt0t3dBDqFUGO+dL7l?= =?Windows-1252?Q?xnALSTMlI4K3IK863YgIqtvso/Os7SUAqs0ZfYGJuxbDJgNJDA09g55s?= =?Windows-1252?Q?w/JHJ7N4J0/8QNw88KbTXIjCw3DJV2+mj50fdbZCnOXQCFU4ZOsUSS02?= =?Windows-1252?Q?12RZpQYOIN58SsrS+wuTIHgElG9Ghca3PZZ7IpfypBElPwzHFbxMMjaq?= =?Windows-1252?Q?ux7g/4+WCXWwlJPzHRAH7F6033sbLvCVuSouh4/V7KUWCF5Mhw1lvE/G?= =?Windows-1252?Q?IuNdbAkQoUQit5bk5cONoYyPeY6/DXVe82n9mnzYtEOuySzx2URP13zB?= =?Windows-1252?Q?ogY0eWcITE8qAbOHEY+1Ie+NqQj2gURqCWp21jAuhSEx3o5Y3B6kCQNR?= =?Windows-1252?Q?WIVTOhDZIYp0NAyYy/nSf7HK6Qyg5TpGNwmDvgF2tlezUU+IvC1d0DL8?= =?Windows-1252?Q?08EFp6ZBFdKAAQiaZ+musTVDF9JRErebW8ZdJW2FZYDZj5UpHAQBmW/B?= =?Windows-1252?Q?PSQ+BzxFX1KMEN26zl+Ecs20YRoL8TfM+ED4PwExn0gb5wBDf7bcwLhY?= =?Windows-1252?Q?vvWc8STWMCC0k5ZaPQdHRpULcQtnukB9AMy++UrqzEOu7J8xjma7rY/k?= =?Windows-1252?Q?OwtH8ghYbwpcSJ4d3v37+6r4tF47f1Xe+ptoPuGFCFGk6Bk2ihV/PrgQ?= =?Windows-1252?Q?yshQ4Dddl6gO/yCG6j+QnqfoKUkZv+OhEZ1epLxU65Jy6T1kELTVvuPK?= =?Windows-1252?Q?Y61rhCqmAteC/W3z9nJqKPwKc5wFZnIOCpngvYJNntny71iS5tYHdcAE?= =?Windows-1252?Q?btHyPJkokRjyBU=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2698; 6:SUVFRKdi3Xg7gsJK50uMzhPaHK62pSHLipF2EpApIPE7xfKxj9B8Ai6lqjQkMdha/uvyavZve0hB5o2MtGmtoJNm7qjWh4u5TUa40R7RKJrwpWLNL9YXqlYUil5NJjxFhLgBibfWVivf3rqPjHIcPcpljtqL/622Pl9JFqeIury6eJEhq/xystoVuMSpKqAaQC8pYR9kduSRv1atLL5G0/6BizpzwAOI6TKoK+gBUYCVTLLiYjIIsypnJFU+KMnpGzyCbX5bfWKNEYbQejkXfislMaTDm0dxjnoNNOuGBRSrPHe7G7R3nXk+PWtSfRFS8RC8JeT+MX8tBYTuaoPnOQ==; 5:FdrCBtZpWF2o/cs5v66CYsbE+/ocHbWdyJpPWBQaa08rQ0rpL618u+2eApNplFKi7SLJWvZCKicj6BCXzLK5fx7vZ32TquG5WJwc9xvEYdesgTv26IlbfAxzEr96aSJJKUh4Gdn9Kd2G8I1r1QCPfg==; 24:YJUQxFyLp6S0NvGjyugMmICne8oQC74+qT+d8fCIICqa0ZMYsXzWXxrUqqYsWJxbChEmwD3hLuT3DgdH6T+OW7CkMf4MzRws0EpVBwDYOZQ=; 7:6mYHKYpceFhYyTFl9G7wIpGNGS8Idi47Tw8aJf8oeLe+qQpV3xVySVRlU8L2w2ZLh3HcgqrqzaC3IhK63Rhq5/co2FbUSEPAvN+y1SM6Ne77lTxW5O5GFGfxDEJreJ1lNbfEQpDPeWVrJFHBO9fWcOu4QaJZkeBSOJIZFJqrKVCSnQPM3aY/CUF1jnePMGVx6OKZsBGTkSrdxK+Up/ob3Cs4G7FhmEJAatwTNMOnKAQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2017 07:13:39.8286 (UTC) 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: DM5PR03MB2698 Subject: Re: [dpdk-dev] [PATCH 0/2] Multiple Pktmbuf mempool 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, 22 Sep 2017 07:13:42 -0000 Hi Olivier, Any opinion on this patchset? Regards, Hemant On 7/4/2017 5:52 PM, Hemant Agrawal wrote: > This patch is in addition to the patch series[1] submitted by > Santosh to allow application to set mempool handle. > > The existing pktmbuf pool create api only support the internal use > of "CONFIG_RTE_MBUF_DEFAULT_MEMPOOL_OPS", which assumes that the HW > can only support one type of mempool for packet mbuf. > > There are multiple additional requirements. > > 1. The platform independent image detects the underlying bus, > based on the bus and resource detected, it will dynamically select > the default mempool. This need not to have the application knowlege. > 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. > Application should work seemlessly whether it is running on dpaa or dpaa2. > > 2.Platform support more than one type of mempool for pktmbuf, > depend on the availability of resource, the driver can decide one > of the mempool for the current packet mbuf request. > > 3. In case of where application is providing the mempool, as proposed > in [1], the check preference logic will be bypassed and application > config will take priority. > > [1]Allow application set mempool handle > http://dpdk.org/ml/archives/dev/2017-June/067022.html > > Hemant Agrawal (2): > mempool: check the support for the given mempool > mbuf: add support for preferred mempool list > > config/common_base | 2 ++ > lib/librte_mbuf/rte_mbuf.c | 28 +++++++++++++++++++++++----- > lib/librte_mempool/rte_mempool.h | 24 ++++++++++++++++++++++++ > lib/librte_mempool/rte_mempool_ops.c | 32 ++++++++++++++++++++++++++++++++ > 4 files changed, 81 insertions(+), 5 deletions(-) >