From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [58.251.152.64]) by dpdk.org (Postfix) with ESMTP id DE96E594B for ; Wed, 23 Dec 2015 12:24:54 +0100 (CET) Received: from 172.24.1.48 (EHLO szxeml434-hub.china.huawei.com) ([172.24.1.48]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DBM10058; Wed, 23 Dec 2015 19:24:51 +0800 (CST) Received: from [127.0.0.1] (10.177.20.223) by szxeml434-hub.china.huawei.com (10.82.67.225) with Microsoft SMTP Server id 14.3.235.1; Wed, 23 Dec 2015 19:24:50 +0800 Message-ID: <567A8409.3020404@huawei.com> Date: Wed, 23 Dec 2015 19:22:49 +0800 From: linhaifeng User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: 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> In-Reply-To: <1450801074-29361-3-git-send-email-huawei.xie@intel.com> Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.20.223] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090204.567A8484.0020, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 8f8f68c0cc0b51bd5dc269d37cd87fb1 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:24:56 -0000 > > + if (unlikely(alloc_err)) { > + uint16_t i = entry_success; > + > + m->nb_segs = seg_num; > + for (; i < free_entries; i++) > + rte_pktmbuf_free(pkts[entry_success]); -> rte_pktmbuf_free(pkts[i]); > + } > + > rte_compiler_barrier(); > vq->used->idx += entry_success; > /* Kick guest if required. */ >