virtio_net: copy VIRTIO_NET_S_ANNOUNCE if device model has it
authorEugenio Pérez <eperezma@redhat.com>
Wed, 21 Dec 2022 11:50:13 +0000 (12:50 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 8 Jan 2023 06:54:21 +0000 (01:54 -0500)
commit4f93aafc8f9d731c6588f5dc5594c6a1dd1fbe66
tree1fc24b61f7f4466e0bab41295aade50e04e374bb
parentebc141a62508dc91901373c1a19fe7e2cf560dfb
virtio_net: copy VIRTIO_NET_S_ANNOUNCE if device model has it

Status part of the emulated feature. It will follow device model, so we
must copy it as long as NIC device model has it set.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <20221221115015.1400889-3-eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
hw/net/virtio-net.c