From patchwork Mon Apr 2 15:33:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 132662 Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp2710572ljb; Mon, 2 Apr 2018 08:35:55 -0700 (PDT) X-Google-Smtp-Source: AIpwx49j8kudWZ8NNjB8p7JKrA1WmuMAd2L1r0cnWsk77m6kYCtofZgKQVnjlD2z8I05qqYKawcN X-Received: by 10.28.153.12 with SMTP id b12mr1361749wme.104.1522683355307; Mon, 02 Apr 2018 08:35:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522683355; cv=none; d=google.com; s=arc-20160816; b=Q5HsLL88GvMebEmBgUs0C6tipGvhB2C5tYhpqeXILtriNfuQQraEerttm5RDCzUIMc Uf7ULFMe5+dn/XG6XqvJoc7Re+3Ypc6uha+EbUwApzezjzQUB+rtWJRjiTdpvHQlA1UJ 9fv4DrnkiMmGbX6Nf4Vmvzk7x4b065hzICwP7w0W0WSxeBS2HXCHQbpmc1bh6bkNBLjf 532TZWBnFhcsY3hgOl/oQOPQ5bHNN35mToy5JghGj543HIzdalLkpZC+ZEx9Okl0KOH3 XzPAyFGOZp08nspCLh39+AGL56kirjE51i/oC4/xC2UTUt+jHr9Ts9T3sBSG4C+UoFFG QQOg== 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=QkPLQQm9C8E2+VWcKX1gXKCjisF7juWe9nEzkgDdB+k=; b=h5SfJEe5neXywZjbmIg6dVMxSgabI4NjJQbFANnHBNioRzOtgiRhiYdTx6I7S+7EJa AukLdJzhsRyhAqX5LSJDa8W1uWiDc33aiFiuPAJsqfzgygyiaQt0Bg1bfWqvT/uAMP3y BgU288qEjfljhRoHu144YRiTdAH5p2Dwqx90818m6iSJaSk0yuzCx2BJGpqJewU1S83c hftISCrqIt41AZ4XQ00QWx4Iei+SejIe1M/M9g94c5tFt7ErqrXUyUgEdPymN4Ai2Rej glhiOhqAylf0e3Ndetn/oi5lKEoOK/dx4VKyWQfy0COAmzQw7DbiMtW+mPrGYMELVwL/ jGng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=AaW0y7kW; 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 e124si534811wme.170.2018.04.02.08.35.54; Mon, 02 Apr 2018 08:35:55 -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=AaW0y7kW; 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 C6BBE1B1BE; Mon, 2 Apr 2018 17:35:26 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0040.outbound.protection.outlook.com [104.47.1.40]) by dpdk.org (Postfix) with ESMTP id 31DE81B167 for ; Mon, 2 Apr 2018 17:35:23 +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=QkPLQQm9C8E2+VWcKX1gXKCjisF7juWe9nEzkgDdB+k=; b=AaW0y7kWUFf+Ktj1FxzZBbBmJf35/QmzwMrugud4A20cH2H5CUxebaMgjKTR3mbElyWe054jNO1idUZ6oNPaoQiZOGxGseI4qEPVxiOTojTar02KXBmtRe04IqJQfIp2QQjKEV5f1qTV7IDjHxmsWS3eEBRJGAXPEwndlM9ZRqc= 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 DB4PR04MB0767.eurprd04.prod.outlook.com (2a01:111:e400:984d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Mon, 2 Apr 2018 15:35:20 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, akhil.goyal@nxp.com, dpdk-up@NXP1.onmicrosoft.com Date: Mon, 2 Apr 2018 21:03:16 +0530 Message-Id: <1522683201-23963-4-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com> References: <1522654594-2757-1-git-send-email-hemant.agrawal@nxp.com> <1522683201-23963-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR01CA0090.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00::30) To DB4PR04MB0767.eurprd04.prod.outlook.com (2a01:111:e400:984d::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 0d26a14d-f3dd-40e1-d733-08d598af5878 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB4PR04MB0767; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04M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KTufNN7OGPID00ijOTppv+ISCmblcykTtOpy5MbnpCH2g65X5EqaL9nGw9+1oPsqnibwLSfyrvsM3srQzAUJDUwzxZ8KNDA5mAdZ02Bh1yiFcPzUTwiBaK5noJkRHgd0iuuU40RFlN37GaOz9JmtysV7dXPXE4L9i7MJjBjU/f1seNdblw9nFruUQxO2hnwJBQRW83TVSOji9irCi8pngKcZ6500ajqZ5NTlqEUaJd3A/1n420lr+AdgV5VqHu8z/tcnm/ReaVpH9IEgmkNx4tuwKNCjKp2qzCQ6+8Jj4Rq4URieLDFF1MIttPGwYfpfAFn4dCkMWvRWUc3nkvDgaFBcxsFk; 4:azNQm2xfqG4O3VjPC5YJs27FCmJw3EaDqvCaXPxCH2g6hZKx48Glcwp46+y9GiVzCXKH16/C0auAxMF0vsmvOxW9HO57G9/BlRKmQGwOqbvKlGNEHH0BGCNy2isXYU4kFqmDxdGNTjF3cFUr5OusiU2HE82PGe/5wdELGg9iorJEMlk2X+utqASMSsKiaeTzkMI9oFHYeUVSsmg/17qg/19iRmBP2HjlKk27TDzfr+wLw/JIXaWi0HyRWI1aqlWg/XSKGUwBJ6NIkR+Ag9usw5DoLyMzwKsFD3MA31JKM4axcLmH9YHOb75rLvtDTlnADXlTySPQHUJwTlnF79rESk3gGXY3tSvmfbADYNa915Q= 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)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:DB4PR04MB0767; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB0767; X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39380400002)(39860400002)(346002)(366004)(396003)(199004)(189003)(16586007)(16526019)(575784001)(86362001)(6486002)(50466002)(76176011)(186003)(48376002)(2906002)(6512007)(55236004)(47776003)(2351001)(5660300001)(73566003)(6506007)(386003)(97736004)(2361001)(52116002)(51416003)(305945005)(105586002)(486005)(7736002)(81166006)(5009440100003)(26005)(8936002)(3846002)(53936002)(36756003)(107886003)(476003)(6666003)(59450400001)(6916009)(25786009)(316002)(4326008)(6116002)(66066001)(478600001)(956004)(8676002)(106356001)(50226002)(68736007)(11346002)(446003)(81156014)(2616005)(486005)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB0767; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB4PR04MB0767; 23:mqPNBwJXvjVfU4XW+e7ckeeuwYM9KIL2Zu60ELtVq?= WN6Hnmk8OBaZiTcitEP8DDSqGy0azOVOIZ5tMzE0o26nKdzvjgMbVLK21+VGbalHGYpc9Fwu2/QWJ9kZTIBOEpXYDPxNARK7MfQFYDUw7E2AkqAppBuaIdle6BcMiLHqGbwcyRR24z27d9p9ExQgLY8coEZPqK7+6hcc64u2vO73tZ/smx7xWHJlxVSK0ixq+6SWSlC/4rk7Lzr3S77HFuGQ4G8yUSbLaswDR8R520Ihn4G+GsZM1XK3XDGW2sNrLjD3l8aeRkI/1hVIAw8HUgOfYZxDU0dh1+IDF7O+MX0/i+8JUZVcK+udqbIAi2PH++dQEsQP9+p7jIzEiP1l5rst8hTHwEXAWHCwEmy5usQIAK5jhOl5cVNRmJkvtH7/8YRULvgfddmEWh3mRZq0LrXY+zY8snKRYFeB1InoSmnGm7o2MqXB/XK3JnPcbfWQ+Vwlwe0CmecHbYgxX7140XaTi5gpS18jXqZFjtobm4CYuoT5kJb8TKKZPurSGWzkA6kkNhlnQSfzYFSYp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TkxBwGfkLXbv1NHFo7OP70yxeIG3ZNDcde0gcda2u/9 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 15:35:20.2556 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0d26a14d-f3dd-40e1-d733-08d598af5878 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB0767 Subject: [dpdk-dev] [PATCH v3 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 --- 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',