ethdev: check more errors in xstats retrieval
[dpdk.git] / lib / librte_vhost / vhost_user.h
index 0b2aff1..76d9fe2 100644 (file)
@@ -80,6 +80,7 @@ typedef enum VhostUserRequest {
        VHOST_USER_SEND_RARP = 19,
        VHOST_USER_NET_SET_MTU = 20,
        VHOST_USER_SET_SLAVE_REQ_FD = 21,
+       VHOST_USER_IOTLB_MSG = 22,
        VHOST_USER_MAX
 } VhostUserRequest;
 
@@ -108,7 +109,10 @@ typedef struct VhostUserLog {
 } 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)