diff options
| author | Maxime Coquelin | 2017-12-21 22:21:21 +0100 |
|---|---|---|
| committer | Michael S. Tsirkin | 2018-01-18 20:52:38 +0100 |
| commit | 0d85e7d99a099b84181ee8c00b80ee6148866f9b (patch) | |
| tree | c64efef4c3ec53c493f6afd8c85b30c8ed450f39 /tests | |
| parent | hw/acpi-build: Make next_base easy to follow (diff) | |
| download | qemu-0d85e7d99a099b84181ee8c00b80ee6148866f9b.tar.gz qemu-0d85e7d99a099b84181ee8c00b80ee6148866f9b.tar.xz qemu-0d85e7d99a099b84181ee8c00b80ee6148866f9b.zip | |
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>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/vhost-user-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/vhost-user-test.c b/tests/vhost-user-test.c index e2c89ed376..43c6528644 100644 --- a/tests/vhost-user-test.c +++ b/tests/vhost-user-test.c @@ -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); |
