From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80079.outbound.protection.outlook.com [40.107.8.79]) by dpdk.org (Postfix) with ESMTP id EF5251B147; Thu, 11 Oct 2018 09:11:33 +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=eZyncGanMyaa+IayafHLMsS5ayZxI1hjgMZfO2AnwOg=; b=SM8wqmHtYkH5KAU6+w4f6MTX5BH09P6IrVBwDT2QyhVG/4/uxi6t9yl2utfEUy3Vl1x0SA9upz4jINETDiIme8TpFKw++M0tsDeaCeFtFtI7JvXc9E4C+nMVIuZztGgRdScYVXctY5OO7IgrzEj8hWYNb29FLvCAbHcj715bZ18= Received: from DB7PR08MB3385.eurprd08.prod.outlook.com (20.176.238.90) by DB7PR08MB2971.eurprd08.prod.outlook.com (52.134.109.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.23; Thu, 11 Oct 2018 07:11:32 +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 07:11: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" Thread-Topic: [dpdk-dev] [PATCH v2] app/testpmd: optimize membuf pool allocation Thread-Index: AQHUSjuYehtP9H0HrkekSgE9jFIgWqUVYQyAgAAAhQCABGpmYA== Date: Thu, 11 Oct 2018 07:11: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: <722734c3-7020-0a27-d50e-395b7cc2c59f@intel.com> 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; DB7PR08MB2971; 6:NYnLOXM3anBCEVMxCnO/2cQ//z4TS4EDgbT3yZhXAO0Ttzzaiy1nzQWxUtnUEneqmtpmpBUGoaSlOonb7xYtvHcwmp/RB2sw7eCG2Oe4HdwqXJdxB/7jXuVAi2FJlDvhCKa0CJLxiYGozh1oqLtF+CzA4yjLhzhZdqaUlLp3zlJVk3yr7SY0BCAvq4QX+gG3DbAX0+aDNUTFeaE4vawiW7Nh2fANlMoQ9ZBevE+fxciGXXmHS5+8BsxdhZa90Ks2pSeDyKSEJI8hKzAEl0eILVzEZ4qJEiKcRUiuMSQkdW3Qf7tRrTw9rNwpplxR0iencaS3RUTPda/Nz0rTAwTKCxOMovfZagF4HkaHo9nrbzQpI236bjI7cf+6ySGUaqxejtuh8UdvFPdoMBCiiF+rNtNKhxR8vhGj8uSACEnWzVTeP+mDXxGq+iGbfeiME74XfnuZD/RWuzRmZ0DHZeKGTQ==; 5:qvDnUBlRyCVp6f0IM7HPMefmPI0pWqrZhkIiAuJfM6p0PE4IJC89AOmes7jMg6hsZ7ShuTkDPuxVPJStqX+5ISQimUFIPA5rU1lFCcB8cn2ACZxFx18fGEexqGAw+s2IJwlNQokGDIKKLJUpadXYsvS2FaW4G/AlzgzN6G0PiBQ=; 7:VJTCb+Bkg7vv0O/a54e69ukqnYS/fiq6iownlRuPpZiQX7zwfIth/uESutdpJKKShnOayP3Qaz+ZcusZVU+uwQN28LU+hDT4dPzT4PotyzndvaoMxCRTY0QGn8dCI2RvHnw1SUzisL0nM46vzytsovofHv9gXwxSc89+s2fYQISY5cG8bG1OeotS47a7kutwXAld1WRGpLuR6N6KpMkdvnodB//mRvDPl1QjYdpIwOlp0RCE2THjytdz+ju0yFM7 x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-ms-office365-filtering-correlation-id: 43ff445e-3ab0-4815-063b-08d62f48c619 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:DB7PR08MB2971; x-ms-traffictypediagnostic: DB7PR08MB2971: 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)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:DB7PR08MB2971; BCL:0; PCL:0; RULEID:; SRVR:DB7PR08MB2971; x-forefront-prvs: 08220FA8D6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(346002)(136003)(366004)(396003)(51234002)(40434004)(13464003)(189003)(199004)(229853002)(106356001)(74316002)(6436002)(93886005)(25786009)(305945005)(7736002)(105586002)(14444005)(5024004)(256004)(478600001)(53936002)(72206003)(6116002)(3846002)(9686003)(55016002)(14454004)(2201001)(66066001)(2906002)(8676002)(2900100001)(6506007)(186003)(26005)(8936002)(81156014)(81166006)(102836004)(7696005)(5660300001)(33656002)(71190400001)(71200400001)(2501003)(97736004)(5250100002)(53546011)(55236004)(99286004)(76176011)(476003)(11346002)(68736007)(6246003)(110136005)(4326008)(86362001)(446003)(486006)(54906003)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR08MB2971; H:DB7PR08MB3385.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: awdV56fTKu94KVWPJ1k4sXQiqnuRCRqK/8SElHZn+Mf4Hz61dHPS9xJkw2cHTdSiXVRrkQSEsSPDIP/9gexurZOd1QEiLn67701jxs4TD3nTjYPzGk6Jk06IOWMfzmM3v2z4d9cF2tXKZJSS2xvy3DUAWyB6Im0YivPbZx/eYjxd34A7/vjg+2Fhwv+TYCgGxVkl2RP5BjzJ6A0mSHusWEYaeMO8+tOUJ+AomJmIKfK9RKRBIWrbXhmRzks0U4Sj8O4KBOMLmTDUHMuxyuQ7hW5DEjU2LNsh45YtznCdueKRrXDJHxJB3sIzHrCuUKKsOBRDOP91+uTBndDlI7XOvMmoj7VXGXYq2v9hBRNTpq0= 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: 43ff445e-3ab0-4815-063b-08d62f48c619 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Oct 2018 07:11:32.6392 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB2971 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-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