From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0073.outbound.protection.outlook.com [104.47.33.73]) by dpdk.org (Postfix) with ESMTP id AF62B37B1 for ; Sun, 1 Oct 2017 11:14:59 +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=Xf8YaQ3KaQ+P9Vvk6JgQkFLjQnPlkSZ42HHcht5JzoA=; b=hf6H3tjx+cYEkzTdwuFF/bhooflHGTrrDwE2g92kqnNV9/mN3TOoRtni77KvWzxFllN1xZa+O7JvPfKNnGmhGZAYO43ZoE9aXo47vZQbnwnnhKynxLCP46J941OynuMTFHmMr3ogGoQj91SQp1IupbJ+VVV+dGQwTTHXQdh6/cM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from localhost.localdomain (111.93.218.67) by MWHPR07MB3104.namprd07.prod.outlook.com (10.172.95.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Sun, 1 Oct 2017 09:14:54 +0000 From: Santosh Shukla To: olivier.matz@6wind.com, dev@dpdk.org Cc: thomas@monjalon.net, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, Santosh Shukla Date: Sun, 1 Oct 2017 14:44:38 +0530 Message-Id: <20171001091440.10232-1-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170911151837.25092-1-santosh.shukla@caviumnetworks.com> References: <20170911151837.25092-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MWHPR13CA0019.namprd13.prod.outlook.com (10.169.208.29) To MWHPR07MB3104.namprd07.prod.outlook.com (10.172.95.10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9e47799a-7051-46ec-4baf-08d508ace23a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:MWHPR07MB3104; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3104; 3:8owGWOxoDynuFVXgRMgX7G85HYAf9nNOMOxQC8Qf5D/brcnjViJUFG+//OWa4HRZPcf7HEjDYP1PSBwbw7gbDXYHY9b4Xc6AZ38jgNgpp12va7Vy8C3aPw02xQLYZnpqVvzlQZBonUu6R2UlKu6DgvS69QzC5Q48vKlOSlJZIOi5f0dwxTmzsWp8M9NbWUOBW3DfY63ww9EFe/8p9P9CxP3cs9giXhtTR0ZuEEmOpUrj9yrTXhzqV3M5/shloj4d; 25:drOawz0j/4bwwdpIuryUSOitGmPvGGIfixjxJSoK/J/+h7qzI3llnEn7mX436goYNMDs/i2AN6kHxgb8gRgfOYj36kHDHj8lV/eJcEFBA9oVnT3fMYP3n32ENkakMUIuEZMtlqxz0Chls7LSdPBqK9Ymhs1rQ+b8y0ygGebumQZnZS+Z2i3Lz7Buqn1ZKxr3l1/NkNPgs/znQWdVEkbzY8T9mqQ+bm6fwfD1T7DOcncdJBtN9TLKEH8YQ8LOAOk6o43CoooMx/0QrJf6hLLJes6o1Tiu8HqoOtOcy/qmsnmEPCVujJWvNU1T7cSWfIebR//8MGCtP30uzhq6y1YU0g==; 31:dGkTqQFCjD6qbwY5TZ8CB0etsLhAaHmGupAc1I02saUBYeEBzUkH5aU88v2DYRQFUxnN7rSOSMfv9QgZOfSUC+Udo7fmzV4MzDH/dkoTwJ9CUxuPXlG18te1r5JRdOO/ZmImAHAUP0MVi5IxhaRL+O8HGxbwa6Xz+6sH9VFv4rNDnmDu2XLCSaMfcxE3oVj6H+v8T0eeLBuTv8WGzA2lG8CbEQdTL9kLmVrQcB1zFWs= X-MS-TrafficTypeDiagnostic: MWHPR07MB3104: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3104; 20:+eOlzb58gJbH2NW71sCl3LffRORVa04l4QNsB09mcW1kAbTrggn9y0bBVG+zgKUlRebqNMhLv6iIp2eXbVpqshOPWf6blZUM7yd7ziLxL9qXG+opXTAY2PeuEfmIR5A+X2lFYsjdu/bkFke86BDdbaOjyQDonatMxN8V0OolEGSOJtLrWlLLvRlqkdNGYeYc9KLf/+St0Sxz0JNy8hZAOV+wxKNXhNXJeVSLMecYCcTYTmoGhHjvvlktdxaBjuHDrm9LQ6zPyc8xifmex0UhVix/Sot+xQwxGVIthpEBldu+mL9dbLbr5bzWzzj50X64wRx9FWo/9JmuhK0Xdc0iXbQSt+gCUC+PzG325ciqt7TkF2sfqc8t2TIHKeZhm35vVrYitXoPf430iRRZSfaTSBTqgi1Zi7hRuXrRes1kxJFLDRlFxBeVy9ZRyXZjvpx0w4ruqP05tEEe5sLuea5a3aIMIwxzGPUcT3zEC3bn9GmwuGnUzmxDG3hhR2P22Jsa1Ul5o5QrSXeswLws0NK7jTCS8tL57HE6tG8HYgCGtGgT5kYJqpjb82QE1wGjcHvi4Ce9eITC+NfdTF7W6Bc8lK9JGmEoACBekPJQ5V9mWmw=; 4:FfUASHobIMoWmiyJfWLXTx7BJZPtgMzHnCcbB3OA92svSM2Twkh1PaBUTwo6/c34Jh18SOI2J+Uzztc911eKFiws/EbRlLMm2AqGef1sjG/CWcV7DCXa5vxvl/6kJkRVObE0wumP+ubWhXmz0NKlrC6HFpZZ8rcobqUOxjehrc4PCN7bIZjhpDfsE4R6B0qG2AKq7IuwHjtGI65L9RxsrzJ47WZWnkNZJiL8PwjdpWdsSUoKlfJWwCEZOyI0J96n 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)(93006095)(10201501046)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123555025)(20161123560025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR07MB3104; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR07MB3104; X-Forefront-PRVS: 0447DB1C71 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(346002)(376002)(39830400002)(199003)(189002)(3846002)(8676002)(50226002)(16586007)(5009440100003)(478600001)(8936002)(6512007)(6116002)(305945005)(6306002)(1076002)(6506006)(81166006)(81156014)(53936002)(16526017)(316002)(2950100002)(7736002)(5660300001)(66066001)(47776003)(36756003)(8656003)(5003940100001)(42882006)(68736007)(106356001)(101416001)(97736004)(72206003)(105586002)(966005)(50466002)(189998001)(33646002)(76176999)(6666003)(4326008)(6486002)(48376002)(50986999)(107886003)(2906002)(25786009)(53376002)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3104; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; MWHPR07MB3104; 23:CdIZy3zLydYYcM4au5gbcwRUtQ45z0v3X6Txm43kf?= =?us-ascii?Q?zOWmrAnnpbEaJIWNPyV96pqB7cGSjX+EhJm8dItr8qjy8yFlHuw7FuE3trXl?= =?us-ascii?Q?xPIMzBPi7pZqkBI4ATGYjpAZtCMU/R9V5A91bh9x90EDKr/X+XNNUy88x0NJ?= =?us-ascii?Q?HKfaOxAL8Lq631klQpwQByBq2HNK8QH6DUFV8zmkwTk5B8tybAaCzucZqHZ2?= =?us-ascii?Q?wQFSpnfQL175SYeM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Sja1IbcqjJYK2n0/8TFKXkRPCiYhT0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2017 09:14:54.0192 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3104 Subject: [dpdk-dev] [PATCH v5 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: Sun, 01 Oct 2017 09:15:00 -0000 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 --> 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