From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) by dpdk.org (Postfix) with ESMTP id A4E432C66 for ; Mon, 4 Apr 2016 15:15:13 +0200 (CEST) Received: by mail-lb0-f175.google.com with SMTP id vo2so161221211lbb.1 for ; Mon, 04 Apr 2016 06:15:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=KdSEPQBsur50khylq86Wms4LaJVmpv1qEuBjjzLw1xE=; b=17SsXmmRjgG+msXBUfW3YSB02GhvWBghhBmBhe4zo3oLkmn5h4DC744mDLFWXc12R3 mG/CfA6F6Xm2/7HrGKz2jKwrMwe4HQ6Dtrz15Uns06pUzSKRv4nZX80PqXuKfqDvi/FB SuM9C7JZ+QcLDh7HP/Qqhel8ik2L1gq4uQSwUaPSy3h0BmtHZiqUPOKbpkxo6soMwk4A dcrjPB6bmZOH/eiJaOZanD2DeGnpspoG84JFkFj72nivrcibL/Vv6sl4uV5/3+ym+CN2 ucr8FLk+z8TOAA7fWq8K2v6VO/636Bd5ZUJjtL0P5iI9AoNqL0Su4D20t9zuT2tKrs1O mSvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding; bh=KdSEPQBsur50khylq86Wms4LaJVmpv1qEuBjjzLw1xE=; b=dVhj4Sr12eBcdr/JFGiH4KOJTJk8w/ldWei9Ya0N+pdxlB3F3WYzXfFXThSL/YyYw8 67pnVOhivJN2HONxnf7sEUnzKxGd+STpRurOrenvfx7UpM7Apnr2F9BbqTPZlImOv2nD FwVk1KlIHRstjwKZTENTnzLVNOmxotgt1a3/0UexaKoGhnKcpG2QlDjvSBWZfOsHOqxM LByNIZ89CsxXUlP/eGrykS7DR1WmHH3gPulpyD6NbsJEvGieYvXq+8ATKL6F51Lg0Ptv QmVnKardvQDHzCs0hs0TXB0nHJ+YOGcqSi8NdWotyvnFH4T5ok7NHjUI2bN1p1T6442V fz7A== X-Gm-Message-State: AD7BkJLGetXfEQognF0MRQZn+FIVrO5TyqDpdMDIoKLshi84GgJ+4hykDFfmZPy/zjdnTU/e X-Received: by 10.28.137.148 with SMTP id l142mr12327672wmd.40.1459775713308; Mon, 04 Apr 2016 06:15:13 -0700 (PDT) Received: from xps13.localnet (91.111.75.86.rev.sfr.net. [86.75.111.91]) by smtp.gmail.com with ESMTPSA id kj9sm29116461wjb.14.2016.04.04.06.15.12 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Apr 2016 06:15:12 -0700 (PDT) From: Thomas Monjalon To: Huawei Xie , Yuanhan Liu Cc: dev@dpdk.org, Rich Lane Date: Mon, 04 Apr 2016 15:13:37 +0200 Message-ID: <2344074.HmCM8hzj4i@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1459454476-6029-1-git-send-email-rlane@bigswitch.com> References: <1459454476-6029-1-git-send-email-rlane@bigswitch.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 13:15:13 -0000 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; > vq->vq_ring.desc[i + mid_idx].len = > vq->hw->vtnet_hdr_size;