diff options
| author | Eugenio Pérez | 2022-07-20 08:59:27 +0200 |
|---|---|---|
| committer | Jason Wang | 2022-07-20 10:58:08 +0200 |
| commit | 6758c01f054c2a842d41d927d628b09f649d3254 (patch) | |
| tree | f1d828605c106df92b9d8612012e0642ee9d3b56 /include | |
| parent | vhost: move descriptor translation to vhost_svq_vring_write_descs (diff) | |
| download | qemu-6758c01f054c2a842d41d927d628b09f649d3254.tar.gz qemu-6758c01f054c2a842d41d927d628b09f649d3254.tar.xz qemu-6758c01f054c2a842d41d927d628b09f649d3254.zip | |
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 'include')
| -rw-r--r-- | include/hw/virtio/virtio-net.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-net.h b/include/hw/virtio/virtio-net.h index eb87032627..cce1c554f7 100644 --- a/include/hw/virtio/virtio-net.h +++ b/include/hw/virtio/virtio-net.h @@ -35,6 +35,9 @@ OBJECT_DECLARE_SIMPLE_TYPE(VirtIONet, VIRTIO_NET) * and latency. */ #define TX_BURST 256 +/* Maximum VIRTIO_NET_CTRL_MAC_TABLE_SET unicast + multicast entries. */ +#define MAC_TABLE_ENTRIES 64 + typedef struct virtio_net_conf { uint32_t txtimer; |
