From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 107565955 for ; Fri, 3 Jun 2016 09:43:35 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP; 03 Jun 2016 00:43:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,411,1459839600"; d="scan'208";a="820828676" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga003.jf.intel.com with ESMTP; 03 Jun 2016 00:43:31 -0700 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 3 Jun 2016 00:43:31 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 3 Jun 2016 00:43:32 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.150]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.107]) with mapi id 14.03.0248.002; Fri, 3 Jun 2016 15:43:29 +0800 From: "Xie, Huawei" To: Yuanhan Liu , "dev@dpdk.org" Thread-Topic: [PATCH 2/3] vhost: optimize dequeue for small packets Thread-Index: AdG9a54cDVRyUoDVRFOTVpGyu8m8xQ== Date: Fri, 3 Jun 2016 07:43:28 +0000 Message-ID: References: <1462236378-7604-1-git-send-email-yuanhan.liu@linux.intel.com> <1462236378-7604-3-git-send-email-yuanhan.liu@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH 2/3] vhost: optimize dequeue for small packets X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2016 07:43:36 -0000 On 5/3/2016 8:42 AM, Yuanhan Liu wrote:=0A= > Both current kernel virtio driver and DPDK virtio driver use at least=0A= > 2 desc buffer for Tx: the first for storing the header, and the others=0A= > for storing the data.=0A= >=0A= > Therefore, we could fetch the first data desc buf before the main loop,= =0A= > and do the copy first before the check of "are we done yet?". This=0A= > could save one check for small packets, that just have one data desc=0A= > buffer and need one mbuf to store it.=0A= >=0A= > Signed-off-by: Yuanhan Liu =0A= =0A= Acked-by: Huawei Xie =0A= =0A= =0A= =0A= =0A=