From: Yuanhan Liu <yuanhan.liu@linux.intel.com>
To: Thomas Monjalon <thomas.monjalon@6wind.com>,
"Xie, Huawei" <huawei.xie@intel.com>
Cc: dev@dpdk.org, Rich Lane <rich.lane@bigswitch.com>
Subject: Re: [PATCH] virtio: use zeroed memory for simple TX header
Date: Tue, 5 Apr 2016 04:05:38 +0800 [thread overview]
Message-ID: <20160404200538.GK3080@yliu-dev.sh.intel.com> (raw)
In-Reply-To: <2344074.HmCM8hzj4i@xps13>
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.
next prev parent reply other threads:[~2016-04-04 20:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-31 20:01 [PATCH] virtio: use zeroed memory for simple TX header Rich Lane
2016-04-04 13:13 ` Thomas Monjalon
2016-04-04 20:05 ` Yuanhan Liu [this message]
2016-04-04 22:57 ` Rich Lane
2016-04-05 0:11 ` Yuanhan Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160404200538.GK3080@yliu-dev.sh.intel.com \
--to=yuanhan.liu@linux.intel.com \
--cc=dev@dpdk.org \
--cc=huawei.xie@intel.com \
--cc=rich.lane@bigswitch.com \
--cc=thomas.monjalon@6wind.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.