diff options
author | Jason Wang | 2015-05-29 08:15:31 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2015-05-31 16:50:10 +0200 |
commit | 87b3bd1c858e6cacac4d403da9109ec3a04fe9d0 (patch) | |
tree | db821ce6da2d155218db126912cc8cff3c72234f /hw/net/virtio-net.c | |
parent | virtio-s390: introduce virtio_s390_device_plugged() (diff) | |
download | qemu-87b3bd1c858e6cacac4d403da9109ec3a04fe9d0.tar.gz qemu-87b3bd1c858e6cacac4d403da9109ec3a04fe9d0.tar.xz qemu-87b3bd1c858e6cacac4d403da9109ec3a04fe9d0.zip |
virtio: rename VIRTIO_PCI_QUEUE_MAX to VIRTIO_QUEUE_MAX
VIRTIO_PCI_QUEUE_MAX is not only used for pci, so rename it be generic.
Cc: Amit Shah <amit.shah@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/net/virtio-net.c')
-rw-r--r-- | hw/net/virtio-net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 3edb1c4144..6dca726021 100644 --- a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -1555,10 +1555,10 @@ static void virtio_net_device_realize(DeviceState *dev, Error **errp) virtio_init(vdev, "virtio-net", VIRTIO_ID_NET, n->config_size); n->max_queues = MAX(n->nic_conf.peers.queues, 1); - if (n->max_queues * 2 + 1 > VIRTIO_PCI_QUEUE_MAX) { + if (n->max_queues * 2 + 1 > VIRTIO_QUEUE_MAX) { error_setg(errp, "Invalid number of queues (= %" PRIu32 "), " "must be a positive integer less than %d.", - n->max_queues, (VIRTIO_PCI_QUEUE_MAX - 1) / 2); + n->max_queues, (VIRTIO_QUEUE_MAX - 1) / 2); virtio_cleanup(vdev); return; } |