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 5A702A0C47; Tue, 26 Oct 2021 09:07:50 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2A66140A4B; Tue, 26 Oct 2021 09:07:50 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 4EA0B4003E for ; Tue, 26 Oct 2021 09:07:48 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10148"; a="253373660" X-IronPort-AV: E=Sophos;i="5.87,182,1631602800"; d="scan'208";a="253373660" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2021 00:07:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,182,1631602800"; d="scan'208";a="497164492" Received: from irsmsx602.ger.corp.intel.com ([163.33.146.8]) by orsmga008.jf.intel.com with ESMTP; 26 Oct 2021 00:07:46 -0700 Received: from shsmsx606.ccr.corp.intel.com (10.109.6.216) by irsmsx602.ger.corp.intel.com (163.33.146.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Tue, 26 Oct 2021 08:07:43 +0100 Received: from shsmsx606.ccr.corp.intel.com ([10.109.6.216]) by SHSMSX606.ccr.corp.intel.com ([10.109.6.216]) with mapi id 15.01.2242.012; Tue, 26 Oct 2021 15:07:41 +0800 From: "Hu, Jiayu" To: Maxime Coquelin , "dev@dpdk.org" , "Xia, Chenbo" , "Wang, YuanX" , "Ma, WenwuX" , "Richardson, Bruce" , "Mcnamara, John" , "david.marchand@redhat.com" Thread-Topic: [PATCH v1 08/14] vhost: improve IO vector logic Thread-Index: AQHXxCCjfTZu2w7WJkyCNnXRPTJxqavjUNag//+vqQCAAebvYA== Date: Tue, 26 Oct 2021 07:07:41 +0000 Message-ID: <2ad367cda39b442c9c5b01d80c7c050a@intel.com> References: <20211018130229.308694-1-maxime.coquelin@redhat.com> <20211018130229.308694-9-maxime.coquelin@redhat.com> <9239770ed6c74f67975524bd081af39a@intel.com> <285afc18-6ef6-543e-d4d4-5968132c0cd5@redhat.com> In-Reply-To: <285afc18-6ef6-543e-d4d4-5968132c0cd5@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.6.200.16 dlp-product: dlpe-windows x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v1 08/14] vhost: improve IO vector logic 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" SGkgTWF4aW1lLA0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IE1heGlt ZSBDb3F1ZWxpbiA8bWF4aW1lLmNvcXVlbGluQHJlZGhhdC5jb20+DQo+IFNlbnQ6IE1vbmRheSwg T2N0b2JlciAyNSwgMjAyMSA2OjAzIFBNDQo+IFRvOiBIdSwgSmlheXUgPGppYXl1Lmh1QGludGVs LmNvbT47IGRldkBkcGRrLm9yZzsgWGlhLCBDaGVuYm8NCj4gPGNoZW5iby54aWFAaW50ZWwuY29t PjsgV2FuZywgWXVhblggPHl1YW54LndhbmdAaW50ZWwuY29tPjsgTWEsDQo+IFdlbnd1WCA8d2Vu d3V4Lm1hQGludGVsLmNvbT47IFJpY2hhcmRzb24sIEJydWNlDQo+IDxicnVjZS5yaWNoYXJkc29u QGludGVsLmNvbT47IE1jbmFtYXJh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