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 85BEEA0C45; Wed, 22 Sep 2021 05:30:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 16A164003F; Wed, 22 Sep 2021 05:30:08 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id EBEE74003C for ; Wed, 22 Sep 2021 05:30:05 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10114"; a="309061698" X-IronPort-AV: E=Sophos;i="5.85,312,1624345200"; d="scan'208";a="309061698" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2021 20:30:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,312,1624345200"; d="scan'208";a="518440444" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by orsmga001.jf.intel.com with ESMTP; 21 Sep 2021 20:30:04 -0700 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 21 Sep 2021 20:30:04 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Tue, 21 Sep 2021 20:30:04 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.103) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Tue, 21 Sep 2021 20:30:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ogt5zyuKjb2h5CqIgyaeLpAXzxsTl3JUivuQj/iczIU7ZwPQVH8LbBzNIOoxIZcSXYCChx7P+ohKePdcL9/MfsdJDLVU3YkLEBzlYFRJrcULsj9UzTcxZYKVyjXMfdDURg1GJi+m/eIm+KbTgAzo7pX7bifbly6K3Jd/16dY1LsdWeLyVinYZ57RAIf+bfph5lw2vXVNRHGT3ev3FJeRDsce7wYEEzztXvcZRzYsVLqg4eR2fgr6tk5ZWCD/QvFiYfFaksRMz9ZgfQqBwIKtgQAJyDqFkx+jEjUEtvqhwkAKOH5s0ZVIySMCohGcItj0IDW8hkFeuzXg8zYqQxhrfQ== 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; bh=/zcefO1Ame3YqACJDFd3M42Qx6u2UlStsteK9Y0h+RQ=; b=U8cEUN1FxOjPlz7fiSN8jdPdK+hNNmSpXvCVuaCaNjV96yGVoZKjWN8JqtCT9GqK8Arvip3YT7NWRziXQ38wx+VoVlK7vrUQ4MyIBbe4vdjiT7f0q8FEJ3JtmhSw6iJUO2FEH9ubAQkUTTED8vqeARXbbZx9qHUEajKdleZsI4WoqJbjOxyASJ8Pa3CN33azGcfUGHbDbPV4+iC/4J3igGoEMkcMa3DAdiDCsk7TbYi7RouqOGauHTsUx4UMWpE6XZ0FGawRyBPYKHZrg8T8p9RkLjNSwkuwdxIzB6+ATXFtAaFmfl0/xY2g642w+DRu52pV6PyIGFv28EY4Zq/yoQ== 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=/zcefO1Ame3YqACJDFd3M42Qx6u2UlStsteK9Y0h+RQ=; b=KvAde1qQTfPp641u2n5lSrnmbb24qsCWRhUgtY4wYVokdeRlgNvzHOeDSb3LU0MUYi2x16vGlZbhHrZctAfixaYzRxBmp80rXfMBaL8plHG1I48okkNE1RK8A9xtaBt8HdghAGmJvH0UHwNJ6aFmdf81whT9x5x1JtrnX0QUpuE= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by BL1PR11MB5413.namprd11.prod.outlook.com (2603:10b6:208:30b::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Wed, 22 Sep 2021 03:30:03 +0000 Received: from MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::6873:dced:7f68:801]) by MN2PR11MB4063.namprd11.prod.outlook.com ([fe80::6873:dced:7f68:801%3]) with mapi id 15.20.4544.013; Wed, 22 Sep 2021 03:30:03 +0000 From: "Xia, Chenbo" To: "Burakov, Anatoly" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v1 1/2] vfio: make API return values consistent Thread-Index: AQHXqubKZ61nbE7t9UW49rWXMD44UauvbLtA Date: Wed, 22 Sep 2021 03:30:03 +0000 Message-ID: References: <25dd76eca01ec57d64be9c0a78ac2752f602984f.1631788595.git.anatoly.burakov@intel.com> In-Reply-To: <25dd76eca01ec57d64be9c0a78ac2752f602984f.1631788595.git.anatoly.burakov@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: 9097c671-5467-4857-d1c4-08d97d7943dc x-ms-traffictypediagnostic: BL1PR11MB5413: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: giuwxxoHFec6pweTljlEmxc/ewGDKw50rT1ImDP6LsHsjYvDmv+YJB7EIap6s9wD8v/a0XbHYp7tkwIODGri5TfSQN1FNui9+LI145fm9Sz3XimVOGiwsDGPJsan+AAnNkBpaZSIFCeRxyYJu283n5jW05PUNzVngtZpGnK+UbCMCqKuk2GZalNwUFThIvP8uIRwYcXWipIw0VYz0+SN2h/HFKO+to0Up+s/XH2ob+fL/dOM+ce9QMDUeczyoGCZ4i6QL65RMauOxrn8wp5E0P4/6YlZdUpO5FdcmSI942lSjLpGndLbHr2WISTgj3lxyGPCcXkGeza9d4NchjhAY9o+RdpPptf++CFSi9vKgFVWDO6d12NkGaw/st1JnddghtriQ+woBW+GJnQA4lRBwfJ1ym/UNsTUunYqwdQGFzAdme2Nx+E92GTzvkY1BRdY7vDEnA+pA1eCk6dMr+220uosngtpXgHp//nx9CSeYpFRw6ox95YYX7l4wZgVyLqCXh2Wc+6xYcA31k54sVBo9L982ntWqIW2nb3nIQ8UcC2RNg1eBMXkHb8E5VsbvwSL4EtNjkJ19mdTU4uE8U/6GyCvihvkRVQeEaD80O79q1QrHB2QdzLnXLfoGLWRkwA9fgCP9xH2QkAykT7HSEXtVFvxnoxuZ/QpVM8POlkiRM6LWW3WoDobp7cSgKSIpeHWKCGr4P+YzoZl5wJLzpp8jg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4063.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(38100700002)(122000001)(8936002)(83380400001)(8676002)(52536014)(64756008)(66446008)(55016002)(38070700005)(76116006)(508600001)(66556008)(86362001)(71200400001)(53546011)(26005)(66476007)(186003)(7696005)(2906002)(5660300002)(6506007)(9686003)(66946007)(33656002)(110136005)(316002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?Ymg0OVpnckZVaFRVazgwMHgxNUJqamE2ZUlOZWxSdlh1Ni9GSE8vTFVvYlFN?= =?utf-8?B?Zmptc3VQNFBKN25qVThrSWRTTGhNdm1CRHppWENQbktqRVM0NHBJcXA3ZTh3?= =?utf-8?B?MUUwaHY4S0NNRmRxUWdrempDZ3pINVRjaTRxNjVYL1NZUGQyWURpUkt2VGdJ?= =?utf-8?B?dktEQmxYK05Lc0Jhb3g2UkEyVVc5NHdhS0p0OWVpMlpSY0V6aGZQRjV5bnh5?= =?utf-8?B?YmJsV2xZL0FhNlh1SFJZWkdBMCtXNzJ3RW9uazN1UXpmSnpJMFh0L1ZYTmtw?= =?utf-8?B?eHRlbzcyRVlZTnhUbU94ajFLQ0Q1Y1dHOG03Qko2OE5KZDZCb3BPeHlvYTdk?= =?utf-8?B?U0JiT1hxb3Q2bkhCMVEwUU8zczR6dW1DdkhxcFFpS253ZmVPNjIxYnhlS0ZX?= =?utf-8?B?L1BNd3BrMEdEdGhBNUVaMXlVY3UwR0s5ODBYQkM2cXRGMzNqQXcrUms2UCsz?= =?utf-8?B?SnF1cGhzNitWOHlzbW1QM2UxVTJJVzE5SENtY2hDYVJFVUtCRVdqWVZmbi92?= =?utf-8?B?OC9iQVFYUllmZkZpcDNGWmdDQzdxQkR2T1hLNGJqUXdGNytHZWIrSUIyREMx?= =?utf-8?B?UFdFY0xOMGxpd3dacDE4Nlc3WnBubkRMQUhzL3B3M3hhME9KK0lHbVR1TG91?= =?utf-8?B?bUd2b3crbFNxTDR3dGRiOVVHK1ZJQi92NWhYcjJpM0xndFllR1pBdEdkWDl5?= =?utf-8?B?WFUwZWtXRmRQMko0Ym5ndStqekhJQWNoc0s0b0xzbGpoa08wbzRjcWw2Z3hy?= =?utf-8?B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NtVXlQ?= =?utf-8?B?ZlQxS0N2NmxVamhQdys1NlN0MGxIK3d1MTRlK1JIY1IyV0lZbC8wN09pdDZo?= =?utf-8?Q?SEsZGLoFbTVhIjA8sd8jxHvC71WUYlqQnskSJj8?= 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: MN2PR11MB4063.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9097c671-5467-4857-d1c4-08d97d7943dc X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Sep 2021 03:30:03.1586 (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: 8Me6KJ8ndsqkEWsvdfbKKFfJRwlmwnfc+CS7W0RaWNazWOgLUb0K5oT+g1xugxp1NV8NrxNd/+0rrEP74cNZ5w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB5413 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" SGkgQW5hdG9seSwNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBkZXYg PGRldi1ib3VuY2VzQGRwZGsub3JnPiBPbiBCZWhhbGYgT2YgQW5hdG9seSBCdXJha292DQo+IFNl bnQ6IFRodXJzZGF5LCBTZXB0ZW1iZXIgMTYsIDIwMjEgNjozNyBQTQ0KPiBUbzogZGV2QGRwZGsu b3JnDQo+IFN1YmplY3Q6IFtkcGRrL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