From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 2E1AE1B6C4 for ; Wed, 31 Jan 2018 03:25:42 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jan 2018 18:25:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,437,1511856000"; d="scan'208";a="199970715" Received: from unknown (HELO dpdk98.sh.intel.com) ([10.67.111.140]) by fmsmga005.fm.intel.com with ESMTP; 30 Jan 2018 18:25:39 -0800 From: Zhihong Wang To: yliu@fridaylinux.org Cc: dev@dpdk.org, jianfeng.tan@intel.com, maxime.coquelin@redhat.com, Zhihong Wang Date: Wed, 31 Jan 2018 09:20:57 -0500 Message-Id: <1517408457-17271-1-git-send-email-zhihong.wang@intel.com> X-Mailer: git-send-email 2.7.5 Subject: [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 02:25:42 -0000 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(+) 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 -- 2.7.5