]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_vhost/vhost_user.h
vhost: avoid enum fields in VhostUserMsg
[dpdk.git] / lib / librte_vhost / vhost_user.h
index d4bd604b9d6b83b1b30994b253a3b6a46ce0838f..0fafbe6e096842898260ca818f2f43993e02057f 100644 (file)
@@ -81,8 +81,8 @@ typedef struct VhostUserLog {
 
 typedef struct VhostUserMsg {
        union {
-               VhostUserRequest master;
-               VhostUserSlaveRequest slave;
+               uint32_t master; /* a VhostUserRequest value */
+               uint32_t slave;  /* a VhostUserSlaveRequest value*/
        } request;
 
 #define VHOST_USER_VERSION_MASK     0x3