From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id CFFEBA6A for ; Wed, 23 Dec 2015 12:39:15 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 23 Dec 2015 03:39:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,468,1444719600"; d="scan'208";a="713439559" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga003.jf.intel.com with ESMTP; 23 Dec 2015 03:39:14 -0800 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 23 Dec 2015 03:39:14 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 23 Dec 2015 03:39:14 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.190]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.28]) with mapi id 14.03.0248.002; Wed, 23 Dec 2015 19:39:06 +0800 From: "Xie, Huawei" To: linhaifeng , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v3 2/2] vhost: call rte_pktmbuf_alloc_bulk in vhost dequeue Thread-Index: AdE9docZ6Y1YiNKYSMyejiRc2Qw31g== Date: Wed, 23 Dec 2015 11:39:05 +0000 Message-ID: References: <1450055682-51953-1-git-send-email-huawei.xie@intel.com> <1450801074-29361-1-git-send-email-huawei.xie@intel.com> <1450801074-29361-3-git-send-email-huawei.xie@intel.com> <567A8409.3020404@huawei.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 v3 2/2] vhost: call rte_pktmbuf_alloc_bulk in vhost dequeue 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: Wed, 23 Dec 2015 11:39:16 -0000 On 12/23/2015 7:25 PM, linhaifeng wrote:=0A= >=0A= >> =0A= >> + if (unlikely(alloc_err)) {=0A= >> + uint16_t i =3D entry_success;=0A= >> +=0A= >> + m->nb_segs =3D seg_num;=0A= >> + for (; i < free_entries; i++)=0A= >> + rte_pktmbuf_free(pkts[entry_success]); -> rte_pktmbuf_free(pkts[i]);= =0A= >> + }=0A= >> +=0A= >> rte_compiler_barrier();=0A= >> vq->used->idx +=3D entry_success;=0A= >> /* Kick guest if required. */=0A= Very sorry for silly typo. Thanks!=0A= >>=0A= >=0A= >=0A= =0A=