Skip to content

vhost: fix VIRTIO_NET_F_MQ vhost_scsi breakage

Stefan Hajnoczi dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vhost: add flag for built-in virtio_net.c driverlib/librte_vhost/socket.c lib/librte_vhost/vhost.c lib/librte_vhost/vhost.h +1 more+48 -11 reply
2/2vhost: only drop vqs with built-in virtio_net.c driverlib/librte_vhost/vhost_user.c+2 -12 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchMaxime CoquelinYuanhan Liu
SeriesR-b A-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] vhost: fix VIRTIO_NET_F_MQ vhost_scsi breakage

These patches fix a recent regression in librte_vhost that breaks the vhost_scsi example application. vhost_user.c assumes all devices are vhost net backends when handling the VIRTIO_NET_F_MQ feature bit. The code is triggered by vhost scsi devices and causes virtqueues to be removed. See Patch 2 for details.

Patch 1 puts the infrastructure in place to distinguish between the built-in virtio_net.c driver and generic vhost device backend usage.

Patch 2 fixes the regression by handling VIRTIO_NET_F_MQ only when the built-in virtio_net.c driver is in use.

Stefan Hajnoczi (2):
vhost: add flag for built-in virtio_net.c driver
vhost: only drop vqs with built-in virtio_net.c driver

 lib/librte_vhost/vhost.h      |  3 +++
 lib/librte_vhost/socket.c     | 15 +++++++++++++++
 lib/librte_vhost/vhost.c      | 17 ++++++++++++++++-
 lib/librte_vhost/vhost_user.c |  3 ++-
 lib/librte_vhost/virtio_net.c | 14 ++++++++++++++
 5 files changed, 50 insertions(+), 2 deletions(-)
Signature · 1 line
2.14.3