]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/vhost_user.h
ethdev: use device name from device structure
[dpdk.git] / lib / librte_vhost / vhost_user.h
index 838dec88406c2b94aa90de2ad16060c3a98b112b..35ebd71903cdd0f6dbbe1d16b3c80a3490249c59 100644 (file)
@@ -37,7 +37,7 @@
 #include <stdint.h>
 #include <linux/vhost.h>
 
-#include "rte_virtio_net.h"
+#include "rte_vhost.h"
 
 /* refer to hw/virtio/vhost-user.c */
 
 #define VHOST_USER_PROTOCOL_F_REPLY_ACK        3
 #define VHOST_USER_PROTOCOL_F_NET_MTU 4
 
+/*
+ * disable REPLY_ACK feature to workaround the buggy QEMU implementation.
+ * Proved buggy QEMU includes v2.7 - v2.9.
+ */
 #define VHOST_USER_PROTOCOL_FEATURES   ((1ULL << VHOST_USER_PROTOCOL_F_MQ) | \
                                         (1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD) |\
                                         (1ULL << VHOST_USER_PROTOCOL_F_RARP) | \
-                                        (1ULL << VHOST_USER_PROTOCOL_F_REPLY_ACK) | \
+                                        (0ULL << VHOST_USER_PROTOCOL_F_REPLY_ACK) | \
                                         (1ULL << VHOST_USER_PROTOCOL_F_NET_MTU))
 
 typedef enum VhostUserRequest {