From: Yuanhan Liu Date: Sat, 1 Apr 2017 07:22:58 +0000 (+0800) Subject: vhost: workaround the build dependency on mbuf header X-Git-Tag: spdx-start~3880 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ea67f6ccf7b584269c00ab159fe8267cc370fad9;p=dpdk.git vhost: workaround the build dependency on mbuf header 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 Reviewed-by: Maxime Coquelin --- diff --git a/lib/librte_vhost/rte_vhost.h b/lib/librte_vhost/rte_vhost.h index d482a72cdc..7a586e4016 100644 --- a/lib/librte_vhost/rte_vhost.h +++ b/lib/librte_vhost/rte_vhost.h @@ -354,6 +354,8 @@ int rte_vhost_get_ifname(int vid, char *buf, size_t len); */ 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