[dpdk-dev] [PATCH] vhost: fix ANY_LAYOUT definition for old kernels
Maxime Coquelin
maxime.coquelin at redhat.com
Wed Jan 31 09:07:49 CET 2018
On 01/31/2018 03:20 PM, Zhihong Wang wrote:
> This patch fixes compile failure with old kernels which have no
> VIRTIO_F_ANY_LAYOUT defined.
>
> Signed-off-by: Zhihong Wang <zhihong.wang at intel.com>
> ---
> lib/librte_vhost/vhost.h | 4 ++++
> 1 file changed, 4 insertions(+)
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
> diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h
> index ba80584..646aad3 100644
> --- a/lib/librte_vhost/vhost.h
> +++ b/lib/librte_vhost/vhost.h
> @@ -130,6 +130,10 @@ struct vhost_virtqueue {
> #define VIRTIO_NET_F_MTU 3
> #endif
>
> +#ifndef VIRTIO_F_ANY_LAYOUT
> + #define VIRTIO_F_ANY_LAYOUT 27
> +#endif
> +
> /* Declare IOMMU related bits for older kernels */
> #ifndef VIRTIO_F_IOMMU_PLATFORM
>
>
More information about the dev
mailing list