From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH] vhost: fix ANY_LAYOUT definition for old kernels Date: Wed, 31 Jan 2018 09:07:49 +0100 Message-ID: <38636143-a2bd-188e-ccd8-c60ad08c30e3@redhat.com> References: <1517408457-17271-1-git-send-email-zhihong.wang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, jianfeng.tan@intel.com To: Zhihong Wang , yliu@fridaylinux.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id A91311B6F6 for ; Wed, 31 Jan 2018 09:07:54 +0100 (CET) In-Reply-To: <1517408457-17271-1-git-send-email-zhihong.wang@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 > --- > lib/librte_vhost/vhost.h | 4 ++++ > 1 file changed, 4 insertions(+) Reviewed-by: Maxime Coquelin > 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 > >