From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30042.outbound.protection.outlook.com [40.107.3.42]) by dpdk.org (Postfix) with ESMTP id 574241B2E4 for ; Mon, 5 Feb 2018 08:43:33 +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=Q6DX7IuIHFUvV7j1jzyHiI4c2Y2Oy/d0C3iplhYCfxY=; b=gt2KViCCTigxRVcDO7DnLuzkp3nFf/ZnrLfBBaoKGeS57REfJsTRl3ImdxKFIMM8ws/u1qehyd+LFZQYfZ4dPoskOk+/vDVEOZqmSUOWZgbLS+oyBnZFN75F/RPncu9ZPnImNvE94Br8YLD4QfazKs30YpfaUnYX0whActf5jQ0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=nipun.gupta@nxp.com; Received: from b27504-OptiPlex-790.ap.freescale.net (192.88.169.1) by DB6PR0401MB2423.eurprd04.prod.outlook.com (2603:10a6:4:4a::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.11; Mon, 5 Feb 2018 07:43:30 +0000 From: Nipun Gupta To: thomas@monjalon.net, olivier.matz@6wind.com Cc: dev@dpdk.org, jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, hemant.agrawal@nxp.com Date: Mon, 5 Feb 2018 13:13:11 +0530 Message-Id: <1517816591-29030-1-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.88.169.1] X-ClientProxiedBy: BMXPR01CA0009.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::19) To DB6PR0401MB2423.eurprd04.prod.outlook.com (2603:10a6:4:4a::26) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c21308ca-473c-4603-bd2c-08d56c6c27a3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DB6PR0401MB2423; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2423; 3:iF2a/Ug30V4c69jt+MrYoOSnjGDAiUEcMVLZynCEIoH6wPch7QkhnNymGrA7s9U2GHwIUz3Nhmv9QbYaFoTTyfrDdCJLlad6RHcXhMHG9jKqATnnJKDWrX1GZbmVdBMF2bZF7Ubmw3SZdhiom+CY+B0Et1+Yy+UOKkEnYBGYSFCFnKzIMBfuQilAFd17N4CMoeNwPEmhhdfLoEEZy+T1+W09ywX9O9DduZ4z+CWM75Iny9ORQwuwIKkqWqTrqeqG; 25:GcNz4mVwYXcehPwSfPJdFzvxuru6itGaiPEt1zm5E/V0lJhueTSqvl0XWAQj+YhUkvT91eYvushXCLMF/MNcnMXvZJBEuWToJ4nW4MWiTD4m8Jn53spz5+nwwOODcz/qtgqF8Y2NU7g+Mvekqiaoz2texYRR9FpXVvy6e5xbHLiP9ybJ84gBcRcpASfkUrQJrnCWm6aNP+2OWEo434Sh8fT8c8wvkKeiOlpQVnWDNMQbMNdpzJPNf4EJ1ADLHxQ15wFD6009hS14J9hfNWag+WdeTB2SthMQDB6GSbPknrZ1a0ocicQkZytcH1pbueiUemTLAd+6QTLQJHmqA3jk6A==; 31:7ZjkZI+BmKvwCv6v1O1NmiI5VHsLv8dQN+k3QUUWZJCkMh5dkSIgI+HxZyopsNewak/oeH08/h3dpADjvX068Qi+yhshUUBYaSKpyDZX22gtBJ12nY14nbJfrc5sJFRE44R3lSqlaMVEe7KcHzesSO/Fr59NO3ksNaek04pUj9ENvM06mWm2QbQZZKx2wauhMRcqZwhgtkpbs9KrKuPZuL59OgY3r+rTOqBAWyyQT9o= X-MS-TrafficTypeDiagnostic: DB6PR0401MB2423: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2423; 20:ZBo60kqw33KCXg9fXgdXGPMYkAIIuuTgMWTrGIG0fpX92nGT9u+oNzoiunpijihEGVcYY0kvSkz9gFNZY28qJUPJ0YopoP2xY4lfkrzC3UzGQSm/WUEds4XTcaMDZA+bKN1QDS7VkW0KaEUEx6F0OEtfLFdW6xHO+CjFbc9MJQOnyhmdbBtg8CotEAht1emQ5/FSAf4epr4v9q55tdg8Bk2II2zUhT968P8dXtmwMsVOz8DL87l9xaucBhivMsu1h5jOo4C5oxWCiTK26viNyxMJgqhduZ0Y9iiHPuL390trKEw/uxMUPJt4jyvOW0FYJ3iYE3vQaWDCfkAdnuWQhF+OIoJGqlZ5tCcXy389s22E4+TSH8ZR8BUaOVipW2reC/7o8xAKaLi9XDnybQyFaq4gGZnWQLlm5FsgIWjGBdlgT6cCldvjIS54MBxOAH7w1w0IbUIYTPdn84MOsEj6NLn7Wa8Zgz2pExuWbyTvgGxdJnJLB7vOJnLsriJkLtmK; 4:7HnYQsjwXLxpyeLahuuim75LzZydgiPEZDe8Fuauau5KQjF1OhWcGs6rzDvMGf+fZ+A7BW4Uc/LtxF7SurlzDxaPUsfGMssf+av7zoLy+2TOymNT+SqjnOu4FMzTeNtvcJOUsWT9qumKr6KDs6LhSGtUnTaMhp4kNd9su4PFVZwRUX1MRQcp7WwdGXd4al/QXJLIJPlEf3qYPeLGACIyN48jVctFM/w9EIZllI5KRYBZ/VxfZiBXCc8cVEd6nSSB5OzgS9T5lbp2Ku211nKXLoCVsneVGTmRXtnHGxs2aEUDoq/BSiZpQRbyn5SJjKDR X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(3002001)(3231101)(2400082)(944501161)(93006095)(93001095)(10201501046)(6055026)(6041288)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011); SRVR:DB6PR0401MB2423; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0401MB2423; X-Forefront-PRVS: 0574D4712B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(39860400002)(366004)(396003)(376002)(346002)(189003)(199004)(5660300001)(36756003)(6116002)(3846002)(6506007)(16526019)(53936002)(48376002)(6512007)(386003)(186003)(50466002)(47776003)(2906002)(6486002)(6666003)(81166006)(51416003)(106356001)(8676002)(52116002)(66066001)(26005)(81156014)(97736004)(105586002)(305945005)(7736002)(4326008)(86362001)(575784001)(316002)(50226002)(25786009)(478600001)(68736007)(16586007)(1857600001)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0401MB2423; H:b27504-OptiPlex-790.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; DB6PR0401MB2423; 23:F1FnOlQBUd4TZgUW0aKFx4q4Q15NRnQvwQrHAhC?= =?us-ascii?Q?i/6Zx32axO03xF6/ZT+EnssbjHM5xT4pRSod/qsc+8AuvSFNgBnat4aXSQyb?= =?us-ascii?Q?U4NjcrLBo0ns+rX1iN+DhNcqBnXWv6FefI2918TrHAinGMt2YfOZ1Uv0A+5u?= =?us-ascii?Q?YZ8UcstkddaBLpmpOsN6gjA2er4OY+PD7AtZOc1RycZrV34a9WaNoW1i3X33?= =?us-ascii?Q?e5665c8+IiIQBUiy6Phf3gIN6JUevS9MlC3m5Ui5d15tyPHl5HzByaFw59zI?= =?us-ascii?Q?2LmqKtUNK9wKYa3Wk1QbiFX9azmF5zm+PBJB/zlJ9s/TbbwZzcW1muUTtm59?= =?us-ascii?Q?asldE0hzlRwOxOcQXZmGNmvdHpgx+ITZoJKK90IBvczAAkIGab1XCdNYZdlR?= =?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r0T4DaKwYazKFmzPsYkOgYqVCP5DtARUeb3xWfbJl8fkLM0xN+gE3NG51kB/gXmZnjgeNVzpyb/E386K+UomLvKqU6nAZuQ8oL2Qj/Fwe4EU0WGC3kUN7BAtl4188cZE9RbgjYXg1RMHMsNr7J92iyu3HGHFLiaaBBfzmJVMKZrclI=; 5:Bx5lyIrgp/nNnyyynK1Aj2LsC8caZCzVvzNgoOY4ZlcZRH0uyfx3MeNkvUwD8TU5Zd2rPkswtEEgu+GVdA3lbgwtwmqyJn0SXhElR7PhTZlmUmHH37qjTu1NCpc5sfaMcsx+GmM0doVn/vvsqDxxmHH6Ed8Ny0bX2X7zPYKFy7U=; 24:g6HXr58GeZiHyJYlcU213x1nALlRsrSc76nRyn18fCvkhWf3Qk0nlzB5WLTnHUxmAM+gBSVdFodJfIxP1M/SeQi2QQSaXTl/MM9JMWQBHoM=; 7:9npQU3e5szcRVAAE6Pu3ruD4nFwySNQSQNfY9kn4GKHfsewSeuph8GA44V9IOMs5YrmQRz5666pgO3IMmoSlnD/Pca8EEOLfDBiea1FmZeoKXyX+5jSOm99g1Frtv4rOJVoLyitjdKWCNAoim+Uibuszl7hYQcvOhSgmHRIoKCepDrl0K7wKuSndM2NHN8JiHHe+6w9efXS0DWRvw+i4KQr6I4QfKdSjc5AXaDuvJxG1xyPuG/EWe+eKHF/gZbyH SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2018 07:43:30.6509 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c21308ca-473c-4603-bd2c-08d56c6c27a3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2423 Subject: [dpdk-dev] [PATCH] 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: Mon, 05 Feb 2018 07:43:33 -0000 From: Hemant Agrawal 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 | 3 ++- 2 files changed, 4 insertions(+), 2 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 @@ static int test_mempool_single_consumer(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..4c87783 100644 --- a/test/test/test_mempool_perf.c +++ b/test/test/test_mempool_perf.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "test.h" @@ -308,7 +309,7 @@ struct mempool_test_stats { 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, -- 1.9.1