s rely on them.
> + */
> +struct __rte_packed vhu_msg_context {
> + VhostUserMsg msg;
> int fds[VHOST_MEMORY_MAX_NREGIONS];
> int fd_num;
> - VhostUserMsg msg;
> };
>
> #define VHOST_USER_HDR_SIZE offsetof(VhostUserMsg, payload.u64)
> --
> 2.23.0
>
Sorry to have missed that test with virtio-crypto ; I'll create
another thread to talk about the VhostUserMsg extension.
Reviewed-by: Christophe Fontaine
Thanks,
Christophe
From: Christophe Fontaine
FDs at the end of the VhostUserMessage structure limits the size
of the payload. Move them to an other englobing structure, before
the header & payload of a VhostUserMessage.
Also removes a reference to fds in the VHUMsg structure defined in
drivers/net/vi
This patch removes the file descriptors from the struct VhostUserMessage
as it is not part of the spec.
These FDs are moved to a englobing context structure.
v2: rebased on top of dpdk-next-virtio
Christophe Fontaine (1):
vhost: move fds outside of VhostUserMessage
drivers/net/virtio
-off-by: Christophe Fontaine
---
drivers/net/virtio/virtio_user/vhost_user.c | 1 -
lib/vhost/vhost_crypto.c| 10 +-
lib/vhost/vhost_user.c | 529 ++--
lib/vhost/vhost_user.h | 7 +-
4 files changed, 288 insert
This patch removes the file descriptors from the struct VhostUserMessage
as it is not part of the spec.
These FDs are moved to a englobing context structure.
Christophe Fontaine (1):
vhost: Move fds outside of VhostUserMessage
drivers/net/virtio/virtio_user/vhost_user.c | 1 -
lib/vhost
5 matches
Mail list logo