diff options
author | Xuan Zhuo <xuanzhuo@linux.alibaba.com> | 2022-08-01 09:38:21 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-08-11 11:06:38 +0300 |
commit | da802961832f9852886304290135457519815497 (patch) | |
tree | 15d1e1ab7b0387b95bfc5931a98f3ff12e77f9fc /arch/um/drivers | |
parent | 0b6fd46ec5f5720b76cbb01300ed9f7b7c6365c4 (diff) | |
download | linux-da802961832f9852886304290135457519815497.tar.xz |
virtio: record the maximum queue num supported by the device.
virtio-net can display the maximum (supported by hardware) ring size in
ethtool -g eth0.
When the subsequent patch implements vring reset, it can judge whether
the ring size passed by the driver is legal based on this.
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20220801063902.129329-2-xuanzhuo@linux.alibaba.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'arch/um/drivers')
-rw-r--r-- | arch/um/drivers/virtio_uml.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/um/drivers/virtio_uml.c b/arch/um/drivers/virtio_uml.c index 82ff3785bf69..e719af8bdf56 100644 --- a/arch/um/drivers/virtio_uml.c +++ b/arch/um/drivers/virtio_uml.c @@ -958,6 +958,7 @@ static struct virtqueue *vu_setup_vq(struct virtio_device *vdev, goto error_create; } vq->priv = info; + vq->num_max = num; num = virtqueue_get_vring_size(vq); if (vu_dev->protocol_features & |