From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0067.outbound.protection.outlook.com [104.47.33.67]) by dpdk.org (Postfix) with ESMTP id CEFE47D2A for ; Tue, 15 Aug 2017 08:08:14 +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=oRNlDCGLCnJQjhCQp41Cu4SUYZpJSIfhegp0c5psAF8=; b=chZJ2etMgXr06IVBTXiMbaIQMGQ43/T89Neo6lzPEtB617WtYO9AAYOwSZ/BW2FHbfAnQ4eYb2zOp4MM0ZKMofNSvvNwrAYpqSwbB34TdBRkVPoGLYUitHtmzT6avMpiTkoRR55Fezq0XOCxBIDPZ1vgqhiVch8WXKZUD3wihTY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from localhost.localdomain (14.140.2.178) by BN6PR07MB3089.namprd07.prod.outlook.com (10.172.105.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1341.17; Tue, 15 Aug 2017 06:08:10 +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: Tue, 15 Aug 2017 11:37:36 +0530 Message-Id: <20170815060743.21076-1-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170720134759.4680-1-santosh.shukla@caviumnetworks.com> References: <20170720134759.4680-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: BMXPR01CA0022.INDPRD01.PROD.OUTLOOK.COM (10.174.214.160) To BN6PR07MB3089.namprd07.prod.outlook.com (10.172.105.7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b237b5ee-a40f-4a5e-fe82-08d4e3a40288 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BN6PR07MB3089; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3089; 3:6fyMHrFGY/lWEwHcDDOyc0VtJTolNkIlp83oOU0Nu9e7Uy29qg2QzOY11Qc5V5zHwZdLuCo0oCWc5bTG/sE2SAbCUGv15GVFThtKXJz6daIBCYQNbHU8VUcBcMfBkTINze0k/FZQF6VxgQvBCadNDJpf4MYdOgPGqxBwWOpLgGlhbLP1oQcY8lnl5jb9ScHTu9KPGRoWEmuClzpXUb1ercCGOX4EdVYEEjsLbylZOrYeVtLZCIn3wt61m+/p6nqS; 25:L3+lTS+SBqI0kKAsyV5Y2NiVSyutYsiYD76ITWND44QMpzubjGR4wvpnw8fF8S7BrYDfgTrshbiCFB8Q1jvzOeYK40gn+31ibOSuu7IX/NQZcUq00yiP6ziSykpXMEfrdWw/2BnBG6gnHTkRp2WIy3F4Lmopmpl7i8H0ZKXXbCO6EbTzqIgt6zo4+vyILotFJaOZa+KUlbMNw7ycyzVxvZKHcCQUTrtPSFc6+7x4RMDOn1NxDww8LQdNR7ERB802ub+PiVqVqhOdpZrhstT+/jpGQkGfKbF0PRr7JMMLV+UZzcvpxqICwSLcXS+xIdsGcOzdDxZnZm1a66h0why/Pw==; 31:hz7aMAs89ecjFpISpiM5aRgVULcf89pKo7MgyC925wXPtGddnGXaJhPs6WzaIelyx/7gaxlucGcYJ24Cmn1gvtesqfOUPve0oM0lh+MMoeoTWV9SpjbZRoJtSemsE2iY+Uzdo5R8s1/5gNcf+xfP+XnR2QmBytcCausSdVNniPADkJotpKwXafKBf7lHyUWgSFanecUCHTEgkclyOPJXO0SvMI470PCYijgSbOxBfgs= X-MS-TrafficTypeDiagnostic: BN6PR07MB3089: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3089; 20:/Oa4F27RkWEyy+dhQ/f10jkic1YptJJvLeo5kUWzx++RXlOUHxkRybtUg0fBOFmCGBh115cR0f1pkthmWa4AQ55kG/dKXfadIPZPMAkKy0O006tqo8sNUWTRKgShlAAmtchglcJx5Oo6YA2a38flya8YMADJRIlpHUytDKAHzS6/JafvqaorL/9HfT6EW7Rgsboras+lu1NiqHH5eSsMO07mRvfgauj3/F/XXJnuFh4GPDTevLuOF2G6ZY9xwHPo+vKE+W9TEwTrtmhKAu5XpUDj5fgPkYxRUVaTxrYT904KVou7fck9SNZ5IQpo3CSoUDg4r2nM4wMsExwxty4CvHMhKG2UZh0EoC/4pdzQXxbZ1pQ/J0zAQiEfgq64EvOGLaLIUg54qPkaHb4zAG30TYYEqrnoSi73zN88qOf83eP1YMN5qbPM5u32OxA/86Ml3whzMMzGc3tcoFzjB1Lt8MQRHTFuo0BUZAfss1tkIxA3JqmHGbjeI/MDtJ1RpUM8D100s79e6li+vp9sjKGqNVgTZ0Ve+psZ/8X8Ls5ZJLu+WAe71F3Ml/aTF+moBqaM50vu/9/aawoZevth8HG4T/etIh9z+lcgw7t+SMP0aZg=; 4:20EDcrnm1809ZMeqEQR0X8jiTDCSml7ut9k2U605+PzYCGZeDLygtKRk4hng2+fwtNewA9dQMNcWsMSR2Oi1BkhNFM4hcVTyomqfFOJqri1uS7LEWBG6TOMU5NLsfIJs1wGAYbBbeKw4dwBtk+wIpnT8+pil7wQr4uBwkyg6HAIKlfxYvVvPO3vmVT//eh5v2VlWvpl0XJpDmz8FzIpfZHpjkGkJxofEcap+HPYrh1+QmbQaZZqu1RT530LrxyiF 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)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR07MB3089; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR07MB3089; X-Forefront-PRVS: 04004D94E2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6009001)(6069001)(199003)(189002)(6512007)(106356001)(72206003)(6486002)(42882006)(6506006)(66066001)(2950100002)(966005)(47776003)(6666003)(48376002)(4326008)(36756003)(50466002)(68736007)(1720100001)(478600001)(25786009)(2906002)(105586002)(97736004)(5660300001)(7736002)(305945005)(50226002)(8656003)(189998001)(53936002)(8676002)(5003940100001)(4743002)(7350300001)(42186005)(33646002)(5009440100003)(76176999)(6306002)(6116002)(3846002)(107886003)(81156014)(81166006)(110136004)(53376002)(101416001)(50986999)(1076002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3089; 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; BN6PR07MB3089; 23:6Kruks6Sn30oVBfE+b4CHUR8iiEI3OLlem86b6Am5?= =?us-ascii?Q?ErSuZlInJMmn98JkwK9xJV+pOGvSEeKJC5Pf0sJ1Z9QYszSIMmpKoIumHpuz?= =?us-ascii?Q?MknkwiToCvZ6ZWoTn1LcJPIe1Ml97US3ip0KiYh5TmTZhrML4YecZrI1DRyT?= =?us-ascii?Q?gDXRLVrNx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EEZe4jqGgdoLMDcp9YPj8WY2EBOnM0qg0NRXcsGd+v6Xr9aSXcsBCKgWlk7nS7SExkcadgFM0FRowirry6fFTBGobysVBm1g+iAsbakIZ754RAF16pyZiFT0Agd6dAmW+ebFRLSIe75ETXedR3C7/2Cez08ULqw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2017 06:08:10.0256 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3089 Subject: [dpdk-dev] [PATCH v4 0/7] Infrastructure to support octeontx HW mempool manager 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: Tue, 15 Aug 2017 06:08:15 -0000 v4: Include - mempool deprecation changes, refer [1], - patches are rebased against v17.11-rc0. v3: In order to support octeontx HW mempool manager, the common mempool layer must meet below condition. - Object start address should be block size (total elem size) aligned. - Object must have the physically contiguous address within the pool. And right now mempool doesn't support both. Patchset adds infrastrucure to support both condition in a _generic_ way. Proposed solution won't effect existing mempool drivers or its functionality. Summary: Introducing capability flag. Now mempool drivers can advertise their capabilities to common mempool layer(at the pool creation time). Handlers are introduced in order to support capability flag. Flags: * MEMPOOL_F_CAPA_PHYS_CONTIG - If flag is set then Detect whether the object has the physically contiguous address with in a hugepage. * MEMPOOL_F_POOL_BLK_SZ_ALIGNED - If flag is set then make sure that object addresses are block size aligned. API: Two handles are introduced: * rte_mempool_ops_get_capability - advertise mempool manager capability. * rte_mempool_ops_update_range - Update start and end address range to HW mempool manager. v3 --> v4: * [01 - 02 - 03/07] mempool deprecation notice changes. * [04 - 05 - 06 - 07/07] are v3 patches. v2 --> v3: (Note: v3 work is based on deprecation notice [1], It's for 17.11) * Changed _version.map from 17.08 to 17.11. * build fixes reported by stv_sys. * Patchset rebased on upstream commit: da94a999. v1 --> v2 : * [01/06] Per deprecation notice [1], Changed rte_mempool 'flag' data type from int to unsigned int and removed flag param from _xmem_size/usage api. * [02/06] Incorporated review feedback from v1 [2] (Suggested by Olivier) * [03/06] Renamed flag to MEMPOOL_F_CAPA_PHYS_CONTIG and comment reworded. (Suggested by Olivier per v1 [3]) * [04/06] added new mempool arg in xmem_size/usage. (Suggested by Olivier) * [05/06] patch description changed. - Removed elseif brakcet mix - removed sanity check for alignment - removed extra var delta - Removed __rte_unused from xmem_usage/size and added _BLK_SZ_ALIGN check. (Suggeted by Olivier per v1[4]) * [06/06] Added RTE_FUNC_PTR_OR_RET in rte_mempool_ops_update_ops. Checkpatch status: * WARNING: line over 80 characters Noticed for debug messages. Work history: For v1, refer [5]. Thanks. [1] deprecation notice v2: http://dpdk.org/dev/patchwork/patch/27079/ [2] v1: http://dpdk.org/dev/patchwork/patch/25603/ [3] v1: http://dpdk.org/dev/patchwork/patch/25604/ [4] v1: http://dpdk.org/dev/patchwork/patch/25605/ [5] v1: http://dev.dpdk.narkive.com/Qcu55Lgz/dpdk-dev-patch-0-4-infrastructure-to-support-octeontx-hw-mempool-manager Santosh Shukla (7): mempool: fix flags data type mempool: add mempool arg in xmem size and usage doc: remove mempool api change notice mempool: get the mempool capability mempool: detect physical contiguous object in pool mempool: introduce block size align flag mempool: update range info to pool doc/guides/rel_notes/deprecation.rst | 9 ---- doc/guides/rel_notes/release_17_11.rst | 7 +++ drivers/net/xenvirt/rte_mempool_gntalloc.c | 5 +- lib/librte_mempool/rte_mempool.c | 42 ++++++++++++++--- lib/librte_mempool/rte_mempool.h | 75 ++++++++++++++++++++++-------- lib/librte_mempool/rte_mempool_ops.c | 27 +++++++++++ lib/librte_mempool/rte_mempool_version.map | 8 ++++ test/test/test_mempool.c | 22 ++++----- test/test/test_mempool_perf.c | 4 +- 9 files changed, 148 insertions(+), 51 deletions(-) -- 2.11.0