From patchwork Mon Apr 2 07:36:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132649 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2290057ljb; Mon, 2 Apr 2018 00:38:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+AXQBiJ1Uv1x077NwRjo4K1I0JnEfyV+N3MP0n4WQ3mrd/kBhMoPedGo8VKfndvQTtk956 X-Received: by 10.28.194.8 with SMTP id s8mr53852wmf.134.1522654728461; Mon, 02 Apr 2018 00:38:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522654728; cv=none; d=google.com; s=arc-20160816; b=ruPZ2OGs/u82PQVFNDoSnpqgVX7yXj7nlfGCpnhb4wbBcbD/09DAOk0GQ6gdHozDUw jBfwqrNFtU0oGN5zXX/HtiOGnQ1DL6J5/Bt841/SX1xygd8rdn1ZRyevpTzEkIz9V9im Ph3ML/k3oQVSedYcF6mGShJt8YYDkK4JExtogz6BpFMUz6NkGBC5tK2OP2f0CgKHR4Df WM+Iqpfpo4LwtzLFAwqU6hIAJDcRnDXELVlyrwLEXXyKFSHDKE6scYOovk6CxKsoLQK5 dbIxqzVmNPdbNwvjbjQDvoUZbttdWe5K6SHsQTSQkZhFQn+nxNQOv0hChO7PTZOzU80f VrWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=mUl5nm+iw420ovwUpH9isdvpasSf6HMbWTrnNHtZ/tQ=; b=yAfOSLJ1cA+TMOoMxQ93Suyj8oPJSQxSvMIa539PElxyrTwz9xckjn3EqphuCQnRFC ynBCdBTDJqoM8LFF5EWBXRWyKmvvZ5Ua8/r250ec0I7mwMLx/s0/A7Y5P+PGhwM6f6pX 4AvlwKWeWDk+fhn3EJ0pCF6ChGFQQVF1uSIMEO/CLbWPNQKOINzrYE91jXtd8FRGHgE5 3QQ2eviVNnDD/GDJLZL33AnsEaFzVZysUryyCU+2upjIjU3JOe+pk2W1thhm4FMalxvl qdKpxS5tn+4iYoyvxJ/2Dgqe0rjl+ibCWlQNeV6Ddy/4Qnsczu71WYCw6HT0J75kkpFj MAag== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=Kewga/Kc; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id c12si10834351wrg.275.2018.04.02.00.38.48; Mon, 02 Apr 2018 00:38:48 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=Kewga/Kc; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A157CAABA; Mon, 2 Apr 2018 09:38:33 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0064.outbound.protection.outlook.com [104.47.0.64]) by dpdk.org (Postfix) with ESMTP id AC4D5AAA7 for ; Mon, 2 Apr 2018 09:38:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=mUl5nm+iw420ovwUpH9isdvpasSf6HMbWTrnNHtZ/tQ=; b=Kewga/KcRCrAKJ3E/Tpyor585wY/S7pFmR3cewZxcD7SOI9IPJ99vb2bOyOoEPnkp+kLgllUTinaN3+CeLqJIgRqjVgFRna3jZ5mzz3geKAE18KMd2K3ck9hJIxqsw2gxvtqePvGu3DlfJX4DWWYJS3RaS7JPUYm6xSs7PNUo+0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.609.10; Mon, 2 Apr 2018 07:38:27 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Mon, 2 Apr 2018 13:06:29 +0530 Message-Id: <1522654594-2757-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> References: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0048.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::34) To AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 47989217-cf08-48ee-c539-08d5986cb9eb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0753; X-Microsoft-Exchange-Diagnostics: 1; AM2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CXqao5TIcC8X9otRRvK5R+7ow/LFHraLDAn5EuhJq5U1N3l8R68yMLBpRIAO40vw/+EkI/VFnp9KZ+4ffAQUfoWyC5+mma/nwh5hBkDQS4JXqayj50cA93hFRwjarVZj+UI7vFV4kMFeOyTvU6AqcfDZtn7BfJXpvzWvqOuZ+BE0j9ObRIWXC2juNBcnNlBRrRNSKj0J77Tnf5Fbk/NLgZVk+Te2Y9mZcU47+ON5EtnRjXQGYmjZ2cJBaw84p3z1cEbLn31gzdG7kS/p5arE9EjP30ZFgZdjF9wWCgbKp8Ul/zMNZx2O2plR4VB732+ACoyhrTD390ScUIg2cBvq0L1li7DwdoFOgcgn; 4:WfBqraA3AJGAtH0JyK4EsWqST88SxKvl+fiZ2Yqhit6QSPfya9UATmhQAecvmEKcOgviRpPQ+X/PYrDKhJt/3AYdQiACiRs2Tfs4jMLNfw4T/daxFsYYXjw5SgJH78MuTyJgCJt81iObPeoVf3APeP/dQOHw9oL/uRUzCYBnX1bqWKMngTiqIll/MNLBSl/M7yczmMGxTacqRV7ymT65NbDXHqhywecD6voWx3dJ0A23iD9IUUNfa0A7kuGFIMfQsjs58yzDqWWt31x7p/uCxtII9TFs9RJJLH4v2qDDRTh2D75YPk/+HqJWxeLJwiPWlwD0Z67NGv91oTP7hBKMHsB5yuqOZAigk4bo6EUIPK8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231221)(944501327)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39380400002)(366004)(396003)(376002)(39860400002)(199004)(189003)(2616005)(106356001)(76176011)(68736007)(16526019)(50466002)(59450400001)(486005)(5009440100003)(55236004)(6116002)(48376002)(3846002)(11346002)(47776003)(16586007)(53936002)(66066001)(305945005)(316002)(386003)(6512007)(956004)(446003)(105586002)(7736002)(6506007)(186003)(486005)(2351001)(6916009)(26005)(476003)(4326008)(2361001)(36756003)(86362001)(478600001)(2906002)(5660300001)(8676002)(50226002)(8936002)(81156014)(575784001)(81166006)(51416003)(6486002)(25786009)(97736004)(52116002)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0753; 23:ZTntqHMdrEDuhutQ4ijpqtk7kYxY3DHxGWtvmd/oT?= sKbVtV2MPbe8fSeY9DwAkmEwP7F8cKpGRcm8MnSnbXIh8wMh9rWSc9L5RsjjZoakErzYxciMX8rIMukavMNKWPThfZSpIEnqELKWVSYxaf/g50ogLjSkmmi0gsEKctpoK/9U4YYGNLHe0iQW9MDrOQ480k+BbKt7dCNx3mm0r3BkL+a63hfqIDqP4PEB3ozhQyHfSnOXzyStop/qiBZ1TUzpzl+UK/n/5U3QVIGZQVsV/xLSrXf4puJyjspoMiJH+SWFAl92wieA36legI7xE+3cnN949meCywlNQQamJ//dY8PuO8Rg8ACmfO5NLGswK5W1MvxGdYZ6ckaoweL9dMpzvIltPSjwMrao7jWJEpqGR5a2dF/xyQmfSSwn4RFY4Yfi36C4edmZcnJ2dnxPRrpQ6f1Ce791eRXEoHEYi5mN8VqVhojNGCUsyGtVQrjgwb3pEP0o+8X7sKQb4fwxio6eiODezD82f508q15lzbE6PdIeq4yy8vTx7QXnT99pSABsgQXMkiSTArzsmzc45+UNsNW+h/Cb7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JcL0XtSsTSKCzwq6BDzjhmzWEfowBJf6UruwsgcPJYp4be4MTEIpEQ7Z+E74LHHKM0jVVDTkj08qRR6+RzjPPRA3LxdxvLRc+AfSO/p8O1+PP2TuabscFsovk8bhOhjEc8N3anIMdtIpwm23Oh3EUM2/LZH2xWQrNPMbpA1bFmN9s6gBFoH/rvSum4bPDOfGATceHE9o20HLUry3nyIOVDobSf7wEJnHDOuZQYq2ZvasFhfWpNrh7uILJ8p9a82mpsPpY7hzFO3SQPQ+VtjJ8tjGB/rryA3vYoy3JorLpCwyFY9usxgLlg300QywjBddllnW1OG0CBxF73lUp6zGIDeQmpk2Nns2aG0/EHJFUHPM2A9PJAZxyUprN2X+VjroVO8LUJtRjrBQMlY8MTtdw==; 5:QMWpYwMuUo3fOoRXHzaL/QTNeXGTiitSkYYwP8wmLNTMDihD6qYmN3mxvzf7XkLM84mM+3OWR8j8n1GNNN/r6xI2TvQiawOirHls0LAxiKsLhnoAoTLmk+8/l2P3k2zrmrYZwModMozvIYufMj5Q0R4SkmRb8fOtBhK1fQLX0fE=; 24:0AiN2/ghIebA1xOFKZe9yTO/4k5VLUqHH0DBehmQDE24K9UXIncVVbmae3TlHUI2k5UOZxKA3HPnaMTulQD6xoZUJfMTW8iBV0DUXlEwLto= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:glJpqVPc25HVSQA9V0OQHRDVx8UZRQOksz7jNJyui0Ze3IPGwC7y+QLs9c6/PF3qzJ0mWDjdiwihvINEpBergONrYIdad7p1RZmSoS8fAOA3eQ2JVDfqhfrvqAH70YdcF/nCpxd/jUwQvh4eRrnPa95FLTbS9iyUy+qQb8fjir91avZmKYfhwVvkbdXDWRaEsBZ27ll8iVR/xbBNVZs9o8A8e/ryj0Fle4lj+dYew77GpMDURIezFz8eMcsnOO6s X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 07:38:27.4990 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 47989217-cf08-48ee-c539-08d5986cb9eb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0753 Subject: [dpdk-dev] [PATCH v2 3/8] app/crypto-perf: enable it for non default mempool 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The current code usages the default mempool ops while creating the mempool for crypto usages. Adding the support for best_mempool_ops to enable it for devices using non default mempools. Signed-off-by: Ashish Jain Signed-off-by: Hemant Agrawal Acked-by: Pablo de Lara --- v2: update make to allow experimental APIs app/test-crypto-perf/Makefile | 1 + app/test-crypto-perf/cperf_test_common.c | 6 +++++- app/test-crypto-perf/meson.build | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/app/test-crypto-perf/Makefile b/app/test-crypto-perf/Makefile index 3935aec..28a0cd0 100644 --- a/app/test-crypto-perf/Makefile +++ b/app/test-crypto-perf/Makefile @@ -7,6 +7,7 @@ include $(RTE_SDK)/mk/rte.vars.mk APP = dpdk-test-crypto-perf CFLAGS += $(WERROR_FLAGS) +CFLAGS += -DALLOW_EXPERIMENTAL_API # all source are stored in SRCS-y SRCS-y := main.c diff --git a/app/test-crypto-perf/cperf_test_common.c b/app/test-crypto-perf/cperf_test_common.c index 21cb1c2..fa1dc49 100644 --- a/app/test-crypto-perf/cperf_test_common.c +++ b/app/test-crypto-perf/cperf_test_common.c @@ -3,6 +3,7 @@ */ #include +#include #include "cperf_test_common.h" @@ -124,6 +125,7 @@ cperf_alloc_common_memory(const struct cperf_options *options, uint32_t *dst_buf_offset, struct rte_mempool **pool) { + const char *mp_ops_name; char pool_name[32] = ""; int ret; @@ -193,8 +195,10 @@ cperf_alloc_common_memory(const struct cperf_options *options, return -1; } + mp_ops_name = rte_mbuf_best_mempool_ops(); + ret = rte_mempool_set_ops_byname(*pool, - RTE_MBUF_DEFAULT_MEMPOOL_OPS, NULL); + mp_ops_name, NULL); if (ret != 0) { RTE_LOG(ERR, USER1, "Error setting mempool handler for device %u\n", diff --git a/app/test-crypto-perf/meson.build b/app/test-crypto-perf/meson.build index 6eb22a5..eacd7a0 100644 --- a/app/test-crypto-perf/meson.build +++ b/app/test-crypto-perf/meson.build @@ -1,6 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2018 Intel Corporation +allow_experimental_apis = true sources = files('cperf_ops.c', 'cperf_options_parsing.c', 'cperf_test_common.c',