From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH 01/15] eventdev: remove unneeded dependencies Date: Tue, 17 Jan 2017 14:41:40 +0530 Message-ID: <20170117091139.GA17275@localhost.localdomain> References: <1484581255-148720-1-git-send-email-harry.van.haaren@intel.com> <1484581255-148720-2-git-send-email-harry.van.haaren@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: , Bruce Richardson To: Harry van Haaren Return-path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0044.outbound.protection.outlook.com [104.47.34.44]) by dpdk.org (Postfix) with ESMTP id 8EAFB11DE for ; Tue, 17 Jan 2017 10:11:57 +0100 (CET) Content-Disposition: inline In-Reply-To: <1484581255-148720-2-git-send-email-harry.van.haaren@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 Mon, Jan 16, 2017 at 03:40:41PM +0000, Harry van Haaren wrote: > From: Bruce Richardson > > Since eventdev uses event structures rather than working directly on > mbufs, there is no actual dependencies on the mbuf library. The > inclusion of an mbuf pointer element inside the event itself does not > require the inclusion of the mbuf header file. Similarly the pci > header is not needed, but following their removal, rte_memory.h is > needed for the definition of the __rte_cache_aligned macro. > > Signed-off-by: Bruce Richardson > Signed-off-by: Harry van Haaren > --- > lib/librte_eventdev/Makefile | 1 - > lib/librte_eventdev/rte_eventdev.h | 5 +++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/lib/librte_eventdev/Makefile b/lib/librte_eventdev/Makefile > index dac0663..396e5ec 100644 > --- a/lib/librte_eventdev/Makefile > +++ b/lib/librte_eventdev/Makefile > @@ -52,6 +52,5 @@ EXPORT_MAP := rte_eventdev_version.map > > # library dependencies > DEPDIRS-y += lib/librte_eal > -DEPDIRS-y += lib/librte_mbuf > > include $(RTE_SDK)/mk/rte.lib.mk > diff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev/rte_eventdev.h > index e1bd05f..c2f9310 100644 > --- a/lib/librte_eventdev/rte_eventdev.h > +++ b/lib/librte_eventdev/rte_eventdev.h > @@ -244,8 +244,9 @@ extern "C" { > #endif > > #include > -#include > -#include > +#include > + > +struct rte_mbuf; /* we just use mbuf pointers; no need to include rte_mbuf.h */ This "struct rte_mbuf" reference is not present in dpdk-next-eventdev tree. Are you planning to rebase to dpdk-next-eventdev? > > /* Event device capability bitmap flags */ > #define RTE_EVENT_DEV_CAP_QUEUE_QOS (1ULL << 0) > -- > 2.7.4 >