Message ID | 1517514427-28843-2-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp28362ljc; Thu, 1 Feb 2018 11:48:49 -0800 (PST) X-Google-Smtp-Source: AH8x224TwEeVd2kUT6zbdeeEjsm+G/KAeuApZRElGVjgj9orzOF7hsAhnmm5hXnwhhCf5NeFoGhO X-Received: by 10.223.173.194 with SMTP id w60mr21891183wrc.214.1517514529590; Thu, 01 Feb 2018 11:48:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517514529; cv=none; d=google.com; s=arc-20160816; b=raj9snlHAnA+tKJ1oLww9pL629lsLa9Q2nKji9RYsMHMJPunzq7PVyciL16feLadj3 e5OEw5foyFgSqJvZ6Uuzl5akYo6kqhjLlrJmt77YDfMom61SPvJ9Y4YvIR2gZ891q2Xp ZZWgK2qNAwf/XhGOanx0KGlDzaOPVgmcVjgfHOjY7lYQ0yeAZkQhiyVYhez0xX1VdEtc errQ4MxqPhn7HYRiuT3pX7CAiDJNRWfC/kyDv7rxpcNxJgGrdLXfBqXMQGV+UmWo+6U0 r5ONPewv5mvvxKZgWPlCXcQ3mhUWsoZEX7VsnH0jEIHF0jyWXAnfY4z7jwiu/SAnpsAF r64Q== 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=wDAQq8zXOMujVeVR2f2wR6UP7Tr52J/aenutF2SCM7c=; b=nv1Wl+s/3LS/B2W6DcFaXkRmKgLJ08chyUBEsUr30O8Ki/wKqDJlDvp+3fu550uWi6 VVnmTDwk4SprI+CNFQxoihtABsPfgGApua7MTAtyNSNW9f2EULX2DkA9vE3eQTek98mM 56hUdqrAL6k8KYCrgQmVLZyC0zqCERM9SGsUyEkksm2XlfEpZ7y1NvQOt709JoOqahXa 90bqhiZ5RCmC9bEplgZJE31jdXYOyRjlTJYrCMIjAQ+nDWNf87qu7EydTs6kpQyuJTXN lV4C81iTt2pNQEp1bS4YJnCebDxcn7cYjm9qAVYNXItQuGNbUA7gSLIrW2zpBpis92yh +DsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=H0dLzXgZ; 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: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id 32si241190wrx.270.2018.02.01.11.48.49; Thu, 01 Feb 2018 11:48:49 -0800 (PST) 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=H0dLzXgZ; 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 1B92FA499; Thu, 1 Feb 2018 20:48:41 +0100 (CET) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00040.outbound.protection.outlook.com [40.107.0.40]) by dpdk.org (Postfix) with ESMTP id 1A0E34D3A for <dev@dpdk.org>; Thu, 1 Feb 2018 20:48:38 +0100 (CET) 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=wDAQq8zXOMujVeVR2f2wR6UP7Tr52J/aenutF2SCM7c=; b=H0dLzXgZZjP7nCdjiOhBIouB/XF2geY+yFdNCMqYlbozkJHtGJWroZnxYNTaM57Xq4mmn8tUvH2TOSYzvq0Et7Sm8aGRSOVrHaRVlkB2qwQTpNR7RxYhSdaW+M6GK17Z+14qjLfdpPvvCFLiLf2pO9Vr+dJ3EcCQpbLAmxAYU+U= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (192.88.169.1) by AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Thu, 1 Feb 2018 19:48:37 +0000 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: olivier.matz@6wind.com, pbhagavatula@caviumnetworks.com Cc: thomas@monjalon.net, dev@dpdk.org Date: Fri, 2 Feb 2018 01:17:07 +0530 Message-Id: <1517514427-28843-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517514427-28843-1-git-send-email-hemant.agrawal@nxp.com> References: <1517514427-28843-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.88.169.1] X-ClientProxiedBy: BM1PR0101CA0020.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::30) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 93a3d7c8-504c-4e19-e48a-08d569acc997 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 3:lnDl6wlzPDvlpMwk63yIL5Jx3chhg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KjVn61TqZfLFep2dMcj7pXBumfutslsBQ/8byKX71HrdxUqd1TgJvwe2Oh4GQIzVqP96DHQplUIGFq5bARx8MfMpLZ8LGHae+j0pT0dnJNlWozwBI2gb+3Eae+I+todr9TAV9iFosg0X2Tr6V63k05p4zlFA/25yMoS6xtv/lRuXRCGuD/hhI/Vhri822xwmKg2dt5R5awTh04QWe1194tPV7pgopgT+f3CzMJmLbXSDP5UPBwxkWxZAg23bqzev4L9sQdL6AKb/L1MTQqwHe2bUi7vYNb7d6iUF1vb5pz4kczILTHrZ53SXeMB6KHA0hpgt; 4:ESwHWfnd5lwXEztqfhtQri00qBAAlE1a8xfTZczlJQFUas1ZbqH5iVER2VvLSxj6BAZSNv3uWhmlRI5hsCtAH3/jPaORPMal96mK/N3ZI1+QQ6vUF4GLhNEwRA8OGS2fDGEyNcFYfS5D8Ry4IthSgIeSHDltbhxlTu8NGS6WrAfe/vpCidhmgOg4y14KZOHm5YpeqP2nXyvtpdLYi54qHIdZIuhj7MJjUgyo/qwP1bunrL41ntNA6NncUvHg9EXOOUUFiR1aqlf4LOjjpaViri1EMBBQGwII4urX9loinlCQU6tSWXdPYUG1pbPvSeCe X-Microsoft-Antispam-PRVS: <AM2PR04MB075529A3BB224F6364E08F5D89FA0@AM2PR04MB0755.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231101)(2400082)(944501161)(6055026)(6041288)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 0570F1F193 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(396003)(376002)(39380400002)(366004)(199004)(189003)(478600001)(4326008)(305945005)(51416003)(2906002)(7736002)(52116002)(97736004)(575784001)(47776003)(36756003)(6506007)(386003)(81166006)(8936002)(6512007)(2950100002)(53936002)(105586002)(50466002)(68736007)(316002)(76176011)(48376002)(25786009)(6666003)(26005)(186003)(81156014)(86362001)(6486002)(106356001)(16586007)(3846002)(50226002)(66066001)(6116002)(16526019)(5660300001)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0755; 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; AM2PR04MB0755; 23:TzjaYz/3kYaCb1xj26rHlDyAL7XfsEj4eeFk24oT5?= 5h3QsNCQE4qsoVi21NQ3EtiWUv0DWf5rhEwxgDXvmfEpo9d7TYaZ6as8FkawlULo83k8ic5cVJzqJJqH2IPMQKZWZxcJaEj5bqW41GYof1gHqiVJTlGo65YOf/WwwKKOr3euvwQZd61DMp1ubuw/fLVEn1/fb/InnkeJNZVyZLXdvmiU161V843Rj/FX1r0xHmrfMQk/3Xb+bStof02rhOtDEnDzSG+ycJi1eGXJ+oBsq4gWoSZC/Vo9nsh/PT2hDwtcyZjDnBQ6A6eiIbSlAHyRxyk6L4hNlaNuQe0tIsvS0NW1OS8CMzdfatOC1tZIL1j8HOwVscynfsXYvclX2/Fg5cjsIjKRHbZkXn85XK74mI/55adR+mFmjvJLGabtj4TTb6+/ezV0PNKDGo6vbBz93CRKo9jyudzWOmSPyyBW6a3oumWiv4KsH1hDLiJLXZrfGWuKwB65hEhpOMvmlg3I+2CZLQ/oE63Q2rJhx91RMMz6ChPK1lN7ESpbScIPQ2F+d1qOSnupw6DKSZEoPeLvoeUonLlY4xRDnQ3uKlT/7+DYiqa7vDovoYH8/+P7XuIiaR7BKj/qXAe3G0+yBLZ/YjQQiUTyO20hH5klxrxG5eJC+y4GJ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fs2kf7HNo6Hr+l88bDX384NLk4b3ArUIjdhdz/p9J+y2Q/hQCaIU=; 7:SQHFYjduEGMeRApOC/duI/0C26+9kj/j1cbjgy4VpJ8kL/8q7XD+KYiihZiztzj9QqR6JMUcIGNJONuGPMOYXT8XKuT3JqkC/SxpHX7tr8NjEiGPDlz/TtZsbGQ5vIXkGgVZ9k+hHWhoPOMC4fFSEES/GohXtPPH7qg7HPAgYY2G4sAtREakSxGFn2UQVTDkYz4t+k/7uZhs1Mqlbs98dD5Q6rR+knVlVYpxHjMR919NS8UycUUt2lwb1V5Ux8qU SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2018 19:48:37.1509 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 93a3d7c8-504c-4e19-e48a-08d569acc997 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0755 Subject: [dpdk-dev] [PATCH 2/2] test: use the best mempool ops API to get mbuf pool X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
[1/2] Revert "eal: fix default mempool ops"
|
expand
|
diff --git a/test/test/test_mempool.c b/test/test/test_mempool.c index f39df5a..63f921e 100644 --- a/test/test/test_mempool.c +++ b/test/test/test_mempool.c @@ -25,6 +25,7 @@ #include <rte_mempool.h> #include <rte_spinlock.h> #include <rte_malloc.h> +#include <rte_mbuf_pool_ops.h> #include "test.h" @@ -485,7 +486,7 @@ test_mempool(void) struct rte_mempool *mp_nocache = NULL; struct rte_mempool *mp_stack = NULL; struct rte_mempool *default_pool = NULL; - const char *default_pool_ops = rte_eal_mbuf_default_mempool_ops(); + const char *default_pool_ops = rte_mbuf_best_mempool_ops(); rte_atomic32_init(&synchro); diff --git a/test/test/test_mempool_perf.c b/test/test/test_mempool_perf.c index 70de0b3..dfeefab 100644 --- a/test/test/test_mempool_perf.c +++ b/test/test/test_mempool_perf.c @@ -25,7 +25,7 @@ #include <rte_mempool.h> #include <rte_spinlock.h> #include <rte_malloc.h> - +#include <rte_mbuf_pool_ops.h> #include "test.h" /* @@ -308,7 +308,8 @@ test_mempool_perf(void) if (mp_cache == NULL) goto err; - default_pool_ops = rte_eal_mbuf_default_mempool_ops(); + default_pool_ops = rte_mbuf_best_mempool_ops(); + /* Create a mempool based on Default handler */ default_pool = rte_mempool_create_empty("default_pool", MEMPOOL_SIZE,
This patch replaces the uses of default mempool ops API with newly supported best_mempool_ops API. Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> --- test/test/test_mempool.c | 3 ++- test/test/test_mempool_perf.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) -- 2.7.4