From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A3B62A0540; Tue, 14 Jul 2020 09:37:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9EB381D539; Tue, 14 Jul 2020 09:37:00 +0200 (CEST) Received: from smtp4.jd.com (smtp4.jd.com [59.151.64.77]) by dpdk.org (Postfix) with ESMTP id 2307C1D522 for ; Tue, 14 Jul 2020 09:36:56 +0200 (CEST) Received: from JDCLOUDMAIL49.360buyAD.local (172.31.68.151) by JDCLOUDMAIL53.360buyAD.local (172.31.68.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1847.3; Tue, 14 Jul 2020 15:36:53 +0800 Received: from JDCLOUDMAIL49.360buyAD.local ([fe80::9151:9d0d:6f72:e7a4]) by JDCLOUDMAIL49.360buyAD.local ([fe80::9151:9d0d:6f72:e7a4%6]) with mapi id 15.01.1847.007; Tue, 14 Jul 2020 15:36:53 +0800 From: =?utf-8?B?546L5b+X5YWL?= To: "Burakov, Anatoly" , Andrew Rybchenko , "dev@dpdk.org" CC: "olivier.matz@6wind.com" Thread-Topic: [dpdk-dev] [PATCH] mempool: fix memory allocation in memzones during retry. Thread-Index: AQHWWMdrIfOi4U6eSk6CgXSghkXim6kE1r+AgAADa4CAADitAIABnpgw Date: Tue, 14 Jul 2020 07:36:53 +0000 Message-ID: <78cd0b684bc54a138c3b8055097fb35e@jd.com> References: <1594611634-7730-1-git-send-email-wangzhike@jd.com> <29052ed4-8edd-3667-f44d-314522a44292@solarflare.com> <731680e8-9ae8-b378-4dc7-3ffb0a710d7c@intel.com> In-Reply-To: <731680e8-9ae8-b378-4dc7-3ffb0a710d7c@intel.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.31.12.238] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] mempool: fix memory allocation in memzones during retry. 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" VGhhbmtzIGZvciByZXZpZXcuDQoNClNlbnQgb3V0IHYyLg0KDQpCciwNClpoaWtlIFdhbmcgDQpK RENsb3VkLCBQcm9kdWN0IERldmVsb3BtZW50LCBJYWFTwqDCoCANCi0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KTW9iaWxl77yPKzg2IDEzNDY2NzE5NTY2DQpFLSBtYWls 77yPd2FuZ3poaWtlQGpkLmNvbQ0KQWRkcmVzc++8jzVGIEJ1aWxkaW5nIEEsTm9ydGgtU3RhciBD ZW50dXJ5IENlbnRlciw4IEJlaWNoZW4gV2VzdCBTdHJlZXQsQ2hhb3lhbmcgRGlzdHJpY3QgQmVp amluZw0KSHR0cHM6Ly9KRENsb3VkLmNvbQ0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tDQoNCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206IEJ1cmFrb3Ys IEFuYXRvbHkgW21haWx0bzphbmF0b2x5LmJ1cmFrb3ZAaW50ZWwuY29tXSANClNlbnQ6IE1vbmRh eSwgSnVseSAxMywgMjAyMCAxMDo1MyBQTQ0KVG86IEFuZHJldyBSeWJjaGVua287IOeOi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