From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1DC4BA0547; Thu, 28 Oct 2021 13:26:34 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 09E5A4111A; Thu, 28 Oct 2021 13:26:34 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id D685840DF4 for ; Thu, 28 Oct 2021 13:26:32 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10150"; a="230647027" X-IronPort-AV: E=Sophos;i="5.87,189,1631602800"; d="scan'208";a="230647027" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Oct 2021 04:11:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,189,1631602800"; d="scan'208";a="529979730" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga001.jf.intel.com with ESMTP; 28 Oct 2021 04:11:14 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Thu, 28 Oct 2021 04:11:13 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Thu, 28 Oct 2021 04:11:13 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.42) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Thu, 28 Oct 2021 04:11:13 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N/wr+oarGEPr/2mtoTDJIUwhmOlcJStC7F9aHBZXtc/hx4goMlFTThfpnEk9cVdBKU8rmWojWiGPAt6PL7I5r/Z34QXYhPRpdKTn89mo3SNRAWzQ1xQcXpUhCiIbzKVQzy/xkcsi+3tR1jktm9acaV+XFETtfKVhHj17YHvub/K5FuequJucz8xM86If1SVo2dmbrqpcouYGwvvZIEMCsDnseQXX0qSdtsJc4SL3ar1K9tyPGyJAuQ1iadcfTb2SJ4C1G5vF6sJFsm9b+4QUVj+8V58dJwXiaaoA1tETNNx1SlamxoG4NdSxe9bB0xVyZ1cYfYW/c5LmP8Kdl+h4Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fIbYrlZ8RMDu+4qzvTMcYUbkZr4V1U7Yh7TpDf/GzxQ=; b=V9H8BDviNW8alN3MGYqWiVyd+SlWGAwaDSFiWJSoseiZmF7SvLvrD9Z7LLRO+5u3flcX6ENPCE0le4rCd1y1u1ziQfWzYHJ40AqtIvTpHtMqaxIUzZ9+kmAse/+SDg11+KBypQssKsb25IAkVSmH8LDZVreVsOV8j0zRDhFuWvhDqe7xdmbuHwBCMdr2fet4MJeM1ehMtP6zMdQHRb0YuxlxP4J6wGtNEsQP4xbvqAeawg1RW/LfQJlFkLkm1jOpFbFtrN2lL48Uw0oEzi5TXJ7hStrt1vTU0ievRurjActYD7ZUPESXlMNDFHwG4ycKufaE8BYXL/HQmj9m5ZuSrQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fIbYrlZ8RMDu+4qzvTMcYUbkZr4V1U7Yh7TpDf/GzxQ=; b=g927iO3oH2vu7px88memV06/NEHh2u2dwjWS5eFcXCYdXKANWYVcV6Ok3nogR+wNlYiUQ5Ox5IQMfhrF5s2tsYd+eqFWUtPR3tdx3lOyLp0MPko24gev9DAq9idYsz/pixCXojF4Pycole7/NaWgtUxWhpBDknKKa0UEooprTLQ= Received: from SN6PR11MB3504.namprd11.prod.outlook.com (2603:10b6:805:d0::17) by SA0PR11MB4541.namprd11.prod.outlook.com (2603:10b6:806:94::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.14; Thu, 28 Oct 2021 11:11:07 +0000 Received: from SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::94ce:97cd:1b5f:b511]) by SN6PR11MB3504.namprd11.prod.outlook.com ([fe80::94ce:97cd:1b5f:b511%7]) with mapi id 15.20.4649.015; Thu, 28 Oct 2021 11:11:07 +0000 From: "Xia, Chenbo" To: "Burakov, Anatoly" , "dev@dpdk.org" , "Yigit, Ferruh" , David Marchand , Thomas Monjalon Thread-Topic: [dpdk-dev] [PATCH v1 1/2] vfio: make API return values consistent Thread-Index: AQHXqubKZ61nbE7t9UW49rWXMD44UauvbLtAgDkK5wCAAATNYA== Date: Thu, 28 Oct 2021 11:11:07 +0000 Message-ID: References: <25dd76eca01ec57d64be9c0a78ac2752f602984f.1631788595.git.anatoly.burakov@intel.com> <8b8fd2e4-e7eb-26cd-ad32-2f284eacc24c@intel.com> In-Reply-To: <8b8fd2e4-e7eb-26cd-ad32-2f284eacc24c@intel.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 56b6996c-4f24-4591-f986-08d99a03a3e3 x-ms-traffictypediagnostic: SA0PR11MB4541: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: AHHJZavFBx/Tk+DmhyguQUJiOzHB5l1xrgN0UN93O+6g8bq2esi3k8wnOFA5KVMJecrpJouyGT2faliFK0xMZCqDymXIndm2suBs4Q3P2LpdoIafdZM7xCu0T1Ba+2iwqTBaANQTz2AeZjxDyYHA15OGd/wLTKyP2pJdiUpKx6QtDpwGPx6ZX6yv0R9nxC4QJNFtizoQkDborkshCkICzQbv2TKgUA/sP1qysFOrFuaHH316ECSZHe1a07AzT7yojFiVvjofS81PuozkyYDM4aNm/6OoCe5U2MwpbHqMKwlRdrRDSs2uRAK61CRWkryBkayvv8W99jQkTduqI7/L4Dl2GBQ9OfB1xOoC/Ewfou3+KdhLrnyAoXSGOtlKKoY5Qop0gXQQFMUz/r9BXY7dr6G8BmNfA+AUKq+ER8CiEjwcH0RTh8B8UMTGm/sigPPQUInqsDqblf/qchxLsyqYXD/NRJmqeUKhY0Pib+4IiMB0wrlQHnhv3osPUrhdue2rWpRRolsb+LWNs4oPnudNPVT0S1bWONvMdib+p8Nj7PDvz7Dkkv+xrSlZjUwxq7TUGfqqfDjKd44pJMAUubEjXrpyl2v6qVABCY4cuz149KfJE1d0Gp5Rf6l2La5dZb36HaB5v+Uc5jwUFEeR7WRt61r9pNUvF8saROi8l1Q46YgStaHjVTfp1/E0eqqfCH+QjEBG8JhlVRspG1kgUNcV0dSpqWXi8zih0nua1GXYp14= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3504.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(110136005)(122000001)(508600001)(6506007)(53546011)(9686003)(2906002)(8936002)(82960400001)(8676002)(66946007)(66476007)(55016002)(316002)(5660300002)(52536014)(66446008)(26005)(186003)(7696005)(66556008)(64756008)(33656002)(86362001)(38070700005)(76116006)(71200400001)(38100700002)(83380400001)(21314003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?Z0dxNmoyQ2IvL1VHazk1LzIyWGpacXFqWkFQSkRHajQ4cGpXVng4TS9GTDdN?= =?utf-8?B?SUdYT1FTRGo0Q0tvOFROVzA1cDI1R3V2T0lsZm85bUdUQ01EWmsyTVU1Wmk5?= =?utf-8?B?R1c5dmJvZTlUblE4WHFPMVJ5aXNPcGR2RXZIamxQNG4vYVlrWlJFbDRFYWEy?= =?utf-8?B?eUV6dDhlMjRMMmVyWXlBVzJHcWZDRWMrY1RPODlQcDZsYU90UFhTK211ZERD?= =?utf-8?B?N0pyNnZqb1JRYVFLNDVKTlRnQkV2cHpBVDJ6QlhSRzdUcnBuOFI1VzJUMXNq?= =?utf-8?B?bm5Ccks1K1kwK2dzRlE0SUt0NFpYZ25jbER0cXAvVjZxcG1SSjdLSFY5cVpm?= =?utf-8?B?SFcrSWQ3SXpPdDFDSUNENUdtODRTQnpqclhKcHJPcnNBT3QyYTNkSC9BaFlV?= =?utf-8?B?d3JpRTBLZG56MFdoUW9zRmZaYjRBYUFzTVU4RHU3c0FaVGhpc2tIQnZJMVZV?= =?utf-8?B?QW9HUUNiNk9VOUFxSmZmd0FXVXc4dU9kWXdXTkdNeVR1SXJBY1hZbkMySURo?= =?utf-8?B?Nlg2MUc3VThac2VLaUk5enlJcEQvUVhPUm5QTkFGaHlZS25WVzRpVGlqWUFz?= =?utf-8?B?SnA2K29jajdXeGRIbHl5SFRNTDhyY2Y4UUQwW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TVJWV2ZvdlZJbGRPMHdP?= =?utf-8?B?UTBvSzZvR0ZaWDdJWWhHUk9hSC9NNmNsa2pTaWlNVDVLT1VmcEtUempzSHFM?= =?utf-8?B?L0Nxdktra2xtbTNic21PLzh0THlYSHdZeUdJNFhVTlZtRE9qeXlkTFZJTWtJ?= =?utf-8?B?ZjVyTmVLSkt1WFdPckNMaW9HVUlsNzRGU0R5Tms2NEpSeGNhUXRRdW1PYkdS?= =?utf-8?B?cVlRQjZ0MW8zaVllMmRkdHVrMFkyRU0zditxc2pyVUpsUGhyaWJxSDhRYzV0?= =?utf-8?B?VlpSMDV4Wk9USVBZSkJuUE9hdTdoaDYxWjV6OGJmM2RYSWFQTjdZVi8rS01X?= =?utf-8?B?SG5IdmFWcWw3cWRXcGpyTVJ0N3VYOXVCKzV4Ky8zYjg3OTlva3A2ejZUZnlC?= =?utf-8?B?Z1RhaU4rcXcrVW93bnZNTHpuVEp6MVdxVHE0VjcvVEpML0UrL2NGSldJZWNX?= =?utf-8?B?ZU84YlNFM2JKVnR2bkd0eVAwY3hkMnF3VnQyUEdsd29QRFNsRUlmVGw3OFgv?= =?utf-8?B?WXRuZXNKMVNkVjhpWjN2UTBZaWRoVUlaakhza2EwamxRWUg2ZmhsY3FmL2Fv?= =?utf-8?B?QmFQaVJjMlZRcERtNWxJSEpIT2Fva01PbGdIbU02Qmd3SDFrcldzWndLRHF5?= =?utf-8?B?MlE9PQ==?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB3504.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 56b6996c-4f24-4591-f986-08d99a03a3e3 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Oct 2021 11:11:07.3822 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Q/PlaqQRuGvaNXGixRB9Xax4wcfXC5AiCbolNYhTIop6CLYaw84tqd9o/yXPxK8H7ygfpTuV+/ygw/t3XsOhkQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR11MB4541 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v1 1/2] vfio: make API return values consistent X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBCdXJha292LCBBbmF0b2x5IDxh bmF0b2x5LmJ1cmFrb3ZAaW50ZWwuY29tPg0KPiBTZW50OiBUaHVyc2RheSwgT2N0b2JlciAyOCwg MjAyMSA2OjMwIFBNDQo+IFRvOiBYaWEsIENoZW5ibyA8Y2hlbmJvLnhpYUBpbnRlbC5jb20+OyBk ZXZAZHBkay5vcmcNCj4gU3ViamVjdDogUmU6IFtkcGRrLWRldl0gW1BBVENIIHYxIDEvMl0gdmZp bzogbWFrZSBBUEkgcmV0dXJuIHZhbHVlcyBjb25zaXN0ZW50DQo+IA0KPiBIaSBDaGVuYm8sDQo+ IA0KPiA+IEFuZCBkbyB3ZSBuZWVkIGJhY2twb3J0PyBBcyAncmV0dXJuIC0xJyBkb2VzIG5vdCBh bGlnbiB3aXRoIHRoZSBBUEkgZG94eWdlbi4NCj4gPg0KPiA+IFRoYW5rcywNCj4gPiBDaGVuYm8N Cj4gPg0KPiBNYXliZSBpdCdzIHRoZSBGcmVlQlNEIGltcGxlbWVudGF0aW9uIHRoYXQgbmVlZHMg dG8gYmUgYWRqdXN0ZWQgdGhlbiwNCj4gYmVjYXVzZSBub25lIG9mIHRob3NlIGZ1bmN0aW9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