From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0084.outbound.protection.outlook.com [104.47.42.84]) by dpdk.org (Postfix) with ESMTP id 1CD3F1B353 for ; Fri, 19 Jan 2018 17:35:24 +0100 (CET) Received: from BN6PR03CA0091.namprd03.prod.outlook.com (10.164.122.157) by BN6PR03MB2692.namprd03.prod.outlook.com (10.173.144.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Fri, 19 Jan 2018 16:35:22 +0000 Received: from BY2FFO11FD033.protection.gbl (2a01:111:f400:7c0c::108) by BN6PR03CA0091.outlook.office365.com (2603:10b6:405:6f::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Fri, 19 Jan 2018 16:35:22 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; NXP1.onmicrosoft.com; dkim=none (message not signed) header.d=none;NXP1.onmicrosoft.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD033.mail.protection.outlook.com (10.1.14.218) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Fri, 19 Jan 2018 16:35:22 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w0JGZ6aD016753; Fri, 19 Jan 2018 09:35:19 -0700 From: Hemant Agrawal To: CC: , , , Pavan Nikhilesh Date: Fri, 19 Jan 2018 22:03:57 +0530 Message-ID: <1516379639-25586-6-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516379639-25586-1-git-send-email-hemant.agrawal@nxp.com> References: <1516281992-6873-1-git-send-email-hemant.agrawal@nxp.com> <1516379639-25586-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131608533226227307; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39380400002)(39860400002)(376002)(346002)(396003)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(8676002)(81156014)(77096007)(316002)(81166006)(50226002)(26005)(296002)(16586007)(54906003)(105606002)(8936002)(104016004)(86362001)(68736007)(76176011)(2906002)(51416003)(53936002)(36756003)(97736004)(85426001)(498600001)(47776003)(48376002)(50466002)(4326008)(6666003)(2351001)(2950100002)(106466001)(6916009)(356003)(305945005)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2692; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD033; 1:rvH+15/Bm5YQXtogzTGRjML6PPsPvu1HPPfF76qfBGLcx9DYIwog3V8wFMZng8Hnodmkej39F1HR8FOoB7P8VOolfxa39a6MbcByxeWNAPeBcBOdSDMPPv3TQpuGch36 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 779288ad-b967-4f24-066b-08d55f5aa2d3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:BN6PR03MB2692; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2692; 3:74hANEa3glOrZJtbSu+5MH+ldXIwv9A8oA9t8bLQzs/WXmJ020RsYr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LC6nZKOcrmKA3C2iyceHByhk1OEQZEvgeb6YguvhKcgVKNVQZvUWEa701LlKXZpn8PHyfiYXAVxdkcUBPrKJhd5gvtsSRDBBy1Be7GPOcbAoHOqy9+IaHWuBTEdNTyUjoEfcpE41ZpteFj0Tw/rE6FsWYAl3gT3zVwTolHnIcAYqZkapgEYTumy1E86IJm5zGBoORf2K+OUNvUUWESPsEJ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(3231023)(2400080)(944501161)(10201501046)(6055026)(6096035)(20161123556025)(20161123561025)(20161123563025)(20161123565025)(20161123559100)(201703131430075)(201703131520075)(201703131448075)(201703131433075)(201703151042153)(201708071742011); SRVR:BN6PR03MB2692; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN6PR03MB2692; X-Forefront-PRVS: 0557CBAD84 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2692; 23:jhw1rWrr6Vlxl1OfMmB6N5PRhXQQIfceIfXS5vlS9?= =?us-ascii?Q?8CpP12RTJVVWwtc/hOP2EWEmNEg0JlJTo42OkEkCHtLAWeSCfV2lD6GH2q7w?= =?us-ascii?Q?BK3fIeXhVCODQfPQTHnsh1rFyOC/ulTWcMLal+IPTT3pi77zoSHmprP12CZM?= =?us-ascii?Q?rLePx3b/OcGzJIig8ozXt/kGjyUTnZh3QyjTd7zFV8KMSg7n/aKutC7L/cWr?= =?us-ascii?Q?bUb7mdEz/ndQEvsLAEE8Yl4ozax4g9of8iMlZ9YaHmYiBSGje3I3JKK6eF0n?= =?us-ascii?Q?Fc5LkSi8lFHcIIWFUTX4azbm6Ofc6INYK/O069hQbMWYB4kW1dNAE/KTzaYv?= =?us-ascii?Q?1QqZIDPeLqBVNIRjckxjadmutx5dFjIpo4UyWqNnNx+aZZDk7uFezt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qkFQWPRIRwHpOqxOi4E2ygN83ZHAn77Q2HdTSega2fYmoXBIGpp6ICG8t4yKEH48/sFDVpgd0mcxH2gR+abdFNnSJXUflq2/xPMITclMrbZ+P8t882UdBZDH1h/l+SvvzOF3EIvEM0eXZB1Lwp2YMLZuzsE//sreIKqg/tl93A/DRkJBsyhuZDkkR1Kcbu76R2g=; 5:zy2MJ2GQkMpPbdysDWzExI71M/Ms39njWYpNLp/Kj/hMyJieZnimjV1v7bL1FDCcJOHDEqL0/X1oS2v0Vkv+XcJ0qthcRhW1wzd3z6AE+bcI3j36U4b55LfjVpsxxes+EWOIytsjSzDGtRb39CUtJnBIKl0n6rXESxl1CvZedrs=; 24:Nfd3KH8VJJxupGg9NnV143/F8roilr8HZizJqQ01e86MAshqISqWMEyYlNds1WVJw9zBoZIV6K4LdHgHqfue4k52s0ZzCSmUnA0KKn5s7N0=; 7:dAHXntqe/8wZfcZBdDk7H7wZULtR/Z5tR/8ix1Q/RRe0YYaNi8AjL1HtBS8oWle6ml/pw4RnjJQXomFrACma7MF/C9n0XpaBkuKKrA9eL/qcNY7sz92VPapB1JoSqkrAWOM/KrGH4Vznxn62KZbtZGL3zm1lXoWIK0MDTeMhFBaWmWTGaWeEejOsuVQzqY5PoRyjZOmio31PCv4wZgrHyV0IamGsDg0AE8kAe+r1UHedmzeCMLRxyWdlZnXZsDjx SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2018 16:35:22.0299 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 779288ad-b967-4f24-066b-08d55f5aa2d3 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2692 Subject: [dpdk-dev] [PATCH v4 5/7] app/testpmd: set preferred mempool as default pktpool 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: Fri, 19 Jan 2018 16:35:25 -0000 From: Pavan Nikhilesh Set the mempool preferred by the ethernet devices as default mbuf mempool before creating the pktpool. Signed-off-by: Pavan Nikhilesh Signed-off-by: Hemant Agrawal --- app/test-pmd/testpmd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 5dc8cca..d8ac432 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -499,6 +500,8 @@ mbuf_pool_create(uint16_t mbuf_seg_size, unsigned nb_mbuf, rte_mempool_obj_iter(rte_mp, rte_pktmbuf_init, NULL); } else { /* wrapper to rte_mempool_create() */ + TESTPMD_LOG(INFO, "preferred mempool ops selected: %s\n", + rte_mbuf_best_mempool_ops()); rte_mp = rte_pktmbuf_pool_create(pool_name, nb_mbuf, mb_mempool_cache, 0, mbuf_seg_size, socket_id); } -- 2.7.4