]> Git Repo - qemu.git/blobdiff - tests/libqos/virtio-net.c
Merge remote-tracking branch 'remotes/vivier/tags/q800-branch-pull-request' into...
[qemu.git] / tests / libqos / virtio-net.c
index 6567beb553031a889f81d012944817097ec9171a..710d440c3d482344e2ca9290ba6132e3cd6e6743 100644 (file)
@@ -44,11 +44,11 @@ static void virtio_net_setup(QVirtioNet *interface)
 
     features = qvirtio_get_features(vdev);
     features &= ~(QVIRTIO_F_BAD_FEATURE |
-                  (1u << VIRTIO_RING_F_INDIRECT_DESC) |
-                  (1u << VIRTIO_RING_F_EVENT_IDX));
+                  (1ull << VIRTIO_RING_F_INDIRECT_DESC) |
+                  (1ull << VIRTIO_RING_F_EVENT_IDX));
     qvirtio_set_features(vdev, features);
 
-    if (features & (1u << VIRTIO_NET_F_MQ)) {
+    if (features & (1ull << VIRTIO_NET_F_MQ)) {
         interface->n_queues = qvirtio_config_readw(vdev, 8) * 2;
     } else {
         interface->n_queues = 2;
This page took 0.024289 seconds and 4 git commands to generate.