virtio-net: Expose MAX_VLAN
commite19751a32f140a232fafb037e703abb961a94abb
authorHawkins Jiawei <yin31149@gmail.com>
Sun, 23 Jul 2023 12:09:12 +0000 (23 20:09 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 4 Oct 2023 08:54:09 +0000 (4 04:54 -0400)
treeac7bfa3d3edb76e6c152a514cf9dacad9ede2b8f
parent06b636a1e2ad12ab130edcbb0ccf995118440706
virtio-net: Expose MAX_VLAN

vhost-vdpa shadowed CVQ needs to know the maximum number of
vlans supported by the virtio-net device, so QEMU can restore
the VLAN state in a migration.

Co-developed-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Hawkins Jiawei <yin31149@gmail.com>
Message-Id: <ca03403319c6405ea7c400836a572255bbc9ceba.1690106284.git.yin31149@gmail.com>
Tested-by: Lei Yang <leiyang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/virtio-net.c
include/hw/virtio/virtio-net.h