From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH v3 20/22] vhost: workaround the build dependency on mbuf header Date: Fri, 31 Mar 2017 11:13:57 +0200 Message-ID: <830d2611-0baa-efdc-5355-5a67a65f85bb@redhat.com> References: <1490253059-28112-1-git-send-email-yuanhan.liu@linux.intel.com> <1490705142-893-1-git-send-email-yuanhan.liu@linux.intel.com> <1490705142-893-21-git-send-email-yuanhan.liu@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: Harris James R , Liu Changpeng To: Yuanhan Liu , dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 8AC662BBD for ; Fri, 31 Mar 2017 11:14:00 +0200 (CEST) In-Reply-To: <1490705142-893-21-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" On 03/28/2017 02:45 PM, Yuanhan Liu wrote: > 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(+) Reviewed-by: Maxime Coquelin Thanks, Maxime