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)
int vhost_user_iotlb_miss(struct virtio_net *dev, uint64_t iova, uint8_t perm);
/* socket.c */
-int read_fd_message(int sockfd, char *buf, int buflen, int *fds, int max_fds,
+int read_fd_message(char *ifname, int sockfd, char *buf, int buflen, int *fds, int max_fds,
int *fd_num);
-int send_fd_message(int sockfd, char *buf, int buflen, int *fds, int fd_num);
+int send_fd_message(char *ifname, int sockfd, char *buf, int buflen, int *fds, int fd_num);
#endif