From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: [PATCH v3 20/22] vhost: workaround the build dependency on mbuf header Date: Tue, 28 Mar 2017 20:45:40 +0800 Message-ID: <1490705142-893-21-git-send-email-yuanhan.liu@linux.intel.com> References: <1490253059-28112-1-git-send-email-yuanhan.liu@linux.intel.com> <1490705142-893-1-git-send-email-yuanhan.liu@linux.intel.com> Cc: Maxime Coquelin , Harris James R , Liu Changpeng , Yuanhan Liu To: dev@dpdk.org Return-path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 99833D00F for ; Tue, 28 Mar 2017 14:48:31 +0200 (CEST) In-Reply-To: <1490705142-893-1-git-send-email-yuanhan.liu@linux.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" rte_mbuf struct is something more likely will be used only in vhost-user net driver, while we have made vhost-user generic enough that it can be used for implementing other drivers (such as vhost-user SCSI), they have also include . Otherwise, the build will be broken. We could workaround it by using forward declaration, so that other non-net drivers won't need include . Signed-off-by: Yuanhan Liu --- lib/librte_vhost/rte_vhost.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/librte_vhost/rte_vhost.h b/lib/librte_vhost/rte_vhost.h index d4ee210..bc1a958 100644 --- a/lib/librte_vhost/rte_vhost.h +++ b/lib/librte_vhost/rte_vhost.h @@ -348,6 +348,8 @@ int rte_vhost_driver_callback_register(const char *path, */ uint16_t rte_vhost_avail_entries(int vid, uint16_t queue_id); +struct rte_mbuf; +struct rte_mempool; /** * This function adds buffers to the virtio devices RX virtqueue. Buffers can * be received from the physical port or from another virtual device. A packet -- 1.9.0