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 B9EF2A0C43; Wed, 15 Sep 2021 05:04:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3FF4A4014F; Wed, 15 Sep 2021 05:04:35 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 46D934003C for ; Wed, 15 Sep 2021 05:04:33 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10107"; a="307746851" X-IronPort-AV: E=Sophos;i="5.85,292,1624345200"; d="scan'208";a="307746851" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2021 20:04:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,292,1624345200"; d="scan'208";a="583088529" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga004.jf.intel.com with ESMTP; 14 Sep 2021 20:04:32 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) 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; Tue, 14 Sep 2021 20:04:31 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) 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, 14 Sep 2021 20:04:31 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.100) 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; Tue, 14 Sep 2021 20:04:31 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WrDh1hLhxm3aVPIFYZ0iU0XLsXZY00awgXG/4RWPg9va3xRbCgjBzkusud8MgRxcwcipXXQx5bAXc4eNTvjrM+RPOj29IVApqdT1u98JNjfjTGxhKC++wcQAR3RGdeV2s24v9KHF7wQrzjyo8313//r2Oj1IWmgLNre6qT1CFs7jvnfmmcnw93QkucBewHOnTi46sqXv/fvLGyIiophwz9X/S9WgO30WUs5ECQJDgsceCkWcpFR96Wb9k8RcWJDtGvZ1AUgLKcM9Ur9Pp3gFl/A7t9DD4KlhwcSTZyGKTr42/e9MQwh48jjdzbipKCnbS2dNvCcRgUVXudTiOEWylA== 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=xTw9mHNaIGd/SVz3TlHCur/ZV2K964G2C72wl54FVi0=; b=CkfGgDWSCKJ8dtGs5oRGIcTJbFiPwbM0aAuodgsNmWqUDgUaSL7dGi9kcdxAf1xivthCHlq/MSZZsuiMObhkBLaOVXt8KMAnDtZBWcGn9dEBRtgciRnPr5ixWBWYV33GuaOBeDQEpuhpFRcp7CZtd/H9SntMkX8SsjVr/Bl6bFLIRQmRl6IP/75Q0XtyAuSd/W6S4NsZRWTmZUBwZ23Qt3/IUvqDtUsp/wqzH874BRhC1CuINId9JYNPsA/NsljsqVLG9/0oIF10xH+aMCJ2cVQ9+VBqZAfvf2naRGdWqiCWhSinDgv4Zsh7r/G4yN3OnmylZWuDkXarviKPodQptQ== 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=xTw9mHNaIGd/SVz3TlHCur/ZV2K964G2C72wl54FVi0=; b=UkyAtfDGYuCfbrwX6SL/AIbl+2hYSfnVyhZcYftESQClyfCJ/REpt5IuqRELdXkDIL5dAUM9go3Xz5G03ZCpeviCg5AryGVmFC73fg1pG8FBBbJFD02Pexgfwwr4G/xEg5DI1mZQIMFu8sbwL70zAzU2nv82JkRszGMk5ZyOLac= Received: from MN2PR11MB4063.namprd11.prod.outlook.com (2603:10b6:208:13f::22) by MN2PR11MB3871.namprd11.prod.outlook.com (2603:10b6:208:13c::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14; Wed, 15 Sep 2021 03:04:28 +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.4523.014; Wed, 15 Sep 2021 03:04:28 +0000 From: "Xia, Chenbo" To: "Ma, WenwuX" , "dev@dpdk.org" CC: "maxime.coquelin@redhat.com" , "Jiang, Cheng1" , "Hu, Jiayu" , "Pai G, Sunil" , "Yang, YvonneX" Thread-Topic: [PATCH 3/4] examples/vhost: use a new API to query remaining ring space Thread-Index: AQHXov0UXhtzsofNVU+S8f95sshsZ6ukdrMg Date: Wed, 15 Sep 2021 03:04:27 +0000 Message-ID: References: <20210906204837.112466-1-wenwux.ma@intel.com> <20210906204837.112466-4-wenwux.ma@intel.com> In-Reply-To: <20210906204837.112466-4-wenwux.ma@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: e396f319-b26c-49ca-e466-08d977f587f4 x-ms-traffictypediagnostic: MN2PR11MB3871: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1417; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: u3LO4i8s8lJEZAyxf6qOuQKUxW59Od9y3YGf83FUs5z4dFbwVzWhaoNTquexbA2dvU9yTUxo8EOt1umyMiAdhqTRdlxBngbQpr8c6jhmmoXcY9i1Vyyb2WDtiHOsFklJAE3cZZrInfF8FI9e+KdVqMh0mYy2BF35VldQL1f6Ghu5MWGUuC2CgQ9WtDq2tsgo2hjish8XXDTriUlS/nWvp/2eHDGspMaxEGzEYemx9KR+pRWrXVr2XOeSBahaq92OZr+qUYHlpIZQeqHvL71pWaDcMNYvq9vZW7NP9f1pZs0ys0+yTKE60XhnBvEgTeM3OrHR0vmZ7sXVFk1crsEyqWNBIRxT6LfptGoaf/10QdOCa2eGt7Kbz1fEOughYgUca9nw+n6ZE2gFCtJBoBnNLiWCpVzxLfkW8tHlEAnrzzW/UX0qA0pOGhrlKpJnamFps3t9bLwKj/bPOtQGV8lr3TA5HtMfkB0Rf8UiKxYOgAJS6SKcXOFUcKx/OxS8GB3C7qIdxu5hKOIFigElipvPx5k9bvnI6KdFfEV9XvGDp6of+Nj0eINkRWA7v4tkRyRe1szRuwtBgPxYfZIb9p+f6d6dQpfTAOfk0MfOpYK47Dgnfy8jwFIgWorMfSWgYtzwH4x0OoRLwfMq69RlQk3EDLvhob/lyp8pXl8QG8CfUhqjctO04HDcWwC43TWMx42eg4/HfTZZXXPEkri8IffwCQ== 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)(376002)(396003)(366004)(39860400002)(136003)(346002)(7696005)(110136005)(33656002)(53546011)(478600001)(5660300002)(8676002)(4326008)(83380400001)(38070700005)(52536014)(54906003)(71200400001)(66446008)(122000001)(6506007)(66946007)(86362001)(26005)(38100700002)(64756008)(66556008)(66476007)(107886003)(9686003)(186003)(8936002)(2906002)(316002)(76116006)(55016002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?bE5kdWZXU0pzVWRBVU9KV1FoRWVEM3VKaGJ2aDNNMmlxbFQ0aVZTTC9MVUEr?= =?utf-8?B?K29WMHN6WmczMjNLL0JHWTNuc1B0dEgzbVhqRGVPaEYwUlV6VXRFRUh2dHND?= =?utf-8?B?WlpFNnA3SFdaR21UYVg4VUR3K2pZcjVpSEdoWXZoU1VzMGpROFBuUVp6eGps?= =?utf-8?B?SDhXd1dXNkVWbm8rTHAwOU05eExmYld4ZHN2MTlDZ0RpaVFZclNWTEt5UTBp?= =?utf-8?B?ZURtNFFsd2VXcGpuTTFpNmhGS3ExWlFBcThpRlNZSys1eG5qT2R1Y2E3V0xs?= =?utf-8?B?L3FhQ3JqR0FnVU5GSWRSZXdndEd6K1FKdEN4TVAzbnN3VWMycGttOFpYMkVx?= =?utf-8?B?WktoOUtNQnp1QklnWktTMDdWaC96U3RGSnU0RHZHY2hFSjhqRXNITWNIUElG?= =?utf-8?B?OFpCWHprN3o4YzR3R3JrTHQ3bmsxVXgvWkNZcWhwd09MYm5RaUN4WCs1RmhS?= =?utf-8?B?V3pjbUFyMUJXcThwM25ScVN5cDlIUnFtUmxHTVRiUnNudlZ2MVRiYzFPdnRp?= =?utf-8?B?enBXVWtLQ2swMjdqRURobW94dWs5UUJSSVF1eEcrN3hkR0JpazJrblMrWm1a?= =?utf-8?B?am9GWTVlZDNUN29WMmhGdmVYU1VhNjhUelV6aWtjNlZVcjhJdk92N3BGU202?= =?utf-8?B?MHhQYk96akFTZGpTemNnRE85TGk4ci9TN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NLeG1HUnhXU2ZOc1RwTkZ5cTdUazVNYzQ0L3ZIcTMx?= =?utf-8?B?U2NheFlzOG9kNmlQT2JiNXA1ZDg4UDlaeVB3dVNPaGZYMEQ2VGdYaUFEUEtF?= =?utf-8?B?anFpRk9QZDRQOFhIT0R4bllZYlRuWmZKK1hKdFM5YXcra09vd3M3QWNuejRE?= =?utf-8?Q?VerIbVj5Fa6hGxF64o=3D?= 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: e396f319-b26c-49ca-e466-08d977f587f4 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Sep 2021 03:04:27.9423 (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: S/V8uA7KX0wRMDjh6c1jIwqKs2NJpZp3KM4MV6thixfEe518ozhxThBYf1NlwJiK2GEy/qXWI0rL1P/s6SmlIw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3871 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH 3/4] examples/vhost: use a new API to query remaining ring space 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" PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBNYSwgV2Vud3VYIDx3ZW53dXgu bWFAaW50ZWwuY29tPg0KPiBTZW50OiBUdWVzZGF5LCBTZXB0ZW1iZXIgNywgMjAyMSA0OjQ5IEFN DQo+IFRvO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