From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id B914812A8 for ; Mon, 1 Jun 2015 06:49:18 +0200 (CEST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 31 May 2015 21:49:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,530,1427785200"; d="scan'208";a="579777905" Received: from pgsmsx107.gar.corp.intel.com ([10.221.44.105]) by orsmga003.jf.intel.com with ESMTP; 31 May 2015 21:49:16 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by PGSMSX107.gar.corp.intel.com (10.221.44.105) with Microsoft SMTP Server (TLS) id 14.3.224.2; Mon, 1 Jun 2015 12:49:16 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.109]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.50]) with mapi id 14.03.0224.002; Mon, 1 Jun 2015 12:49:14 +0800 From: "Ouyang, Changchun" To: Wei li , "dev@dpdk.org" Thread-Topic: [PATCH] lib_vhost:reset secure_len when rte_atomic16_cmpset failed Thread-Index: AQHQnBcqbhVfMpgRH0GQjPAmOx1omJ2XFCPA Date: Mon, 1 Jun 2015 04:49:13 +0000 Message-ID: References: <4ebbd24d-333e-4cc8-8c16-a4c6cc9dd85c@liw0310-PC.local> In-Reply-To: <4ebbd24d-333e-4cc8-8c16-a4c6cc9dd85c@liw0310-PC.local> Accept-Language: zh-CN, 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] 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 04:49:19 -0000 > -----Original Message----- > From: Wei li [mailto:liw@dtdream.com] > Sent: Monday, June 1, 2015 11:00 AM > To: dev@dpdk.org > Cc: Ouyang, Changchun > Subject: [PATCH] lib_vhost:reset secure_len when rte_atomic16_cmpset > failed >=20 The one line change is ok, but need more description. > --- > lib/librte_vhost/vhost_rxtx.c | 1 + > 1 file changed, 1 insertion(+) >=20 > 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 =3D vq->last_used_idx_res; > res_cur_idx =3D res_base_idx; > + secure_len =3D 0; >=20 > do { > avail_idx =3D *((volatile uint16_t *)&vq->avail- > >idx); > -- > 1.9.5.msysgit.1 >=20