From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp2203-239.mail.aliyun.com (smtp2203-239.mail.aliyun.com [121.197.203.239]) by dpdk.org (Postfix) with ESMTP id 82F0612A8 for ; Mon, 1 Jun 2015 05:00:22 +0200 (CEST) X-Alimail-AntiSpam: AC=CONTINUE; BC=0.486549|-1; FP=0|0|0|0|0|-1|-1|-1; HT=r41f05043; MF=liw@dtdream.com; PH=DS; RN=2; RT=2; SR=0; Received: from liw0310-PC.local(mailfrom:liw@dtdream.com ip:111.198.29.130) by smtp.aliyun-inc.com(10.194.100.23); Mon, 01 Jun 2015 11:00:10 +0800 Date: Mon, 1 Jun 2015 11:00:10 +0800 From: Wei li Sender: Wei li To: dev@dpdk.org Message-ID: <4ebbd24d-333e-4cc8-8c16-a4c6cc9dd85c@liw0310-PC.local> X-Mailer: TortoiseGit MIME-Version: 1.0 Content-Type: text/plain; Subject: [dpdk-dev] [PATCH] lib_vhost:reset secure_len when rte_atomic16_cmpset failed 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: Mon, 01 Jun 2015 03:00:23 -0000 --- lib/librte_vhost/vhost_rxtx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c index 4809d32..fb3e72a 100644 --- a/lib/librte_vhost/vhost_rxtx.c +++ b/lib/librte_vhost/vhost_rxtx.c @@ -431,6 +431,7 @@ virtio_dev_merge_rx(struct virtio_net *dev, uint16_t queue_id, */ res_base_idx = vq->last_used_idx_res; res_cur_idx = res_base_idx; + secure_len = 0; do { avail_idx = *((volatile uint16_t *)&vq->avail->idx); -- 1.9.5.msysgit.1