Message ID | 1516379639-25586-6-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp369222ljf; Fri, 19 Jan 2018 08:35:44 -0800 (PST) X-Google-Smtp-Source: ACJfBoshVUNeV91z2V7pDvxmH93axilD9xbNtNyRC8JXf/ERpnCvZdtR88Nn6JhjxzAZhSqD8JXZ X-Received: by 10.28.210.197 with SMTP id j188mr4488746wmg.74.1516379744191; Fri, 19 Jan 2018 08:35:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516379744; cv=none; d=google.com; s=arc-20160816; b=SO1BHWp41g9N9VNxDumPqck1uAz7e/SmU+J1jgmTNtmRtueIpME9bwDA9xNkDlgCyz NBFcBwIJ7oyUteISx4LJz1Q8hrVvcHGAkirEHU6Vqyf2DCMl4IA5q6x9cUgRVB+GbXgf zXS8b7aFf/qiMNQNwb0a8BBJSCGTak1jvMtHIxZ3NAQ1hg9tvg49lr4o5Ev2dG8JTeLk 6JG29nTiLdJ6uZV1UtJ8ZOIrOb2Rd4F9TeTKitiwbBt36G573MMJUEfJ/EU3QiBwfl4S XhhNKuH8fbFwTks9UP2cIAbcvn392kL0YZY2AKhmaD9SdeBRcSistxWYT3DW+3BTtumT 9ikQ== 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:arc-authentication-results; bh=fALLTtPT/u4JTQQayCnbgpCN/kJxj7Zm0JDmHvIC1/0=; b=R4tOEgJD5P3R1kDFYQS1aMg4qLFjnpvF9O/7Pe1YXFsgs1cMYU12auzmenUz5Jw2R+ BmBVOJKqVQi///YAoYKKVRdMNFjLvvyhXoay0u3Tkb6tdv+FbzB8y3BE5hTRB8xm7Yr7 1DooDtnb20D2ZTyfawaCgaBG3D/HDs9PmTtrVcqS4l/xu8iNe7O1oqU5A3h1TOQefY7M ydhaf/UfBkCIgd+IMC5KjZZBGSWYVF3uAih2sh22xF7o+EZqabUKvmtrbbODraSt4j6W fsAPavnQHT/q5YVTabSSHXmAGumiaZjD1VcR3w75uQizVLVCQm0W1m0CwmGZ0ubBQFu7 d29A== ARC-Authentication-Results: i=1; mx.google.com; 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 i76si1170175wmc.94.2018.01.19.08.35.43; Fri, 19 Jan 2018 08:35:44 -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; 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 5EE301B332; Fri, 19 Jan 2018 17:35:27 +0100 (CET) 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 <dev@dpdk.org>; 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 <hemant.agrawal@nxp.com> To: <dev@dpdk.org> CC: <jerin.jacob@caviumnetworks.com>, <olivier.matz@6wind.com>, <santosh.shukla@caviumnetworks.com>, Pavan Nikhilesh <pbhagavatula@caviumnetworks.com> 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/WXmJ020RsYrocLQxkW2uNp2LDuMfaKFNZxJBw5hc78d6UuRVDTETkvXBqC+oFdwjpTCyHy1ndWFK6JUMZPyi7kJ+gT5h0x3cFxqJUMqlm50sDvuYr4WqAyyqrR5fQ/21jOUjwy3IcRMNyjAJwTY7CYnfIxiJWP9IHEJmYfbD/KZLXIWGSyUkuGa7nDdPmGcifwZK3MLoIr9i//gVFG4kmdfGG5PZqTrRXE2SusG0oGFtn497KL53t/qjaaPFydXfDTvOlkp7sq4PBgAXMXQBO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R03MB2692.namprd03.prod.outlook.com> 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?= 8CpP12RTJVVWwtc/hOP2EWEmNEg0JlJTo42OkEkCHtLAWeSCfV2lD6GH2q7wBK3fIeXhVCODQfPQTHnsh1rFyOC/ulTWcMLal+IPTT3pi77zoSHmprP12CZMrLePx3b/OcGzJIig8ozXt/kGjyUTnZh3QyjTd7zFV8KMSg7n/aKutC7L/cWrbUb7mdEz/ndQEvsLAEE8Yl4ozax4g9of8iMlZ9YaHmYiBSGje3I3JKK6eF0nFc5LkSi8lFHcIIWFUTX4azbm6Ofc6INYK/O069hQbMWYB4kW1dNAE/KTzaYv1QqZIDPeLqBVNIRjckxjadmutx5dFjIpo4UyWqNnNx+aZZDk7uFeztzrzDrzSB43Jerp7pA4ntSjwPINAw3G2sNH707YxKyp5hCO4Zje1mnrGkrlXCt++l4ysD5OQBc2/hunNf9t8fvk51rdaR5sTjNxEqW32jE78VMH9ZCqgL6Nv9sM9DIONzThB5tucAymjB3S5bhRS94YugWLR1z1tIEkUV/htNJeLhm+U+kxTsjnpbbfzlBpRX41oG9rjPaG7CIvp07A5GiYQiRS1WeSa7Mog/zBwV/f0XU8E4+EcCUjGxsigUTD+EwUT1Kc3fQbPgxhKO2+K3y3h6/R3DZB6oytj0D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ZzCSmUnA0KKn5s7N0=; 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 <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 |
Dynamic HW Mempool Detection Support
|
expand
|
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 <rte_mempool.h> #include <rte_malloc.h> #include <rte_mbuf.h> +#include <rte_mbuf_pool_ops.h> #include <rte_interrupts.h> #include <rte_pci.h> #include <rte_ether.h> @@ -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); }