vhost: set/reset device flags internally
[dpdk.git] / lib / librte_vhost / vhost_user / vhost-net-user.h
index 38637cc..e3bb413 100644 (file)
@@ -67,6 +67,7 @@ typedef enum VhostUserRequest {
        VHOST_USER_SET_PROTOCOL_FEATURES = 16,
        VHOST_USER_GET_QUEUE_NUM = 17,
        VHOST_USER_SET_VRING_ENABLE = 18,
+       VHOST_USER_SEND_RARP = 19,
        VHOST_USER_MAX
 } VhostUserRequest;
 
@@ -83,6 +84,11 @@ typedef struct VhostUserMemory {
        VhostUserMemoryRegion regions[VHOST_MEMORY_MAX_NREGIONS];
 } VhostUserMemory;
 
+typedef struct VhostUserLog {
+       uint64_t mmap_size;
+       uint64_t mmap_offset;
+} VhostUserLog;
+
 typedef struct VhostUserMsg {
        VhostUserRequest request;
 
@@ -97,6 +103,7 @@ typedef struct VhostUserMsg {
                struct vhost_vring_state state;
                struct vhost_vring_addr addr;
                VhostUserMemory memory;
+               VhostUserLog    log;
        } payload;
        int fds[VHOST_MEMORY_MAX_NREGIONS];
 } __attribute((packed)) VhostUserMsg;