mbox series

[RFC,0/1] Return -EINVAL if device's ack is VIRTIO_NET_ERR

Message ID cover.1686746406.git.yin31149@gmail.com (mailing list archive)
Headers show
Series Return -EINVAL if device's ack is VIRTIO_NET_ERR | expand

Message

Hawkins Jiawei June 14, 2023, 1:01 p.m. UTC
This patch fixes the problem that vhost_net_start_one() doesn't cancel
the device startup and returns 0 even if the device's ack is VIRTIO_NET_ERR
in net->nc->info->load().

Note that this problem also exists in
patch "vdpa: Add vhost_vdpa_net_load_offloads()" at [1].
Because this patch has not been merged yet, so I will submit the v2 patch
to fix the problem in that patch once the pending patch
has been successfully merged.

[1]. https://lists.nongnu.org/archive/html/qemu-devel/2023-06/msg00504.html

Hawkins Jiawei (1):
  vdpa: Return -EINVAL if device's ack is VIRTIO_NET_ERR

 net/vhost-vdpa.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)