git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vhost: set/reset device flags internally
[dpdk.git]
/
lib
/
librte_vhost
/
vhost_user
/
vhost-net-user.h
diff --git
a/lib/librte_vhost/vhost_user/vhost-net-user.h
b/lib/librte_vhost/vhost_user/vhost-net-user.h
index
1b6be6c
..
e3bb413
100644
(file)
--- a/
lib/librte_vhost/vhost_user/vhost-net-user.h
+++ b/
lib/librte_vhost/vhost_user/vhost-net-user.h
@@
-41,7
+41,7
@@
#include "fd_man.h"
struct vhost_server {
#include "fd_man.h"
struct vhost_server {
- c
onst c
har *path; /**< The path the uds is bind to. */
+ char *path; /**< The path the uds is bind to. */
int listenfd; /**< The listener sockfd. */
};
int listenfd; /**< The listener sockfd. */
};
@@
-63,6
+63,11
@@
typedef enum VhostUserRequest {
VHOST_USER_SET_VRING_KICK = 12,
VHOST_USER_SET_VRING_CALL = 13,
VHOST_USER_SET_VRING_ERR = 14,
VHOST_USER_SET_VRING_KICK = 12,
VHOST_USER_SET_VRING_CALL = 13,
VHOST_USER_SET_VRING_ERR = 14,
+ VHOST_USER_GET_PROTOCOL_FEATURES = 15,
+ 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;
VHOST_USER_MAX
} VhostUserRequest;
@@
-79,6
+84,11
@@
typedef struct VhostUserMemory {
VhostUserMemoryRegion regions[VHOST_MEMORY_MAX_NREGIONS];
} 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;
typedef struct VhostUserMsg {
VhostUserRequest request;
@@
-93,6
+103,7
@@
typedef struct VhostUserMsg {
struct vhost_vring_state state;
struct vhost_vring_addr addr;
VhostUserMemory memory;
struct vhost_vring_state state;
struct vhost_vring_addr addr;
VhostUserMemory memory;
+ VhostUserLog log;
} payload;
int fds[VHOST_MEMORY_MAX_NREGIONS];
} __attribute((packed)) VhostUserMsg;
} payload;
int fds[VHOST_MEMORY_MAX_NREGIONS];
} __attribute((packed)) VhostUserMsg;