vdpa_sim_net: Offer VIRTIO_NET_F_STATUS
authorEugenio Pérez <eperezma@redhat.com>
Thu, 17 Nov 2022 15:55:02 +0000 (16:55 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 21 Feb 2023 00:26:55 +0000 (19:26 -0500)
commitd8b3832a788dbe9d2da4a48f8cd1e022c3175514
tree5f08540245d4198b5b99666fda334164e368d399
parent46fc0917bbabb1d5efdf8b903728b9f7fc484ce8
vdpa_sim_net: Offer VIRTIO_NET_F_STATUS

VIRTIO_NET_S_LINK_UP is already returned in config reads since vdpasim
creation, but the feature bit was not offered to the driver.

Tested modifying VIRTIO_NET_S_LINK_UP and different values of "status"
in qemu virtio-net options, using vhost_vdpa.

Not considering as a fix, because there should be no driver trusting in
this config read before the feature flag.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <20221117155502.1394700-1-eperezma@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
drivers/vdpa/vdpa_sim/vdpa_sim_net.c