From patchwork Mon Jan 22 13:51:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 125436 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1202553ljf; Mon, 22 Jan 2018 07:04:38 -0800 (PST) X-Google-Smtp-Source: AH8x224/VN3uTsa9VOB+HlS79np9eh/W0GNmekJ2mpZ+z0P4845tLCxMXBQjOXSNbdu5A1sGzNZ7 X-Received: by 10.28.148.150 with SMTP id w144mr5286231wmd.0.1516633478071; Mon, 22 Jan 2018 07:04:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516633478; cv=none; d=google.com; s=arc-20160816; b=roMy1hD7who5yaO6is9Aq2kDtr7Sj5xdXCjWmuqe6NqjdzRllf0oFI9PCLKa+S2SNm XrFUNq0Umo5NPg8uNfcB4tnMfIDwSLYXgbwyeRCNBTgAIt9Zgz9YB22W4XytlF6G2G3w udXxbzPtpn1/SsfBjfwnTSdNKJkN5t7S0MipBlWX0iepuTzGEK69pZAPnoaqaDZihRJG IkKBh6+xckL70ZRjiabzwCHmPoBLejNmEV2CXyeaMBIyjk5rC/bIGU69mhv6XOtHdwNJ mc2YcJ+F6SV3DHluaDM/eZBRewFeDn0TvVLW3wPto+kGAKkEKtZAGyXR8aaC1/gv/pO8 ltMA== 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=REatf1/HppD1U/wb7MOU6Og0kcarcVLYTptK/sasHDA=; b=s0ujMGvIWbqSCjD1kvCdiY6zh0r5zP/OL9NG0oRJIn7ZyxDomgsAUQEfEnOgqNEiwu 1GEtu2ZN4K3HjTnv/UiMsh/h6SB10rrmGXazXek4+lf5mySduyVsB3s3u9cnTyOUVQNU lM+T9ZcbWIpz3ls7xy/1HzmkUY/P96A7JWtBPJ2CJLambgNuoTLm9ffqbvyuRxnV5Ecq QdfQxbuVv3u/t37rxohSfYjOnsLRc7bSotUI9hKguW+EUA4LrEGNF2XGGMLQxlr1X69W HuPlAMCiFgIqN9M9sMhxi6QblpZCt/g/A/JGzWj5XgzcKxTayL5igo7FOsveJ55j7DJn NNfw== 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: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id v6si10551401wrg.302.2018.01.22.07.04.37; Mon, 22 Jan 2018 07:04:38 -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 9DFC91B1A2; Mon, 22 Jan 2018 16:03:30 +0100 (CET) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0053.outbound.protection.outlook.com [104.47.34.53]) by dpdk.org (Postfix) with ESMTP id DE2FEA491 for ; Mon, 22 Jan 2018 16:03:20 +0100 (CET) Received: from BLUPR0301CA0019.namprd03.prod.outlook.com (10.162.113.157) by BN6PR03MB2690.namprd03.prod.outlook.com (10.173.144.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Mon, 22 Jan 2018 15:03:19 +0000 Received: from BL2FFO11FD036.protection.gbl (2a01:111:f400:7c09::189) by BLUPR0301CA0019.outlook.office365.com (2a01:111:e400:5259::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; Mon, 22 Jan 2018 15:03:19 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11FD036.mail.protection.outlook.com (10.173.161.132) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.428.12 via Frontend Transport; Mon, 22 Jan 2018 15:03:18 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id w0MDqVQS020039; Mon, 22 Jan 2018 06:52:43 -0700 From: Hemant Agrawal To: CC: , , , Pavan Nikhilesh Date: Mon, 22 Jan 2018 19:21:21 +0530 Message-ID: <1516629083-13967-6-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516629083-13967-1-git-send-email-hemant.agrawal@nxp.com> References: <1516428908-5430-1-git-send-email-hemant.agrawal@nxp.com> <1516629083-13967-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131611069991665357; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39380400002)(39860400002)(376002)(346002)(396003)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(76176011)(4326008)(36756003)(53936002)(50466002)(54906003)(16586007)(336011)(316002)(47776003)(51416003)(97736004)(498600001)(48376002)(77096007)(26005)(106466001)(85426001)(356003)(2906002)(305945005)(69596002)(6666003)(105606002)(5660300001)(81166006)(81156014)(68736007)(6916009)(2351001)(2950100002)(50226002)(8676002)(8936002)(86362001)(107886003)(104016004); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2690; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD036; 1:ZCnBR6p+giJkQp/RpFoJqLdlwImudCyHJO7UiPZcxxb10qmMI6axxtOC4NEWis1mnGOOvfktxvK0Gs8mCFmGLMM5yazT8R6kFYcBBG7BPCZ2RhHtV+j/CZIVq7g97DCU MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 632c8725-43a3-43cb-5d6c-08d561a945d1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:BN6PR03MB2690; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2690; 3:VRC9rrw1h8MmPL3jhLUCU3OIqr6KScFrwO/7m9Hg9gSGxYR14UryrVOp5cNur6XDkB2J6cjtOIdbfh8+3ur6h6tg59COlG3SiGuER5D/9mMwvk3eSCn0PovNiF+Z/Est4tTuU0EzPHsZ6I/wufdMt41hjhIaURZlu7Gq7NLsFYwDV1osi0PoS93I8UkF34yJ7sfrzAG9ULiTxfVjR0346Sic6P9ftV/IXZ0do1eNJ4lZUFcOqpZnSdzLTM1j+dtPpdIfSmhNkYhEnucPftW6y8j5lRu+0yFRm5qEtOqRy/T2aXXuCkQ433bR2vhwix0yC6MMnnGfxAZ3AT0kQnYsXQxADTN2I6Wb2vYR6nW40pM=; 25:dl5CdrqUIl5DvhfTVk4n+rYj0atpycPZb7hS59j5ZuzBTdVr2LDS/2eAbuwPiwVzzB5kXgBnxuJc4M6qOVphOngSGHujBol7cuFO6/zqGhlPZOsNhEhEnzcLaNn5IGQL3cd7nTQQSmQn0Sed1Si9cFAev53/H0IGmVvrkEF1dTBZ8REhe5KL8KUORyj8+RDZkBuNeX45AWLQUrVgNv6YBXSQT2RUyX0/p543QtLiq64jw4RBNRMeTrqaVl3VBEbqR2EFLP+OnJrilYry5Ju25XMZgi6WFr0s0x1DRdlGJ6tnAKPIzHN3lvuqsGlWuCbh0kz5VVQeaFQHfgEtEnO79g== X-MS-TrafficTypeDiagnostic: BN6PR03MB2690: X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2690; 31:3Z3PDr7AQNNCAmnBulEe8lc7MSNui0Ye72sLdWTVDAtI0+C4cLHti/H5/fqveKAVJD3dAlDOP+G3ECIhNvYymlo1x9f9FnOgxjtXHCUNoRtZVYVa9XYZEVbpLzwtgM5Vmki2axw+1qlqNhot7JPx6XUPTloi5KY76koET2IXu7KUGhKL1qk0cLNIoPhiwydZ12X25cVNVljWOvMbaPMi9CFHmtdzD9nSuMnAWPl8Qhc=; 4:C4/u0GUHE7nTv/7bI36GxUYlR4i63aJdM/UxjcZxR1ll8NMrL7gn/WsGwAcTtmCbX7aEFP1bJymS5OZ/JywakI5hYG6Y9o0Q5QhrXYOC4AwwVxKfpodLHqDwRPZ7FQmXEHotOgrOSs0VChhLCoWONPsu/A3Igt0wA35Kq+VdC6mNFVQRjhG4AvnZiU1oLK82xF2ReATyUECJSwP022WzUDV1n+tl3kjFJX+bujiOTVc0lmS3bNm4Jh+07K44GP/aVvawhK/aCCN+jhSu/WMOvl+26OTQS5gfCLu6uYvDNsW6dcXluARufaT5Q5vLveTD X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231023)(2400081)(944501161)(6055026)(6096035)(20161123561025)(20161123565025)(20161123563025)(20161123556025)(201703131430075)(201703131433075)(201703131448075)(201703151042153)(20161123559100)(201708071742011); SRVR:BN6PR03MB2690; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN6PR03MB2690; X-Forefront-PRVS: 0560A2214D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2690; 23:nLl2x9L8oLMPxPUO35W77RCWDeUpH58ukrCB1dQAC?= bt0ZSELXbdJWNEjAjENz3i0oq94z0AVurOBJfjLW/bip/jXdJRq2yESkEuIo9LAz5pU3CtX45MB47vBD7tW+OZ8WPIZnAZnNyBVPEj8ZuePHLUChCt4c1m76KXDgekmXFT33wiIXOsUwP1JQ/4B/twOo5r4dmlC+a/4Mhpal+RrEMMucKRCT5/n/w/HCAGHF4Vp54a1MUaeMoGJMG0ZqCs6dZAcidmplsxPtp270kdF7Oy6soLc8MAxgRhQ/T4LC8t/S1PQDpjDxCUTrkv5Gq3w3y5Iav6HVTLN9rfq+7zWFUW/GH+pkhhpHRxgyej9CPR2RRX+73wBj0Bf/mOjJzw5jSp3kHd0sfY2B9tFbkv7/tq+0KHUvUs+pSapQluKmDCVecBxq9pHMViv/83pbwGZMfIw4d3rDSboGTftK0vWzqsJO2Se90yszwV76g2RguK/dEA+dNVffeT2tySZhmGVBfaLBBIZinyE8dAKWfpWmsIHDbQR4X1h+DkMcIq4W9nF5l74x1p6HxP6eM3IElLuxKg/dgexiZxCHiOCSpcuuVj7YFZ/oSxZiZNU6RxbN/NE8K+73JxxpIWFqJytSgWUSgPQHuXiVEk99mQKQSG6cI6BxDrjMdXJJZ0P8cKbKSKAUW+V1FNlduey6j3Z4FlEmCN5MtkAsxCVhzIfbDPb7zYmoqb8g7RmzjK5qVEBZj7p3GgSrmHQAlhYy4g8ym7kVhM3wC1u7RysSsOOPz+ePcMaT4sGzaOxUQyU95LyP5v7OxlluhzOSlVurOZtQoIJEOXX1JEyp5JP8eT1MumVqaZm5g3O8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xS3o6VbTashVE85TUXY3jiRxTbq+uMFdM/CW5gxPmtldkPlfSIP4oHfeGRFKsYdPLHTtEdR633bCAIaDPSturWYWxWZdUpBnaB82B/iW2mpRYu2o/2BXd+sMG6GNuHW/vF5GukUlr2e7LKjzAMGJtNEjDNz SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jan 2018 15:03:18.9013 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 632c8725-43a3-43cb-5d6c-08d561a945d1 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2690 Subject: [dpdk-dev] [PATCH v6 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 Reviewed-by: Olivier Matz --- app/test-pmd/testpmd.c | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4 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); }