mirror of https://github.com/proxmox/mirror_qemu
vhost-user-test: fix features mask
VIRTIO_NET_F_MAC is a bit position, not a bit mask. Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>master
parent
6cf6fe394a
commit
0d85e7d99a
|
@ -177,7 +177,7 @@ static void init_virtio_dev(TestServer *s)
|
|||
qvirtio_set_driver(&dev->vdev);
|
||||
|
||||
features = qvirtio_get_features(&dev->vdev);
|
||||
features = features & VIRTIO_NET_F_MAC;
|
||||
features = features & (1u << VIRTIO_NET_F_MAC);
|
||||
qvirtio_set_features(&dev->vdev, features);
|
||||
|
||||
qvirtio_set_driver_ok(&dev->vdev);
|
||||
|
|
Loading…
Reference in New Issue