From patchwork Tue Mar 27 12:00:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132474 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp4987561ljb; Tue, 27 Mar 2018 05:03:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELut15H+vuDTjEm4Vo6v/Y5WgOBkyZiIY9+LErZTBbLoGqVNWSa7BXHtduRsG9+cTdNA91OD X-Received: by 10.223.138.138 with SMTP id y10mr31433510wry.44.1522152193391; Tue, 27 Mar 2018 05:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522152193; cv=none; d=google.com; s=arc-20160816; b=fWz1NA0zg6HXFBmg8wwwP0djUrhUAxMU+PQPu7fmTcwLmqyy/JWymYoqhF/L/yUdjr IvNwwt+v6aSsA0OWcu3eu9GaaG2wPeYTB3Q7PQlH/UwgJDDL+kZsIinrj0dEdj9WTqWt RNnmNcRw07Z42dcXmAHKLItGnicXvL+BzRIzFSbpZ3aClNcS0p7fyTTVtbuTxdI+Ecr/ val/XPg5pRphPkSaQx2qZVNvgiwkI12TAjblZ2r0BdGBbCLv/2OY8YKPtIggshNcisH1 lAPN2f61wgrHNvXYDcLNvgDOFbgfk1H3bmlUU6cDl2vkpiVqKBwQSNW2RnBNXEHiCito uNrA== 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=2HAxMGXdLuLFGkLWNQ/N+0VymnkVG1AkYkrF310elwM=; b=Sw6q43EsFSE9BBZiPkIGidIzSA7cnHFyr1zr28s6zefvhbw+/M1pqY6eY94YXea718 HV3aGyAugZcFAa5GwjEqxcYmX+u0vBpnl+8OIQkB0XwH0eKguvh9thZloM+uGp5pG7/V TWDRpqjTHnYG2AxHnPtd//ESk5m7Pvi+8PwrwPMkJ6uExPBQ4lbS7RLUcaQMyTDKhvHH QORSPJdUkGE0zt7FsnbH/MN0fFNHjQa1/SdOPUiDzRU0nO+zKCZVGIvY2S5z8Hrkm6Xu xzocfaTZS2j1BxUbB6OnzgA5FDMhZPXzLGF7NG48VzIj3/u5OK3oaupRLM8op1MbZ7RD wggA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=ATgemEsi; 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 d25si997485wrb.217.2018.03.27.05.03.13; Tue, 27 Mar 2018 05:03:13 -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=ATgemEsi; 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 29DA744CF; Tue, 27 Mar 2018 14:02:48 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0079.outbound.protection.outlook.com [104.47.0.79]) by dpdk.org (Postfix) with ESMTP id 53FDC324B for ; Tue, 27 Mar 2018 14:02:46 +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=2HAxMGXdLuLFGkLWNQ/N+0VymnkVG1AkYkrF310elwM=; b=ATgemEsi5GH4rz3oT0ne08q1MR0L5TEocb88axrP8hfzZOMWuNchGVXk0ADb4JaOMLyHVwzBIiBC6CEnZmfNDyjmsDnnLF9R4qsah2ZL0g71af0fzI7vFFIxrYPup0OtdOn552lmKLIs9mdcQtBbM4Eed60cdWu9s3XIxR5bkX8= 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; Tue, 27 Mar 2018 12:02:43 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com Date: Tue, 27 Mar 2018 17:30:35 +0530 Message-Id: <1522152039-32493-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> References: <1522152039-32493-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0016.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::26) 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: 984be6a9-8823-435d-08fa-08d593daa664 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; AM2PR04MB0753; 3:HKJJylQZvUeEjzpVOuL7VYFKsIRIRy9jYw6FA+zTDe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Det7Ub3DN4YZfh9hySHNHmhUEfuNY4WJ0o1UOqGX2hr+1gfXF1X0C+2IiMqguR3PplhJGZ0dAn3FsxD2UW53sP5akRBuT+b/0fy+l0RrcO5WdwNJZTudG43PtQ1SgmmNEAOEV3L6Iah+FxaWLEJZLFd2ixEOdrvklzbiuhf1Aunes2P5pjYlh8tXyjIBPoYRYdqUOlnvsVrowYDpqA9vRSyF0xGn4PMbHiBIBkzlz4yYoYHctSBoNA6Qc3QT+VNpYdL6quSAYb7rcV+1F0q6+1nPMzKhONR1UT3jDk3a; 4:B731R8B/k6Vb/W6223ShbkqCxGN+qyKAwMD4x9AO6TH9PB4a82E25Xcoj9KewUGSqk/F7RupWdvAsCfxgcP/g99a3/Tx2Y4RKlH9Uf7DyLJS2Ym+TfE46hGWEE3gAORw87ovvayRnEF5BD6i6PehS8j2vSJIwqPGKzmKrUJMxb61RbeEnUZFp/ylm23k5GYqnrDW/O7neBSgEX7rTu8c/FiQzeVTf1S9AYDkFBNXwbeZc9050BGPleZoYQJ5NlBdBKlp+H7dvB/0bdlRbTAKwPiMy9CI5+NWB0hA1DKWXm8gJFUofROJOzYsQt100JP8 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501327)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(6041310)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0624A2429E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39380400002)(39860400002)(376002)(366004)(189003)(199004)(50466002)(6506007)(186003)(11346002)(59450400001)(16526019)(446003)(386003)(26005)(53936002)(55236004)(6116002)(48376002)(5009440100003)(3846002)(66066001)(68736007)(316002)(16586007)(6512007)(476003)(2351001)(47776003)(486005)(76176011)(486005)(956004)(105586002)(2616005)(305945005)(6666003)(7736002)(6916009)(106356001)(4326008)(2361001)(97736004)(52116002)(86362001)(8676002)(8936002)(2906002)(81156014)(81166006)(478600001)(5660300001)(51416003)(36756003)(6486002)(50226002)(25786009)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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:2ovJzl6mjm0ZIfbQs6rkMmxDfPEBNXeBh5boccG+o?= EZN56RU4u+ighuyQ+VQomHw0pr2migtUJBPYDgqTOw9uJ0cmIuKIOm8H2h6pOVuRSLPdFUTShwoSLwvYJehG1vgsG79IzbcCTYCET0M3/n1HEhnQaBxBKTGRpNsuldVzfvy56YF1ZVP++bOhe1XjeFZUunPfMtf7nw0CO0retPObXec0LUNh55WzbRCX6GaYOnnNwCBQWA8LjX1AR+jyET8GrWfeoV5qH4Wleq5lq+/2n/1+qytkx4KmnPUVLAeSwQ78XSMr2f08UI7gme8jwatYm7af7HHUSGut/XQ2ne56IpH+uwAxNSLmKKJkKqDE51SfVP/eK6lfrt2f48MWSEyEKwNlnJlEZSSi75/5k+5YzW/CtqgJTRkUdhrbIFzVU0Y/V2RpzJg8yzrCjnJAE/jNFNOdNnjmG4aSxbeOJ5GINoRoilmfpSMwBnLNX+EFEoLtR19QLDVyyEH6ywIPO+0OS4eAB6z6E49sRkSkuRWWQkWV6a549nUybC8i7JKUpBe/UV/Oh10OYJbf1SEBKNbPnZo999RWG4rVhhHT19pPiIW/6++hax1qzCP5sySf1Zr7TdS0ukroPTmTLKWM37AodTtlxQPcPRxvJI6woSSLVgkHwBoPuTMhVMB0KC7eWqWZ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cf7PgbrmxoJnwCSbiI/Erx560gUuUzxuy/8OWD55rXkZ92rQb+rJH8abewn4AbGiKvX45LYc2yOlE33dKSSrnPGYI1t8oWnGE3kiFobFYiTcH8uYG73Vq2sdEJUyNJjeTlr76Sibn68/C6BWVXSz45no2rZSkFdt90ec4pKNCLrlRa8IBwiaVWcARiCte6PD/xzpmG8wYXS7jkVdjgghkFraL5jsWkXhyFntUgGULSr74AnLBubEmVmeIe6lmEgayOAOdBDKb7McCGyEq1V0Y5twW+qf3y5cit8UVVOWuZQuBC3NxPjQ==; 5:EtHa2M3BJ4VHkNkFFmH8zBWfmt3jeet3w264x0dBGSzZbhc6Mj/C7pVHJWxW9vvJZmtg267lFU1WsiCz0HwB3rPfLNTS2kbmEBUHptSRmcfjEFCOgonYuH+Mx8aIwJVbzms6ixyfW2xRsVldlicq0i2A5tugROJ+2Wk055pYqRQ=; 24:1ZFC2p2iq4tgLSVptnUUk+CBzkPeUori1N3VjFZXBTGINlrsoz+SfryLMfaa2Qm+OQIqoLQmjD003zChu/Aw6j2/QlXNZ4WCmNjJNwBQD2g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:6yxV+8YbcCKp6uwZO2myisELaeGp3XiQP/gZhWDA7Urcl62o4XkVQ5QJuZrnSp1/qIGsoccITd6XKp5Qbdv2UsePpRrxTIBgDt10T1j/m87CZARuzri1T+Dx59nluVtB5Pdy082Nvm9lsPLBGZam0ZE2cwd4aiblAtCm750tvagrp26Y7BLKVPZQTRAc7sPsAdnjauB134B61iU8LoWxwbMfi052XlFn6RCk/0KCozsxSYaELbpMQwhRQvBNon8v X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2018 12:02:43.5551 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 984be6a9-8823-435d-08fa-08d593daa664 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 3/7] 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 --- app/test-crypto-perf/cperf_test_common.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.7.4 Acked-by: Pablo de Lara 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",