]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/vhost_user.c
vhost: fix payload size of reply
[dpdk.git] / lib / librte_vhost / vhost_user.c
index a7729990dfd8c1e869824bed7643377307508ae7..1ef02c94310a8e396edff35375ed6f17a1b66956 100644 (file)
@@ -1286,7 +1286,11 @@ vhost_user_set_log_base(struct virtio_net **pdev, struct VhostUserMsg *msg)
        dev->log_base = dev->log_addr + off;
        dev->log_size = size;
 
-       msg->size = sizeof(msg->payload.u64);
+       /*
+        * The spec is not clear about it (yet), but QEMU doesn't expect
+        * any payload in the reply.
+        */
+       msg->size = 0;
 
        return VH_RESULT_REPLY;
 }