From: Tiwei Bie <tiwei.bie@intel.com>
To: Jens Freimann <jfreimann@redhat.com>
Cc: dev@dpdk.org, maxime.coquelin@redhat.com
Subject: Re: [dpdk-dev] [PATCH v4 0/2] net/virtio-user: add packed vq support
Date: Fri, 11 Jan 2019 21:56:17 +0800 [thread overview]
Message-ID: <20190111135617.GB2026@dpdk-tbie.sh.intel.com> (raw)
In-Reply-To: <20190111093929.10162-1-jfreimann@redhat.com>
On Fri, Jan 11, 2019 at 10:39:27AM +0100, Jens Freimann wrote:
> Patch 1 fixes a bug in virtio_pq_send_command(). When we wait for
> a descriptor to be marked as used we need to consider that the ring
> might have wrapped and use the previous wrap counter.
>
> Patch 2 reverts the patch to error out when cq is used with packed vq and
> add support for packed virtqueues in control virtqueue code.
>
> v3->v4:
> * it's enough to add to add packed vq feature bit to
> unsupported_features if packed_vq=0, no need to explicitly add
> it to device_features (Tiwei)
Sorry for not making myself clear previously. Just to make
it clear to avoid more confusion: we shouldn't add it to
device_features by ourselves because vhost backend may not
support it. Otherwise, it's possible that the upper layer
in virtio driver will see virtio-user's .get_features()
report this feature while vhost backend doesn't support it.
Thanks for the new version.
>
> v2->v3:
> * squash revert patch into patch 2
> * add new patch 1 to fix a bug in driver code
> * fix wrap handling code in virtio_user_handle_cq_packed
> * in v2 I was using wrap counters and indexes from shared virtqueue,
> fixed this and added wrap counters and used index to virtio_user code
> * tested wrap around of ring
>
> v1->v2:
> * split into two patches
> * handle ring wrap correctly
> * add to unsupported_features when packed_vq is 0
>
> Jens Freimann (2):
> net/virtio: check head desc with correct wrap counter
> net/virtio-user: ctrl vq support for packed
>
> drivers/net/virtio/virtio_ethdev.c | 11 +-
> .../net/virtio/virtio_user/virtio_user_dev.c | 102 ++++++++++++++++--
> .../net/virtio/virtio_user/virtio_user_dev.h | 15 ++-
> drivers/net/virtio/virtio_user_ethdev.c | 56 +++++++++-
> drivers/net/virtio/virtqueue.h | 10 +-
> 5 files changed, 171 insertions(+), 23 deletions(-)
>
> --
> 2.17.2
>
prev parent reply other threads:[~2019-01-11 13:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-11 9:39 Jens Freimann
2019-01-11 9:39 ` [dpdk-dev] [PATCH v4 1/2] net/virtio: check head desc with correct wrap counter Jens Freimann
2019-01-11 9:39 ` [dpdk-dev] [PATCH v4 2/2] net/virtio-user: ctrl vq support for packed Jens Freimann
2019-01-11 10:05 ` [dpdk-dev] [PATCH v4 0/2] net/virtio-user: add packed vq support Maxime Coquelin
2019-01-11 13:56 ` Tiwei Bie [this message]
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=20190111135617.GB2026@dpdk-tbie.sh.intel.com \
--to=tiwei.bie@intel.com \
--cc=dev@dpdk.org \
--cc=jfreimann@redhat.com \
--cc=maxime.coquelin@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).