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
mem: cleanup multiprocess resources
[dpdk.git]
/
lib
/
vhost
/
vhost_user.h
diff --git
a/lib/vhost/vhost_user.h
b/lib/vhost/vhost_user.h
index
c8e299e
..
be53669
100644
(file)
--- a/
lib/vhost/vhost_user.h
+++ b/
lib/vhost/vhost_user.h
@@
-149,9
+149,14
@@
typedef struct VhostUserMsg {
VhostUserVringArea area;
VhostUserInflight inflight;
} payload;
VhostUserVringArea area;
VhostUserInflight inflight;
} payload;
+ /* Nothing should be added after the payload */
+} __rte_packed VhostUserMsg;
+
+struct vhu_msg_context {
int fds[VHOST_MEMORY_MAX_NREGIONS];
int fd_num;
int fds[VHOST_MEMORY_MAX_NREGIONS];
int fd_num;
-} __rte_packed VhostUserMsg;
+ VhostUserMsg msg;
+};
#define VHOST_USER_HDR_SIZE offsetof(VhostUserMsg, payload.u64)
#define VHOST_USER_HDR_SIZE offsetof(VhostUserMsg, payload.u64)