From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id D1B1F12A8 for ; Mon, 4 Apr 2016 22:04:32 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga101.jf.intel.com with ESMTP; 04 Apr 2016 13:04:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,441,1455004800"; d="scan'208";a="78908630" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.191]) by fmsmga004.fm.intel.com with ESMTP; 04 Apr 2016 13:04:15 -0700 Date: Tue, 5 Apr 2016 04:05:38 +0800 From: Yuanhan Liu To: Thomas Monjalon , "Xie, Huawei" Cc: dev@dpdk.org, Rich Lane Message-ID: <20160404200538.GK3080@yliu-dev.sh.intel.com> References: <1459454476-6029-1-git-send-email-rlane@bigswitch.com> <2344074.HmCM8hzj4i@xps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2344074.HmCM8hzj4i@xps13> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH] virtio: use zeroed memory for simple TX header 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, 04 Apr 2016 20:04:33 -0000 On Mon, Apr 04, 2016 at 03:13:37PM +0200, Thomas Monjalon wrote: > Huawei, Yuanhan, any comment? > > 2016-03-31 13:01, Rich Lane: > > vq->vq_ring.desc[i + mid_idx].next = i; > > vq->vq_ring.desc[i + mid_idx].addr = > > - vq->virtio_net_hdr_mem + > > - i * vq->hw->vtnet_hdr_size; > > + vq->virtio_net_hdr_mem; I could be wrong, but this looks like a special case when i == 0, which is by no way that zeroed memory is guaranteed? Huawei, do you have time to check this patch? Thanks.