From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0054.outbound.protection.outlook.com [104.47.36.54]) by dpdk.org (Postfix) with ESMTP id C40DC5A98 for ; Thu, 1 Jun 2017 10:06:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=YOGvmCWlaiGNaxQBnuV3vI71EiNE6qDlg0hdtyqiyms=; b=eeBSTUM6wzpaXtT11UOPJ6gUwkC/JJ3xfdANyOFc3AuqhFiqvgELBzmQQ2SBYclmRGsPJH9/vgHV4daKNzK+UVEdd7SSfnWIasQmv2m8rAL3jGlDfLLeV5AooE1K7/FrTn9DGm7tsoTrdVAUnITar3mHdZg8EGKCojcBVw4wKyU= Authentication-Results: 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (14.140.2.178) by DM5PR07MB3098.namprd07.prod.outlook.com (10.172.85.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Thu, 1 Jun 2017 08:06:42 +0000 From: Santosh Shukla To: olivier.matz@6wind.com, dev@dpdk.org Cc: hemant.agrawal@nxp.com, jerin.jacob@caviumnetworks.com, Santosh Shukla Date: Thu, 1 Jun 2017 13:35:57 +0530 Message-Id: <20170601080559.10684-1-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: MA1PR01CA0102.INDPRD01.PROD.OUTLOOK.COM (10.174.56.146) To DM5PR07MB3098.namprd07.prod.outlook.com (10.172.85.8) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR07MB3098: X-MS-Office365-Filtering-Correlation-Id: ee75a070-4b73-4460-b2cf-08d4a8c52498 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:DM5PR07MB3098; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3098; 3:wwyLhXdeWxKtLIMtbiuU57wodwFzjwMOzmD/tp5CFov1cFb7GnHus50+colmq/Ba5uPAhahExdXKrNP7I1s7e1q327weduEqA7ccmV3qIR1x1bvBOBhXhZtdL0mFDnGtyBgBrieTY94oDflSJJyR11gHYVcC9Z9fmjYS+3rsWzbX0k7kLj1QNRtDEgWi9toEeeKcAsMtTHyN/aD+J78dM5u7LtpU+GfO5KewA218mnYm6e70LRNEAP32lx5TxvhX96pMWDygGQmX27rCwgjlPk/KmM2JZtBlPiOQt2zEBl98xnQE/ZScMftTvW+1qxzca7TxhbFtB0TJdkRxAOPSjQ==; 25:73YhvroG+uEsu/+dnut8h/5AP/NHOlul3/b9x4ohxKlwfHG4lCMyLGKtTjPI/c5SkAY6/8IguA6JGD/AqRzdfnUslaxsb0jYzXO79x6h76O6WEvFv05uDK5xtGYdeBgLysfkB5KDUpnFXgTTgRkJxJwEgO0Gj59jbd0OLvWtmH+36vtdvXWKZ3f1JgYzMGDHAko43cYFuCY4GNFHBlyqoYzPV9KM9Lq/zQaDH6j6sVI01vdXwsBh8yDy7vIEDjhxfS6msVI+GJ4ygpakTZDIOvo1XsXbsEcvVF4kkOinffB2TNpUAGx5pdLNNYxcoHF7OOnCkHlfBVNo6Xo58xZgkQsxcvm4LAbHK9JNXOKpLCUYLaCM+cld3WzC8hrObEwBMGxspZLmZqWkG7rdJS8bT+R2bcH+mpYb8H5VIZtoz7eewWuPS3i1LCMCqKIy+4/Y57pWlARAEni9WZMGZg66qAL04OA15/hQJEigFmZeVFk= X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3098; 31:mYDL9qokYbtMTHsA6DK7zdG1GPwm4M6/374ie6Xkxv9BMWoI70rzLcSSZR1R4w0PpLuzWDcBoOPFhKKk8AaaI0udOIEjVxoFWugNKGlDh3/VI2+x6hDGI4TYstAKn1anrCqIQSl3bqYArx+4AqRupgqOWHb6yaTVpWNbpycyaHa1qnfp7ftSW0f+D2rf59ez47wRwVpSprdHhdic7SfZ4sLghvjdvQHQpcHqHsSstaw=; 20:6ja9LSF6B4+xCRQq5CTK+cdXrhAfrK5+5UkcIuhbZPQ6SxjA/ETxq6/rjin3Sjxdc98DfXACZgloH29I/24t/e1fqsEfICoAXFHgj1A+FQjqoWualQmhWIuHhQASPvOsxkcbC1L7ESGSwhiTtx5OYHCSoazXhABmKGwibcu1+Bpo5ztzAXR1H3t3sUYLzCSpXxa9s46YBBoFQsbFBc5/C0ITRlVb9ICPyHv1UayWeqd+YDArS5YLD1u8dcB22fu2E2fLmzFQM448enSEu+Otz2r7V93As0xzepOXiwRqF+bsEI2VFJ93jFZlmD14QAkFcxvB4jArF5lCjFcqsrnSSr6UTEoVXz+HtfS2Z5pyPxQL7dPfUdWc0ucxcCHz36cOJpMBiY627Ou8qJZyadlytVSNxkPdYPwoE2VJ/PmZqTKE2UixkKAr+tFmq1G5y/31/pjrrP7XfIygpsn136z6g5ZjUVZZUf6Sr9keb82dBTAnG9lWjBKJiAomrFkjEDONCTj3t3lKaKK4dKxfKu0CR9KQj/SGCAXAhhswkoZlZtS39rnmjJvUJ0pMIdsF/MHWWUCqY6qUO6hneU4IRADiHToYEcB+NGdMyVI6BlbYxDU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700087)(100105000095)(100000701087)(100105300095)(100000702087)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(100000703087)(100105400095)(93006095)(10201501046)(3002001)(6041248)(20161123564025)(20161123555025)(20161123562025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704087)(100105200095)(100000705087)(100105500095); SRVR:DM5PR07MB3098; BCL:0; PCL:0; RULEID:(100000800087)(100110000095)(100000801087)(100110300095)(100000802087)(100110100095)(100000803087)(100110400095)(100000804087)(100110200095)(100000805087)(100110500095); SRVR:DM5PR07MB3098; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR07MB3098; 4:/sPYNXM0Igb5DOB5r459C2uYA7NHRG/sQeMM6dGbU4?= =?us-ascii?Q?Mmer/IqnXbuAiFpQLz+A0YnEMxRyaU2eXWaXZ/GHGyu44uDNRTTZLiOHOEdj?= =?us-ascii?Q?ZV5jBhWbIsF3gPgzM1MgA+Lws7vzsDFqk+bC3dCZm+onMA9Tb6RIDtFJy/yv?= =?us-ascii?Q?ak9uY1vAFKIkYA2GWYZtNaDYHqIxGEmseK65GHEsnnf76s7GJzRJ8ES6uvq0?= =?us-ascii?Q?f5mpIp1N+Em2bFXAuhhCe2Sz+LQjzKTBdu1yDRW+M+ny+YTjsxbvbxW5mchN?= =?us-ascii?Q?IjfRoiMqpur+bb/NRzs/597aN++w92t2ezQwzaqrnnJybci8Ww5HQFWuIxlA?= =?us-ascii?Q?pV7HIip3FOWAhSHK3fRrldBy3i6ShP1netbz8PkeBBV7KBCRghCHH/yF9bJF?= =?us-ascii?Q?TmzLd/b4Rym6gqCSiR9OqA1T0sus6uiiYCBw4W03J+0ECr54t1iMdxi5cA/q?= =?us-ascii?Q?fbDxf5UPIQ+x7lbFeEMTUoN6b9ilu0fj9VjSOriEGRbEofFCa/NVKnoxYAIZ?= =?us-ascii?Q?f1aUDg4ZCB0JyK3ToCsahOkfK3q2iCtm9ETuXwlC9BzcFaM2MbObQ+BYa6te?= =?us-ascii?Q?xb2Zdzpsqv60Q0FH+XWQ1x4q5IQDrNCN8puWdsh6pIdhsiynr8amVk73ZGXa?= =?us-ascii?Q?zTwN3hoV/ooXqbSeWqR2X8E6aFF2AdrPl8kiR8dFUb7ukl9A/DRSyq8mep8+?= =?us-ascii?Q?5UMt0JCcfXCnu53ybreXY/LF5vDyzfV8Fo8/qJkSuFOIa9dV137vSYToJdRc?= =?us-ascii?Q?JnI4z7dTyY+j3m9I3IaTsrCYe5IPVJYZelTIvwbQKz+2xNiT0TeEP9FWCNgh?= =?us-ascii?Q?rY9iFic1adB1vUFInQ885mQrrqMzGkh7F/vCI+k/lAA8q+7+obkc6HFyCenH?= =?us-ascii?Q?Okv2UEKuCkFyOYo9+6fci5bIucxrwtqTcmzWOqrxfX0F7JdfeMmxbDM9rd6x?= =?us-ascii?Q?Zn9tl1M+ZCcLTHHgMZIhXlw0oSBpW7gtU0S2WQGYkXUgIBosdWXjssyDes4B?= =?us-ascii?Q?LxCIU1nraY9Je4AH8pqoattO////9TjFJXzyQ0rXUsW2PmRFoHFeI+6GyZVJ?= =?us-ascii?Q?RlAvrj70csTaEhsMos6MKBAyOoUoz+xRTBFfOJHH7dbAZEGB1cXaCcdsUHNA?= =?us-ascii?Q?7m1ZZZ5fc=3D?= X-Forefront-PRVS: 0325F6C77B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(39450400003)(39850400002)(39840400002)(39400400002)(39410400002)(189998001)(66066001)(47776003)(107886003)(38730400002)(110136004)(6116002)(3846002)(5660300001)(5009440100003)(2906002)(48376002)(50466002)(478600001)(50226002)(8676002)(81166006)(53936002)(1076002)(25786009)(305945005)(50986999)(6666003)(7736002)(42882006)(6486002)(6512007)(5003940100001)(33646002)(72206003)(8656002)(42186005)(36756003)(6506006)(4326008)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3098; H:localhost.localdomain; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR07MB3098; 23:zrWpzxIc/KSWuZp2Ge6UcDd3hrF1ncOgYFBvCkTcm?= =?us-ascii?Q?pCO5pG7LowIsfooXHSpnwaUcBu7yuBNbhZnvix8fkc5xdoO/oiVPhlh9yvpK?= =?us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Db9ZcT6GMUnqDM1VyjoOkEKhM3+C0h2orlRqbCZ2YjjD7HHg3Gs9yBizyNwmWn4sIOgMYjVT4nesLc2dKHSkcB94eapOm2lzzmLUeiQGrLaRxPZFo6fR4HaH3SgPNvvka2qSKHG23ciN8yHAElIdu8gBGcG6QPs6dPaHvLyvKqiapVhCKkuNkoXi/RwJPVrzoYtOaKXhTahvpWcFzqFcFMpcMFVESJfiNGMJdAjaxVhL+6bV3W/VC7BC8; 24:xS0BzQm3x5R3sTgtlyDdwjxfxnH+xSKL0qWlhOiEGEUCRlMEC36wmqNW6G/PLQck180+q7mm83czCL914CqcCAe8Ph4hh4uurZetjfNr/Qg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3098; 7:tK1J7QUnlD7qnIN27S9Gl2eYZQzd7Jn9j+ZCSOSkWFq2n87bA0kx0M8lVm38w8g5isPNZCtV3mZ/c3/kWRFpxr/nKwHgFthUyw78xFCIc4TpaX/mTOJRFt7SKl6viowcQNY28emXajFvUiRkRE4nbY059gh/5AAtDo14j9aTvxKsYPCksoT8R7HjOHi4HeCt8DL0dW9ASzUrPb7mXSavgSSb4J45oO4LUpuSCn+Rr9ZuVFRkJSU/tuxlXApuNsMefLEwofn+8q07xcy+tIuJ00k8dBeIiYOpgBGKDpHHq5TicrZegBDABPA6FYeUDi6+UrwJD+IBXPcK4ZrUqAHH3Q== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2017 08:06:42.0999 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3098 Subject: [dpdk-dev] [PATCH 0/2] Allow application set mempool handle 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: Thu, 01 Jun 2017 08:06:46 -0000 Some platform can have two different NICs for example external PCI Intel 40G card and Integrated NIC like vNIC/octeontx/dpaa2. Both NICs like to use their preferred pool e.g. external PCI card/ vNIC's preferred pool would be the ring based pool and octeontx/dpaa2 preferred would be ext-mempools. Right now, Framework doesn't support such case. Only one pool can be used across two different NIC's. For that, user has to statically set CONFIG_RTE_MEMPOOL_DEFAULT_OPS=. So proposing two approaches: Patch 1) Introducing eal option --pkt-mempool= Patch 2) Introducing ethdev API called _get_preferred_pool(), where PMD driver gets a chance to advertise their pool capability to the application. And based on that hint- application creates pools for that driver. Santosh Shukla (2): eal: Introducing option to set mempool handle ether/ethdev: Allow pmd to advertise preferred pool capability lib/librte_eal/bsdapp/eal/eal.c | 9 +++++++ lib/librte_eal/bsdapp/eal/rte_eal_version.map | 7 +++++ lib/librte_eal/common/eal_common_options.c | 3 +++ lib/librte_eal/common/eal_internal_cfg.h | 2 ++ lib/librte_eal/common/eal_options.h | 2 ++ lib/librte_eal/common/include/rte_eal.h | 9 +++++++ lib/librte_eal/linuxapp/eal/eal.c | 36 +++++++++++++++++++++++++ lib/librte_eal/linuxapp/eal/rte_eal_version.map | 7 +++++ lib/librte_ether/rte_ethdev.c | 16 +++++++++++ lib/librte_ether/rte_ethdev.h | 21 +++++++++++++++ lib/librte_ether/rte_ether_version.map | 7 +++++ lib/librte_mbuf/rte_mbuf.c | 8 ++++-- 12 files changed, 125 insertions(+), 2 deletions(-) -- 2.11.0