aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorEugenio Pérez <eperezma@redhat.com>2022-07-20 08:59:27 +0200
committerJason Wang <jasowang@redhat.com>2022-07-20 16:58:08 +0800
commit6758c01f054c2a842d41d927d628b09f649d3254 (patch)
treef1d828605c106df92b9d8612012e0642ee9d3b56 /hw
parent009c2549bb9dc7f7061009eb87f2a53d4b364983 (diff)
downloadqemu-6758c01f054c2a842d41d927d628b09f649d3254.zip
qemu-6758c01f054c2a842d41d927d628b09f649d3254.tar.gz
qemu-6758c01f054c2a842d41d927d628b09f649d3254.tar.bz2
virtio-net: Expose MAC_TABLE_ENTRIES
vhost-vdpa control virtqueue needs to know the maximum entries supported by the virtio-net device, so we know if it is possible to apply the filter. Signed-off-by: Eugenio Pérez <eperezma@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/net/virtio-net.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c
index 7ad948e..f83e96e 100644
--- a/hw/net/virtio-net.c
+++ b/hw/net/virtio-net.c
@@ -49,7 +49,6 @@
#define VIRTIO_NET_VM_VERSION 11
-#define MAC_TABLE_ENTRIES 64
#define MAX_VLAN (1 << 12) /* Per 802.1Q definition */
/* previously fixed value */