]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/vhost_user.h
examples/vhost_scsi: fix product id string termination
[dpdk.git] / lib / librte_vhost / vhost_user.h
index 46c6ff9567e2bc0a704c27ccf8ce29d48fe6c8be..76d9fe2fc5fdc2981d3560267820f3e2fabcec18 100644 (file)
@@ -109,7 +109,10 @@ typedef struct VhostUserLog {
 } VhostUserLog;
 
 typedef struct VhostUserMsg {
 } VhostUserLog;
 
 typedef struct VhostUserMsg {
-       VhostUserRequest request;
+       union {
+               VhostUserRequest master;
+               VhostUserSlaveRequest slave;
+       } request;
 
 #define VHOST_USER_VERSION_MASK     0x3
 #define VHOST_USER_REPLY_MASK       (0x1 << 2)
 
 #define VHOST_USER_VERSION_MASK     0x3
 #define VHOST_USER_REPLY_MASK       (0x1 << 2)