]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hw/net/virtio-net.c
virtio-net: fix offload ctrl endian
[mirror_qemu.git] / hw / net / virtio-net.c
index 98bd683f31b51892877a3118a5df54dd99d67118..7695f75b1f7cf19f7696071b45dbceac96bc8b6e 100644 (file)
@@ -723,6 +723,8 @@ static int virtio_net_handle_offloads(VirtIONet *n, uint8_t cmd,
     if (cmd == VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET) {
         uint64_t supported_offloads;
 
+        offloads = virtio_ldq_p(vdev, &offloads);
+
         if (!n->has_vnet_hdr) {
             return VIRTIO_NET_ERR;
         }