diff options
author | Jason Wang <jasowang@redhat.com> | 2021-10-20 12:55:59 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-10-20 04:44:05 -0400 |
commit | 22288fe5a3f2dc4cb5c8826646d466019ad67682 (patch) | |
tree | 3e26e47ae9b2ff709a19f19689c25981ed84c0d4 /include | |
parent | 049eb15b5fc9c54ae76254a196b695000127da7a (diff) | |
download | qemu-22288fe5a3f2dc4cb5c8826646d466019ad67682.zip qemu-22288fe5a3f2dc4cb5c8826646d466019ad67682.tar.gz qemu-22288fe5a3f2dc4cb5c8826646d466019ad67682.tar.bz2 |
virtio-net: vhost control virtqueue support
This patch implements the control virtqueue support for vhost. This
requires virtio-net to figure out the datapath queue pairs and control
virtqueue via is_datapath and pass the number of those two types
of virtqueues to vhost_net_start()/vhost_net_stop().
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20211020045600.16082-10-jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/virtio/virtio-net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-net.h b/include/hw/virtio/virtio-net.h index 2903b79..eb87032 100644 --- a/include/hw/virtio/virtio-net.h +++ b/include/hw/virtio/virtio-net.h @@ -196,6 +196,7 @@ struct VirtIONet { int multiqueue; uint16_t max_queue_pairs; uint16_t curr_queue_pairs; + uint16_t max_ncs; size_t config_size; char *netclient_name; char *netclient_type; |