From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DD0D2AC91; Wed, 31 Jan 2018 08:07:53 +0000 (UTC) Received: from [10.36.112.31] (ovpn-112-31.ams2.redhat.com [10.36.112.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6FEEC605E1; Wed, 31 Jan 2018 08:07:52 +0000 (UTC) To: Zhihong Wang , yliu@fridaylinux.org Cc: dev@dpdk.org, jianfeng.tan@intel.com References: <1517408457-17271-1-git-send-email-zhihong.wang@intel.com> From: Maxime Coquelin Message-ID: <38636143-a2bd-188e-ccd8-c60ad08c30e3@redhat.com> Date: Wed, 31 Jan 2018 09:07:49 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <1517408457-17271-1-git-send-email-zhihong.wang@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Wed, 31 Jan 2018 08:07:53 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH] vhost: fix ANY_LAYOUT definition for old kernels X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jan 2018 08:07:54 -0000 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 > >