From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 ; 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 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:lnDl6wlzPDvlpMwk63yIL5Jx3chhgSgQ3BJaElPsNtq/7mfJuQ0wc8Fd2K5RUQXIH34hbKbCZD0tDb7E0Cyxo4rJTluuId7qPw5rL6UujMWoWgQ2jjUVv4s9FPlWs12WXz6Sp6y7eHE5sg43E2D89roHJoNK5iUaAfJff4vIjd9V7s7KEO9kibK9dpIvbndZSIUwOaOCvCeACRVvggogUzCqwI6TZsSmpKlnvVhst78qECjO/NOhDv7+yPwfv4PV; 25:yq8HPWluYmB+EXTUw0nG0455Di5phN0QcQI4c50JuyoNfz1M0eo2ZJHmlD1JWXguhHO4/PUncXG3pCfh/EY0vrb2jij8gFChXysi4HxBZLUTtdQOn7KJhEeQeD97uO8f8r+9/RAkCvOcw/5cYf/+lKk5MTqhLjHU54NC1gL59Z/v4a27+l96eyx7UtZPp3fM1KMzsuogQW7xpmlq/Wsy2ZKgQqVMR5GPohtDpWmlZrKcbRI2YBJ+KT97tH/Mb+n2/JWrf7hVxZxLUmWRrgpCkJtrZDlZpZ+Bj7PibYRnE8D7drmHwRRb3DxI14DrxdKtUWB2pGIB/+p29Xog1kRJrA==; 31:4uCYQ4EgCuS/MXBK9xbxsXnbWHtmyT/hGTrUFqfpggPBHn7w2PnPIbcia9SKoNMbB3VpDpSYP3JgwidAGqM+4v15brcCRolHrq4M6QLt9EwmhoZ84DzMSV7NSxzvV4F6VRo1BbspSC8e4RsV7i3x8u/4KG51EWbKMgRykDuggHo2JLb5jehSPde0fT7VlPZUZS7mnc4+ydWS9MWPQTCgNS077qL/nPb2Qb/F8LorKpw= X-MS-TrafficTypeDiagnostic: AM2PR04MB0755: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 20:XnA6IyQAn86jajpbpFAW0+R3BB5S/ElUEpgnpghbZjDTI2Wsnzx//uc8tFsuI73QECkEQeuW3C1KkfZ3vJy+mAsdWr17JZpyK0bQ2bCyM4zdo+x4EPEvjtUSXo7QFQvZidQBPu9APrhGjzoW2DZMbzjjvSd8Vj/a4tF8A/V1QfdbZyQfDo/PaCQAnukMKjVn61TqZfLFep2dMcj7pXBumfutslsBQ/8byKX71HrdxUqd1TgJvwe2Oh4GQIzVqP96DHQplUIGFq5bARx8MfMpLZ8LGHae+j0pT0dnJNlWozwBI2gb+3Eae+I+todr9TAV9iFosg0X2Tr6V63k05p4zlFA/25yMoS6xtv/lRuXRCGuD/hhI/Vhri822xwmKg2dt5R5awTh04QWe1194tPV7pgopgT+f3CzMJmLbXSDP5UPBwxkWxZAg23bqzev4L9sQdL6AKb/L1MTQqwHe2bUi7vYNb7d6iUF1vb5pz4kczILTHrZ53SXeMB6KHA0hpgt; 4:ESwHWfnd5lwXEztqfhtQri00qBAAlE1a8xfTZczlJQFUas1ZbqH5iVER2VvLSxj6BAZSNv3uWhmlRI5hsCtAH3/jPaORPMal96mK/N3ZI1+QQ6vUF4GLhNEwRA8OGS2fDGEyNcFYfS5D8Ry4IthSgIeSHDltbhxlTu8NGS6WrAfe/vpCidhmgOg4y14KZOHm5YpeqP2nXyvtpdLYi54qHIdZIuhj7MJjUgyo/qwP1bunrL41ntNA6NncUvHg9EXOOUUFiR1aqlf4LOjjpaViri1EMBBQGwII4urX9loinlCQU6tSWXdPYUG1pbPvSeCe X-Microsoft-Antispam-PRVS: 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?= =?us-ascii?Q?5h3QsNCQE4qsoVi21NQ3EtiWUv0DWf5rhEwxgDXvmfEpo9d7TYaZ6as8Fkaw?= =?us-ascii?Q?lULo83k8ic5cVJzqJJqH2IPMQKZWZxcJaEj5bqW41GYof1gHqiVJTlGo65YO?= =?us-ascii?Q?f/WwwKKOr3euvwQZd61DMp1ubuw/fLVEn1/fb/InnkeJNZVyZLXdvmiU161V?= =?us-ascii?Q?843Rj/FX1r0xHmrfMQk/3Xb+bStof02rhOtDEnDzSG+ycJi1eGXJ+oBsq4gW?= =?us-ascii?Q?oSZC/Vo9nsh/PT2hDwtcyZjDnBQ6A6eiIbSlAHyRxyk6L4hNlaNuQe0tIsvS?= =?us-ascii?Q?0NW1OS8CMzdfatOC1tZIL1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WM09hLZrvVuF69Dgj5Wqhx7hgbCMiFVCKkTi5t5KRB86gGw5sZ6meeyrD06nyJc42LM7xXffWiGtdD0nRE/NmLxzTgWvxK5jXQ/kGil5UjTsCnWypZbZ0fgSB5YBJxpUnKwBKkdyLFFL5YtD4AHamwcBDrgUYe6zCt/lwklV8tbvCUQZemcPNN5LyMuTkjjNyXt92PQjpZ8qxby/qIiQPd85ivIvOZOlRoHUtJhRIMDHj7yolaIY=; 5:/aiNwKY1yYhjoXvFFNm9EB7jwClABV9ZRz/kl2B3H5cYJhTJ984H4S82TqjTS/9TJlRQpPLmLjXBdyvhbBWEdIN21JHcvo3Dti/qRxn+key2zhlNbxhG+b7E+h6uT5XIzAg9IpKJvtt+AUVkkihn1W/cTM+o0bke4H8GP/rWGDw=; 24:1VjevDg3uG4Mic+nQzulvajPrSS/3GDx8mW/Ja6z+JCX85OLppeEBDAfs2kf7HNo6Hr+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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2018 19:48:39 -0000 This patch replaces the uses of default mempool ops API with newly supported best_mempool_ops API. Signed-off-by: Hemant Agrawal --- test/test/test_mempool.c | 3 ++- test/test/test_mempool_perf.c | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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 #include #include +#include #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 #include #include - +#include #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, -- 2.7.4