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 EA350A04DE; Fri, 23 Oct 2020 11:05:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BEB04A8F7; Fri, 23 Oct 2020 11:05:17 +0200 (CEST) Received: from huawei.com (szxga03-in.huawei.com [45.249.212.189]) by dpdk.org (Postfix) with ESMTP id 8AF01A8EB; Fri, 23 Oct 2020 11:05:15 +0200 (CEST) Received: from DGGEMM402-HUB.china.huawei.com (unknown [172.30.72.55]) by Forcepoint Email with ESMTP id 51F709D0C2386D2A6F4D; Fri, 23 Oct 2020 17:05:11 +0800 (CST) Received: from DGGEMM513-MBX.china.huawei.com ([169.254.1.168]) by DGGEMM402-HUB.china.huawei.com ([10.3.20.210]) with mapi id 14.03.0487.000; Fri, 23 Oct 2020 17:05:03 +0800 From: wangyunjian To: David Marchand CC: dev , Jeff Guo , "Jerin Jacob Kollanukkaran" , "Lilijun (Jerry)" , xudingke , dpdk stable , Kevin Traynor , Luca Boccassi Thread-Topic: [dpdk-dev] [PATCH v5 2/3] eal: return error code when failure Thread-Index: AQHWp5wMInewPv+DZ06zGI+opNgHsamjDucAgAHXyZA= Date: Fri, 23 Oct 2020 09:05:03 +0000 Message-ID: <34EFBCA9F01B0748BEB6B629CE643AE60DAC8AAE@dggemm513-mbx.china.huawei.com> References: <0c755de289f228e67897818639a171cbf1d768ae.1603207676.git.wangyunjian@huawei.com> In-Reply-To: Accept-Language: en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.187.156] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH v5 2/3] eal: return error code when failure 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" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBEYXZpZCBNYXJjaGFuZCBbbWFp bHRvOmRhdmlkLm1hcmNoYW5kQHJlZGhhdC5jb21dDQo+IFNlbnQ6IFRodXJzZGF5LCBPY3RvYmVy IDIyLCAyMDIwIDg6NTIgUE0NCj4gVG86IHdhbmd5dW5qaWFuIDx3YW5neXVuamlhbkBodWF3ZWku Y29tPg0KPiBDYzogZGV2IDxkZXZAZHBkay5vcmc+OyBKZWZmIEd1byA8amlhLmd1b0BpbnRlbC5j b20+OyBKZXJpbiBKYWNvYg0KPiBLb2xsYW51a2thcmFuIDxqZXJpbmpAbWFydmVsbC5jb20+OyBM aWxpanVuIChKZXJyeSkgPGplcnJ5LmxpbGlqdW5AaHVhd2VpLmNvbT47DQo+IHh1ZGluZ2tlIDx4 dWRpbmdrZUBodWF3ZWkuY29tPjsgZHBkayBzdGFibGUgPHN0YWJsZUBkcGRrLm9yZz47IEtldmlu DQo+IFRyYXlub3IgPGt0cmF5bm9yQHJlZGhhdC5jb20+OyBMdWNhIEJvY2Nhc3NpIDxibHVjYUBk ZWJpYW4ub3JnPg0KPiBTdWJqZWN0OiBSZTogW2RwZGstZGV2XSBbUEFUQ0ggdjUgMi8zXSBlYWw6 IHJldHVybiBlcnJvciBjb2RlIHdoZW4gZmFpbHVyZQ0KPiANCj4gT24gV2VkLCBPY3QgMjEsIDIw MjAgYXQgMToxOSBQTSB3YW5neXVuamlhbiA8d2FuZ3l1bmppYW5AaHVhd2VpLmNvbT4NCj4gd3Jv dGU6DQo+ID4NCj4gPiBGcm9tOiBZdW5qaWFuIFdhbmcgPHdhbmd5dW5qaWFuQGh1YXdlaS5jb20+ DQo+ID4NCj4gPiBGaXggcmV0dXJuIHZhbHVlLCB1c2luZyAtRUFHQUlOIGluc3RlYWQgb2Y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