From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0061.outbound.protection.outlook.com [104.47.2.61]) by dpdk.org (Postfix) with ESMTP id A2C9A1BB96; Tue, 5 Jun 2018 23:36:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=shB+r5IQPrCROxi81uFZFo7xPf6yQ7SnAW7ArCcuEvI=; b=IQIsmcvUvi1EpzcoPcqqdIvhYGqtvf9uQ+uoAENTlgJ6WKUGGFNVOiC1g6LiFgAnJTdlDsCxFuqo7Q0wIxXclJRJJj/FbuA3+8u48//wcFalL4wHLyLLyLkIAbfghgl6ivFnQ3uCuR01wP+ZI19zo6t9XzHMYFA3aptLppCPA3k= Received: from VI1PR0501MB2045.eurprd05.prod.outlook.com (10.167.195.147) by VI1PR0501MB2640.eurprd05.prod.outlook.com (10.172.13.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.14; Tue, 5 Jun 2018 21:36:32 +0000 Received: from VI1PR0501MB2045.eurprd05.prod.outlook.com ([fe80::bd68:85f2:e540:99e6]) by VI1PR0501MB2045.eurprd05.prod.outlook.com ([fe80::bd68:85f2:e540:99e6%5]) with mapi id 15.20.0820.015; Tue, 5 Jun 2018 21:36:32 +0000 From: Yongseok Koh To: =?utf-8?B?TsOpbGlvIExhcmFuamVpcm8=?= CC: Adrien Mazarguil , "dev@dpdk.org" , Shahaf Shuler , dpdk stable , "Xueming(Steven) Li" Thread-Topic: [PATCH] net/mlx5: fix error number handling Thread-Index: AQHT/CrB77XBxzx71UKFjyHIOSVKCKRRO0gAgAD264A= Date: Tue, 5 Jun 2018 21:36:32 +0000 Message-ID: <84C956B6-28EE-4F82-97AE-5E9C371DD115@mellanox.com> References: <20180604173731.29125-1-yskoh@mellanox.com> <20180605065246.mw7xnk24cfwxy4an@laranjeiro-vm.dev.6wind.com> In-Reply-To: <20180605065246.mw7xnk24cfwxy4an@laranjeiro-vm.dev.6wind.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; x-originating-ip: [209.116.155.178] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR0501MB2640; 7:d6x+AAVtVONumIR1IMaK5FwpbnRDXRicegQVcB9fkgVrRtQizYlKcZ9O2I1Wcgk+xa8Px0lgGJNN+DXrTOSW/TvBUzMu0RHfiDXMaTSpVUtxkVWf3oQg98cRpADyBIsVYJrWb1IXa6i8MmYUHF5XMws7ha6BkKm+C+Zq6tD5qNykmR0ZRBIxvU1Du3XLCXlgg8Lu+bk5DdaWZPsaIhf04aZnZVomqJE4sgsHLuCcWRC4YWjdxktWzJx2F1DEw4xu x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0501MB2640; x-ms-traffictypediagnostic: VI1PR0501MB2640: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(60795455431006); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:VI1PR0501MB2640; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB2640; x-forefront-prvs: 0694C54398 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39380400002)(366004)(39860400002)(376002)(346002)(396003)(199004)(189003)(86362001)(2900100001)(76176011)(186003)(6486002)(53936002)(83716003)(316002)(5250100002)(229853002)(6436002)(11346002)(486006)(446003)(59450400001)(107886003)(6246003)(476003)(25786009)(6512007)(36756003)(97736004)(6506007)(26005)(102836004)(53546011)(54906003)(66066001)(2616005)(4326008)(99286004)(478600001)(82746002)(7736002)(3660700001)(81166006)(6116002)(81156014)(14454004)(3846002)(68736007)(8676002)(305945005)(33656002)(2906002)(8936002)(5660300001)(6916009)(106356001)(3280700002)(105586002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2640; H:VI1PR0501MB2045.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: hWTTkYTFSrAfKF5xEJ/UsDrI3VBw0GYpxZcX7oWPcq6gvTFLsdVJq+3zcn8FUOHGmtbzjm5yCWXemIqb/o5ptxU+9Ja59SL/ZjLd5VfJQzyZZLYC6BajSyPJwx0moE3ywiKsCfjpjoX4c0s6EicCs4vnFryrv9CcvywIQtemzoI7bJHaBl3D43G1kbNW8ocD spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <5DD998DDF3A5314197244CCC780DD230@eurprd05.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: bbcb8ab4-4fd6-4232-69fd-08d5cb2c67da X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: bbcb8ab4-4fd6-4232-69fd-08d5cb2c67da X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jun 2018 21:36:32.3691 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2640 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix error number handling 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, 05 Jun 2018 21:36:34 -0000 PiBPbiBKdW4gNCwgMjAxOCwgYXQgMTE6NTIgUE0sIE7DqWxpbyBMYXJhbmplaXJvIDxuZWxpby5s YXJhbmplaXJvQDZ3aW5kLmNvbT4gd3JvdGU6DQo+IA0KPiBPbiBNb24sIEp1biAwNCwgMjAxOCBh dCAxMDozNzozMUFNIC0wNzAwLCBZb25nc2VvayBLb2ggd3JvdGU6DQo+PiBydGVfZXJybm8gc2hv dWxkIGJlIHNhdmVkIG9ubHkgaWYgZXJyb3IgaGFzIG9jY3VycmVkIGJlY2F1c2UgcnRlX2Vycm5v DQo+PiBjb3VsZCBoYXZlIGdhcmJhZ2UgdmFsdWUuDQo+PiANCj4+IEZpeGVzOiBhNmQ4M2I2YTky MDkgKCJuZXQvbWx4NTogc3RhbmRhcmRpemUgb24gbmVnYXRpdmUgZXJybm8gdmFsdWVzIikNCj4+ IENjOiBzdGFibGVAZHBkay5vcmcNCj4+IA0KPj4gU2lnbmVkLW9mZi1ieTogWW9uZ3Nlb2sgS29o IDx5c2tvaEBtZWxsYW5veC5jb20+DQo+PiAtLS0NCj4+IGRyaXZlcnMvbmV0L21seDUvbWx4NV9m bG93LmMgfCAzICsrLQ0KPj4gMSBmaWxlIGNoYW5nZWQsIDIgaW5zZXJ0aW9ucygrKSwgMSBkZWxl dGlvbigtKQ0KPj4gDQo+PiBkaWZmIC0tZ2l0IGEvZHJpdmVycy9uZXQvbWx4NS9tbHg1X2Zsb3cu YyBiL2RyaXZlcnMvbmV0L21seDUvbWx4NV9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