From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0053.outbound.protection.outlook.com [104.47.41.53]) by dpdk.org (Postfix) with ESMTP id 8FEDD1B261 for ; Fri, 6 Oct 2017 09:46:15 +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=pbeeTyjcCTFemJ3iqrhuRPRdVDB0Cxj0X/L+JjSDotE=; b=MPbyVv0aZUoYkY9UDEdbUlCGolyz5R94fyY2dA8NjQJ4BNnBu4+7Jfv4OaozYTTpWkTjdSaBKIxm1f42xbkR84m8735oqOVoIg1274sLQOGfUZZlL227CDHHqVtjcueBL1qQs+sZUkVUV5HwPU9RhYJdeS8spbnQX9MmrLMTawg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from localhost.localdomain (223.180.6.162) by DM5PR07MB3098.namprd07.prod.outlook.com (10.172.85.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 6 Oct 2017 07:46:11 +0000 From: Santosh Shukla To: dev@dpdk.org, thomas@monjalon.net Cc: olivier.matz@6wind.com, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, Santosh Shukla Date: Fri, 6 Oct 2017 13:15:28 +0530 Message-Id: <20171006074530.12521-1-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171001091440.10232-2-santosh.shukla@caviumnetworks.com> References: <20171001091440.10232-2-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [223.180.6.162] X-ClientProxiedBy: PN1PR01CA0106.INDPRD01.PROD.OUTLOOK.COM (10.174.144.22) To DM5PR07MB3098.namprd07.prod.outlook.com (10.172.85.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9bb25991-e936-478f-b03b-08d50c8e51c2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:DM5PR07MB3098; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3098; 3:qnTutAbhMVjBSnDQ1G7L/vmfBoKSXZS1YLjGeRpUbxpvJ2YM8ettsApv03HiDQe+fMUfi75UiMGvHqFDBeF/P5dilG/6tbnwTAFSh7flTe3uW+D1hv6ERUu4ZxNCtnG8ADAw0bJEGiaIzWOar8LEL+Nke21gayOyIrTBrinO8IK7/iL71DAYf319KkreVIMs1Rqi9ejL+5tUXbt/7ch7sxpGJjlqtKQQep2dUIhfW+S1lIFunvs9TOlDbhziTtYb; 25:Dx/gmZNJTQn5ILox/2ptalikXHPz9Owg1omr9rucUVUqEvyAezfprGyyC+ZhD0SaWNf5XHFB05DAPMYolmYIyDcP35nKzXevg/JCqP5LFK8I3X4fb3lmExugcDdsDWIvgHTvb/cMgBjdxW9JldtSMXipzc45VDATncZYpKaNT8vBDs2EJtTOKvZtCA/4RUtHFq3GCSLhgNYeScyU8CT4Sj7viQWWodUlt68Y4f9INWb3qRrf8w9gUxev00SHN3hz+HheDxSt2rDD3WfGwl0zyxcUzvNWlbPPlqfYFN5iI5RdY63VRwZThgSNmrcyAAXmp1yqMoCu1DNqNOqxcjqAZg==; 31:9z7S+55ratiSgD77HE9WFqfhXjvFVhUkwbiJUNkdA/53aand8mjxCP59FD+RitbgEh6/ApqXP40ggcPZQxjaGAp8jpgNHxJNmdqcFFdW5wzF6lLK6Hryp7DxAZOilwjm0c96acSLZrzjYRCoVRM6D0lJKy8rXaUgEYgM+5WjWJao0TMZKytGcPBsNYj6axlf8shPqbcFEHAxynBWiknmd4ywfrrF9TUugvejWU0K00I= X-MS-TrafficTypeDiagnostic: DM5PR07MB3098: X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3098; 20:GNGbjbIEsO2acR3SS/BRQtQDwiJrFh+DuDFjhwBmKGk6lHLxq2/cgK6UlDNi3kZC1Ohp7HbNWwVv0W2QDP4Oyqk4HktwsL3UnDkTz37EymzYFAnUMsN1JyDKijfa1VgCQyB+LfQhXp9W4bFBIoh8OMkerbNUt9SZJhp0oxDHFYCMeIpWtuqY5thLXqHCa76j2w1t/9XpDDPDwKATmQobx4MHJFSQCQh3CX7QMFER9gsVFf/6odmEPwCXkNE1PCl6lMP+S35GmbPt4qrOLFq3+RzD3ncqXFHYpNP6E/a/AogOC2TCyphKcVvma5uS1ypCtVQQiMJpCJB7U2AQO+LTynDZuQpjvncyE8z3jpdhH1GBZamRBA8aQS7rZpyhk96lOC4wNccMPZQXfzwKvfNeX2I+M4XszwrY+QDrVgLbUF6JIMpiS1KLfnRdMvjg1wKqtjenIG2qXyerajWgNvuvren3aSdDqdiVPrQbtJMuP+mOOE3kApjoEqkDcVClPaQsUC69VLcIMNwG8vrmavOqofl2Rbmd3bTNOx2Vr+C7kc9x+NHs/9Qmn7E52OdiM54oNXjQNLR3Le132IANdSAJ8P0sEDTP0fhmE49S45J4n3w=; 4:OnWU5Kf55BlCe1D0hD5Vnen64McSdZuRmQAAR8ajPuKmNKMxmAPqUGhEoF9MTGtHRyNr+BMxP0S0itgsZC/EejomDCP5kMhCuCO+9K9Asp99PEYMYXKXQgsC30fZmLmdprgNbAzQ7+lnQJRdZyfYX1/nB07uQBa7RsNrWtqiHBIV26sba1bfnZ/IUgzzD6RT71yYlJhDnQnLOlFWybpOeomCL2dsXAG6FuIJoLhzx0BO47ihT8HFeO8Ifdaw2wga 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)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(10201501046)(93006095)(3002001)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR07MB3098; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR07MB3098; X-Forefront-PRVS: 0452022BE1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(376002)(346002)(189002)(199003)(53376002)(25786009)(76176999)(66066001)(6116002)(478600001)(36756003)(4326008)(16586007)(8936002)(3846002)(316002)(2906002)(2950100002)(68736007)(5660300001)(42882006)(97736004)(101416001)(7736002)(81156014)(6306002)(33646002)(1076002)(305945005)(6512007)(53936002)(81166006)(48376002)(8656003)(47776003)(189998001)(72206003)(106356001)(8676002)(6666003)(5003940100001)(50226002)(50986999)(16526018)(6486002)(966005)(107886003)(6506006)(50466002)(105586002)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3098; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR07MB3098; 23:3pP2ubHNqO45SWeeMGxSlGvCtXRrbwrqt2rKhQww0?= =?us-ascii?Q?D1aE584yQw86q1Y+u57qM/zeiOk2joUvJL6d0VIEAFGvnmj/kjlSxPMOLXQi?= =?us-ascii?Q?lZ38IjU8liX0zFR+i7muRV+Bx9WEbWkBDr4irr1S0VztZ/Tyi4V8kTmMtYZy?= =?us-ascii?Q?NNPGCuTikmgTstJUMdXctOTO6GdxD9McDKlpjhEJZAdYpQPTC2NwS0aziqIo?= =?us-ascii?Q?Taz/aNLZPLa0dLEGYHtydNangkuVaM1pv9q1NXMDDeg3878C+8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NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2017 07:46:11.7052 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3098 Subject: [dpdk-dev] [PATCH v6 0/2] Dynamically configure 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: Fri, 06 Oct 2017 07:46:16 -0000 v6: - Include v5 minor comment Thomas. Patches rebased on upstream tip / commit id:16bbc98a3e6305766c79fb42e55ca05b323d6e4d v5: - Includes v4 minor review comment. Patches rebased on upstream tip / commit id:5dce9fcdb2 v4: - Includes v3 review coment changes. Patches rebased on 06791a4bce: ethdev: get the supported pools for a port v3: - Rebased on top of v17.11-rc0 - Updated version.map entry to v17.11. v2: DPDK has support for hw and sw mempool. Those mempool can work optimal for specific PMD's. Example: sw ring based PMD for Intel NICs. HW mempool manager dpaa2 for dpaa2 PMD. HW mempool manager fpa for octeontx PMD. There could be a use-case where different vendor NIC's used on the same platform and User like to configure mempool in such a way that each of those NIC's should use their preferred mempool(For performance reasons). Current mempool infrastrucure don't support such use-case. This patchset tries to address that problem in 2 steps: 0) Allowing user to dynamically configure mempool handle by passing pool handle as eal arg to `--mbuf-pool-ops-name=`. 1) Allowing PMD's to advertise their pool capability to an application. >>From an application point of view: - The application must ask to PMD about supported pools. - PMD will advertise his pool capability in priority order '0' - Best match mempool ops for _that_ port (highest priority) '1' - PMD support this mempool ops. - Based on those i/p from PMD, application to chose pool-hdl and do pool create. Change History: v5 --> v6: - Added Olivier Acked-by in series. - Arranged alphbetical order for 'OPT_MBUF_POOL_OPS_NAME' (Suggested By Thomas) - Placed alphabetical order for 'rte_eth_dev_pool_ops_supported' in version.map file. v5 --> v4: - Renamed mbuf_pool_name to mbuf_pool_ops_name in [01/02]. (Suggested by Olivier) - Incorporated review comment suggested by Olivier for [02/02]. Refer specific patch for v5 change history. v3 --> v4: - Removed RTE_MBUF_XXX_POOL_NAMESIZE macro and replaced mbuf_pool_name with const. (Suggested by Olivier) - Added eal arg info in doc guide. - Removed _preferred_pool() api and replaced with rte_eth_dev_pools_ops_supported() api (Suggested by Olivier) v2 --> v3: - Changed version.map from DPDK_17.08 to DPDK_17.11. v1 --> v2: - Renamed rte_eal_get_mempool_name to rte_eal_mbuf_default_mempool_ops(). (suggested by Olivier) - Renamed _get_preferred_pool to _get_preferred_pool_ops(). - Updated API description and changes return val from -EINVAL to -ENOTSUP. (Suggested by Olivier) * Specific details on v1-->v2 change summary described in each patch. Checkpatch status: - None. Work History: * Refer [1] for v1. Thanks. [1] http://dpdk.org/ml/archives/dev/2017-June/067022.html Santosh Shukla (2): eal: allow user to override default pool handle ethdev: get the supported pool for a port doc/guides/freebsd_gsg/build_sample_apps.rst | 3 +++ doc/guides/linux_gsg/build_sample_apps.rst | 3 +++ doc/guides/testpmd_app_ug/run_app.rst | 4 ++++ lib/librte_eal/bsdapp/eal/eal.c | 10 ++++++++++ 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 | 11 +++++++++++ lib/librte_eal/linuxapp/eal/rte_eal_version.map | 7 +++++++ lib/librte_ether/rte_ethdev.c | 18 ++++++++++++++++++ lib/librte_ether/rte_ethdev.h | 24 ++++++++++++++++++++++++ lib/librte_ether/rte_ethdev_version.map | 1 + lib/librte_mbuf/rte_mbuf.c | 5 +++-- 15 files changed, 106 insertions(+), 3 deletions(-) -- 2.14.1