From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH 13/17] vhost: do not include net specific headers Date: Wed, 22 Mar 2017 14:21:20 +0800 Message-ID: <20170322062120.GM18844@yliu-dev.sh.intel.com> References: <1488534682-3494-1-git-send-email-yuanhan.liu@linux.intel.com> <1488534682-3494-14-git-send-email-yuanhan.liu@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "dev@dpdk.org" , Maxime Coquelin , "Harris, James R" To: "Liu, Changpeng" Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id D108511C5 for ; Wed, 22 Mar 2017 07:23:18 +0100 (CET) Content-Disposition: inline In-Reply-To: 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 Mon, Mar 20, 2017 at 07:32:45AM +0000, Liu, Changpeng wrote: > > diff --git a/lib/librte_vhost/rte_virtio_net.h b/lib/librte_vhost/rte_virtio_net.h > > index fa98d29..e19ebad 100644 > > --- a/lib/librte_vhost/rte_virtio_net.h > > +++ b/lib/librte_vhost/rte_virtio_net.h > > @@ -42,14 +42,10 @@ > > #include > > #include > > #include > > -#include > > #include > > -#include > > -#include > > > > #include > > #include > > -#include > > One small nits here, remove net specific headers is good idea, since API rte_vhost_dequeue_burst/rte_vhost_enqueue_burst > has "struct rte_mbuf" declared parameter, user must include in their own applications. > Can we add extra line "struct rte_mbuf;" before the rte_vhost_dequeue_burst/rte_vhost_enqueue_burst > APIs to avoid such extra includes? Good suggestion, and sure, we can do that. And I had a plan to add a config option to not build the net driver when it's given. Thus, it could give us a vhost with minimum dependences, say no dependence on mbuf, on rte_malloc and etc. I was thinking to name it to "CONFIG_RTE_VHOST_MINIMUM", or something like that. It's likely something I will do in the next release. --yliu