X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Fvhost%2Fvhost_user.h;h=be53669f3bf552ca04013cfc54d3f0833c7358c3;hb=6e858b4d9244cf53505589673755ab18ac2a4a83;hp=c8e299e30c82c09eee0e4194ed7a968050fa054c;hpb=c85c35b1d447c9e5f1acaabd89c36b416cc3ad37;p=dpdk.git diff --git a/lib/vhost/vhost_user.h b/lib/vhost/vhost_user.h index c8e299e30c..be53669f3b 100644 --- a/lib/vhost/vhost_user.h +++ b/lib/vhost/vhost_user.h @@ -149,9 +149,14 @@ typedef struct VhostUserMsg { 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; -} __rte_packed VhostUserMsg; + VhostUserMsg msg; +}; #define VHOST_USER_HDR_SIZE offsetof(VhostUserMsg, payload.u64)