DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH v3 0/2] net/virtio-user: add packed vq support
@ 2019-01-10 21:47 Jens Freimann
  2019-01-10 21:47 ` [dpdk-dev] [Patch v3 1/2] net/virtio: check head desc with correct wrap counter Jens Freimann
  2019-01-10 21:47 ` [dpdk-dev] [Patch v3 2/2] net/virtio-user: ctrl vq support for packed Jens Freimann
  0 siblings, 2 replies; 5+ messages in thread
From: Jens Freimann @ 2019-01-10 21:47 UTC (permalink / raw)
  To: dev; +Cc: tiwei.bie, maxime.coquelin

Revert patch to error out when cq is used with packed vq and
in second patch add support for packed virtqueues in control
virtqueue code.

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.

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  | 104 ++++++++++++++++--
 .../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, 173 insertions(+), 23 deletions(-)

-- 
2.17.2

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-01-11  9:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-10 21:47 [dpdk-dev] [PATCH v3 0/2] net/virtio-user: add packed vq support Jens Freimann
2019-01-10 21:47 ` [dpdk-dev] [Patch v3 1/2] net/virtio: check head desc with correct wrap counter Jens Freimann
2019-01-11  9:03   ` Maxime Coquelin
2019-01-10 21:47 ` [dpdk-dev] [Patch v3 2/2] net/virtio-user: ctrl vq support for packed Jens Freimann
2019-01-11  9:12   ` Maxime Coquelin

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).