From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0072.outbound.protection.outlook.com [104.47.0.72]) by dpdk.org (Postfix) with ESMTP id 9AD781B463; Thu, 11 Oct 2018 12:37:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9ZQezFtd3V2wAVPU6vEiYrrkBvdotCEjy2wjxbgBKYc=; b=d/yJ7RoT1jmwKGUXlZf/dMx6q1pxBFlqBfjWOxtkiiwhrxmid15Z3bGqur2hwhwOrSG9cbcmRe54CA5hWaWM/JkOwfM4gMTCE8HjWEgcgYgV1aCh4JAi6PmbekN4DWISuTWu447ZKJLnXIZqrnd7jD9QfnApJ3VBiAKNzMfnV+w= Received: from DB7PR08MB3385.eurprd08.prod.outlook.com (20.176.238.90) by DB7PR08MB3788.eurprd08.prod.outlook.com (20.178.84.205) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.25; Thu, 11 Oct 2018 10:37:33 +0000 Received: from DB7PR08MB3385.eurprd08.prod.outlook.com ([fe80::eda0:7bf6:a891:3ae7]) by DB7PR08MB3385.eurprd08.prod.outlook.com ([fe80::eda0:7bf6:a891:3ae7%6]) with mapi id 15.20.1228.020; Thu, 11 Oct 2018 10:37:32 +0000 From: "Phil Yang (Arm Technology China)" To: "Burakov, Anatoly" , Ferruh Yigit , "dev-bounces@dpdk.org" , "dev@dpdk.org" CC: "bernard.iremonger@intel.com" , "Gavin Hu (Arm Technology China)" , "stable@dpdk.org" , nd Thread-Topic: [dpdk-dev] [PATCH v2] app/testpmd: optimize membuf pool allocation Thread-Index: AQHUSjuYehtP9H0HrkekSgE9jFIgWqUVYQyAgAAAhQCABGpmYIAAO2fw Date: Thu, 11 Oct 2018 10:37:32 +0000 Message-ID: References: <1535362398-6526-1-git-send-email-phil.yang@arm.com> <1536717266-6363-1-git-send-email-phil.yang@arm.com> <6f76decb-086b-3be9-0ed7-25a098e959c7@intel.com> <722734c3-7020-0a27-d50e-395b7cc2c59f@intel.com> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Phil.Yang@arm.com; x-originating-ip: [113.29.88.7] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB7PR08MB3788; 6:HRuDVBNnHeV+Wvtq+W8OeabCaqvDnndoutFuoIFekjRzJ/HnEJVoL2PRCv2J8Bv5NJEz3EhYwfMPgcAEgCEwQtdsUxcQFUbYZ5NmfttzsTT+l8pgQ939z4m4KT5EslqBiqsBbLxmZs1m92Azl5/36UmlbQQq/edhU+sn4+NdVY2PyzIdQXBRgkWRMTvLGcbbi2IKqAaywrBF1xVEMZ4cD1k+WuGbLLiElpdTEBuM7qXNvNBUbIcdhftAxNJxq/Mvh0ZUK8fehVwj6V3s4zvKpAGcsLSRsoYxuffaCkeLcpCCHgDvPg7/n2yD8dqfnrUg75kzTcsUJ1ZV6k7OucISyW11JShKrIspQHptp2MKZevDfoD1VaFfyTQbmhFfu77OK8xXjw16XQ1rNRyKfzYQG5O+zxzmE5iEDqNxPI48cXvpQBUT7VCJ6khF3n7VXrgpD5b7AASDC22wGwI3kXIXnA==; 5:/Pxqc7PnILCyabki1FZDFRiVOz0nM9NVC4GV/SzuoeVvIRY2JLyoWUSfGYB/19M4xfz5a72QAVMqNcKVxFCrRATRp06juYqY+Z6B2DrAwrvXn40jTBnni4RAw772YOwwT7zsCH4BBUM9DDR4Ob/ULrIvgEuoQFeHtjWJLhuT6qE=; 7:XWJN71XjSxz6RRiM2mRShmGVwpx/k45QByd57sppuOWNHyiyxsrrfk+1BFlQOTvL072fiGXzFIntp5IJJbSG3lEry5l1cTGmb95ttvk1eH7AqPYIJddkcwxfVB0xFJ7dEojcI3Lr1nR0pRa+21NOKkKDIYYbZlFOL7x64Ho61NJkhTWFZZyFLXWeqU8ATqgu2kB7LswjkdAfSboghQAQMplMIjYxNkIjdWno/rsfiMC+dyas5NnZBdSPtprbQJxY x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-ms-office365-filtering-correlation-id: f6dbbf6d-eec7-4f60-4106-08d62f658d59 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB7PR08MB3788; x-ms-traffictypediagnostic: DB7PR08MB3788: nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699)(180628864354917); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231355)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123560045)(20161123564045)(201708071742011)(7699051); SRVR:DB7PR08MB3788; BCL:0; PCL:0; RULEID:; SRVR:DB7PR08MB3788; x-forefront-prvs: 08220FA8D6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(376002)(39860400002)(136003)(396003)(366004)(13464003)(51234002)(199004)(189003)(93886005)(25786009)(6506007)(68736007)(316002)(6436002)(93156006)(76176011)(4326008)(229853002)(7696005)(53546011)(53936002)(66066001)(55236004)(2201001)(55016002)(2940100002)(102836004)(86362001)(26005)(256004)(186003)(99286004)(6116002)(2900100001)(6246003)(9686003)(71200400001)(71190400001)(5660300001)(3846002)(14444005)(2906002)(5250100002)(81166006)(72206003)(8936002)(110136005)(2501003)(54906003)(81156014)(8676002)(97736004)(106356001)(33656002)(105586002)(476003)(305945005)(7736002)(486006)(446003)(11346002)(14454004)(478600001)(74316002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR08MB3788; H:DB7PR08MB3385.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: HFdy3JEZzAmGsWtQ9TUhwSUb6PMaO3cX+5LqIOLcP2R0t60WqdcZaNkqxLCzZ6XFlNNn/DljxULuo7Sdj1hIAUnazSBLwQt0jogroirzgBoJdj+TB4fJseVX//ab6dUL/6AMoFdEL4ghUaealCPVFgXyz+PN2lM6HDU1w5j4feauiCJMz8jvHiWl4IPp1pkuDAMMqwXuHMqUgik7N17bDJniXcu+3wZhMjNGUXAdVuZvMwE44mcgiT+g0A/XGqyHcIfbXI/9984bMwphxtFG5huyBGbtC1/nkm3IQhNhEsRNywAS5Kr+tf3WCCvZX1mu+2dWoa6RGyuOjnYsIkG/A3hH1BDrirjQXVQ+2JqzhAc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: f6dbbf6d-eec7-4f60-4106-08d62f658d59 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Oct 2018 10:37:32.8292 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3788 Subject: Re: [dpdk-stable] [dpdk-dev] [PATCH v2] app/testpmd: optimize membuf pool allocation X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu,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