From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0060.outbound.protection.outlook.com [104.47.42.60]) by dpdk.org (Postfix) with ESMTP id EF461A84E for ; Tue, 16 Jan 2018 09:20:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zH3w8/L0v0LtAO2lB4PWQySfhwa+Ca/Xph2YuCMQDT8=; b=FU+N+28PiERvKAR6oSWaAnuyb2nc1TZzrdF/ZWrmwtzcmq1M9UN3a9r35gk8BYq/kzdHeFKPuY8buX/LtBIsY1EKm6+QkTlhfgRSYJDJ3yl4oIhOjwdnrzb3Z6GX12qQGL5g5nR2AaajqPAIZ6pINIkqhsQPAGAi7r77GAkj9UU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT (119.82.125.132) by MWHPR07MB3471.namprd07.prod.outlook.com (10.164.192.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Tue, 16 Jan 2018 08:20:50 +0000 Date: Tue, 16 Jan 2018 13:50:33 +0530 From: Pavan Nikhilesh To: "Lu, Wenzhuo" Cc: dev@dpdk.org Message-ID: <20180116082032.v3jnmsq5hbc7yt3l@Pavan-LT> References: <20171213195538.14290-1-pbhagavatula@caviumnetworks.com> <20171213195538.14290-4-pbhagavatula@caviumnetworks.com> <6A0DE07E22DDAD4C9103DF62FEBC09093B711113@shsmsx102.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6A0DE07E22DDAD4C9103DF62FEBC09093B711113@shsmsx102.ccr.corp.intel.com> User-Agent: NeoMutt/20170609 (1.8.3) X-Originating-IP: [119.82.125.132] X-ClientProxiedBy: MWHPR2001CA0021.namprd20.prod.outlook.com (10.172.58.159) To MWHPR07MB3471.namprd07.prod.outlook.com (10.164.192.22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 37982653-1e32-4429-a97c-08d55cba0e72 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534125)(4602075)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:MWHPR07MB3471; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3471; 3:I6KB5e0YLRv95pb+0qogwSkf7bisFYqEguqHTVx+x0gD1ANl2x1AP5fLIISWM7/f8cNlOXY8HSI8SaCB7m6m+EYatLOTmRl4F7YpGRc6gtUv2vhjrz5+XaobJJEfVs5kRFIRnYeTx74/8u+QMSsVHRlAYv6I4PoUdb1SYSN8C7Cx03nIPMK1MpRn4u66j3N43q6pek4xFRD+KYxv2QU2mnEvbFZACCEF+IqqR8woTsGBFIzkmt6pAD97cIpNFJ+X; 25:VQzpja7GC8DTRq3Qjbg8WIyuu/dichT9xk7w0cgj2s+WFGeQLw/m8yTkT6sigzVXNjfZ1K1Xrc2dSb77qlfrTFPvZT305H91viHmMefbob/1vRAvk28dLKJmkBrKGCtH51DGbKSRUrNXZYYoNunzh7d4ncvrbA+9UJL6LtKIhVRPBxpG3kQ2X8xUciirlJVwYxNqtDXK1dCWYU6d5V+/Otbgw3sPX/5hk/b5paj2uTC0vs2JpHIwUDSerW1E5hPZeVXCxtdOBH+8d9AX/ndZehe4co6yHazG7ticgmRWUYjfnYDWBV2Q0ZZn3KB3nO3fSYd/hKG0kVZhdb4wP0InEw==; 31:6XCBx7w0Ipm0lXF3mhHSNR+FxM7BUMpx45QLkkLU6obEOKcmWbsHC6CTJG3pvyh1jKJnaMZrgx14zaiPwS+SkBzhZ5BIJoeLeVdBSQkmeh47BDZobu0Gyws47QL03JcJPxLMcTKv5zzwPvd+fppAuQKIszslXLiu9hEUjPzcDhrUqwpddDPj25kf0HbXL/DoMtsxzPqJ7AAorLJn+U7k1gu5ZBkBp8p+7m/C19LFx7Y= X-MS-TrafficTypeDiagnostic: MWHPR07MB3471: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3471; 20:smmu2yiZFwiWQwdAMC+OXkH8cO3W+Mx7L7ap3891x/Btp2nz+0w70ROVf3Xn47SyZLl+Sikv85qVflpcvqMSpiCtVn4+sKpQG7uWUgGDQIfgp7+D/dethxYRVhrLGRTHKtrlj09siYPkYOrqjIA+9IHCIYJkUzCsfEuYfcWyWodiBFuQYZHratlU5LxMfVAG3By8FuywlL45AiXaQWprshsARa1B3Xk+ieadtGs0PEJbLgEbhBnyx7Qh87IWBY/tX/BmIMejcC/CGqnXEKHnL9khAkcYNk9dsEtCs7u1gFGJkoLFJ5Rj/ycxxcfzfMRLHrJU6/kQvUXbptHgZE9kxpPgLuNQ9Lwhg1OA5KN5i3xcGn9kZ5P9ahXU7y+FrRADzOu6BlNvp+qXfxSuqY6dVo22fY4OdVR4RtTWbrW8oJRjiJdMjfkZ52/EFaKALeF6LVDFkRizoB983WbNmHpUD2+jAZI7eenPCe38W6ScvLdwqtITlf1w6c/Ruf+4Fe7ECcjFiyludmOxYy3wsN9kdP/mYwF16oUfKKGdyWjG25AJ1sJU43FCUgXCDzxlLpe1i1GXMPDpV4jVLjAySehJqLEvuZg776ulP3Tvqmwx4k8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(10201501046)(3231023)(944501161)(3002001)(6041268)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:MWHPR07MB3471; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:MWHPR07MB3471; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3471; 4:SeqjqBqUXyGjIWsoDCcxnrmoPd9SU0HjFF34VpRBps3JXRs0hizMi6K2usMz+yDQB5KJODextEoatNZT7htgmg00+uhBSR65Ebitb8GZ1n4Vtchn7nc5u3bx4oKL51t+wUg4doW3bOtFUvMl2YzH41qD0uEPRBnGj315M59cU75V3e7QcYUP5A6Vp46RdPZbK7e74xmEykGY8R8FETaE9kyOXDBF3q3cGBcvL2WcysddxwIONNJsHnjcDIqlFtKl4Obi2/RhJQUKo3mtjulN9m7i2FboEBtAj3v5RP09wTQsiOs7pqxtzJ5f3ae8jfdEEFAA13mdhxU6WfWfSZxyn3m3gBGvvYptUaabSm5HaEQ= X-Forefront-PRVS: 0554B1F54F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39860400002)(346002)(366004)(39380400002)(189003)(199004)(24454002)(13464003)(23726003)(1076002)(6116002)(3846002)(50466002)(6666003)(42882006)(2950100002)(5660300001)(76176011)(52116002)(6496006)(2906002)(966005)(72206003)(6916009)(478600001)(25786009)(4326008)(53936002)(106356001)(68736007)(33716001)(8676002)(81156014)(81166006)(6246003)(8936002)(47776003)(66066001)(229853002)(6306002)(9686003)(55016002)(105586002)(83506002)(58126008)(16586007)(16526018)(53546011)(316002)(386003)(305945005)(7736002)(33896004)(97736004)(26005)(53376002)(107986001)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3471; H:Pavan-LT; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR07MB3471; 23:9cm4SmSaB0YuT+08bpkJLH5ipXEvNTcMJ6MnMP72F?= =?us-ascii?Q?hcs7gPbaXlyIAkvg3yKadsIKcpimKn+8Ji849dZZbULjzd928pQv1HLSG/OZ?= =?us-ascii?Q?07yY5i0ey5uCAIKy8g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x9ZFPLewnp36uiJDuLoLBy2scIOlTOjc/y+qq+GkOcAQ0PDn4UVn8DwwK6+BjLf3zQajkeOrpEYjz9J/Xvyx1Utx61s9urghE8=; 7:3GLXbR5Ub6E42MHDdl4wdJz6Vtd+4oqCnSLhHfYX0XxqHlg7z6iOmsNXmWY6jJYmqJMl0wPyUsvC5qHw8nnuFhVgtQyYWsuP6uEFaraLHdb4BGbz0eEgw1lEBBFadACRKwzLj7Fv6O4k2JE80oYqHHR7NsN4pVrpeu40/QHaaAkF13rL6Q59W/40bLVufrZr+8jtOKLYOHMZF9ACQ+IJtNOiFPYMgMFkc7Fx9rh+iY1IRSK9Fz3FIZd0uTik50bi SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2018 08:20:50.3861 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 37982653-1e32-4429-a97c-08d55cba0e72 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3471 Subject: Re: [dpdk-dev] [PATCH 3/3] 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: Tue, 16 Jan 2018 08:20:55 -0000 Hi Lu, On Tue, Jan 16, 2018 at 06:06:50AM +0000, Lu, Wenzhuo wrote: > Hi Pavan, > > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Pavan Nikhilesh > > Sent: Thursday, December 14, 2017 3:56 AM > > To: jerin.jacob@caviumnetworks.com; Wu, Jingjing ; > > Richardson, Bruce ; hemant.agrawal@nxp.com; > > Yigit, Ferruh ; thomas@monjalon.net; > > olivier.matz@6wind.com > > Cc: dev@dpdk.org; Pavan Nikhilesh > > Subject: [dpdk-dev] [PATCH 3/3] app/testpmd: set preferred mempool as > > default pktpool > > > > Set the mempool preferred by the ethernet devices as default mbuf > > mempool before creating the pktpool. > > > > Signed-off-by: Pavan Nikhilesh > > --- > > app/test-pmd/testpmd.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index > > c3ab44849..bfea35613 100644 > > --- a/app/test-pmd/testpmd.c > > +++ b/app/test-pmd/testpmd.c > > @@ -533,6 +533,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() */ > > + RTE_LOG(INFO, USER1, "preferred mempool ops %s > > selected\n", > > + rte_eth_dev_get_preferred_pool_name(1)); > This '1' looks like hardcode. May I suggest to change it to 'true'? This patchset will be superseeded by http://dpdk.org/dev/patchwork/patch/33716/ I will mark the same. Thanks, Pavan.