From mboxrd@z Thu Jan 1 00:00:00 1970 From: Harry van Haaren Subject: [PATCH v2 01/15] eventdev: remove unneeded dependencies Date: Tue, 31 Jan 2017 16:14:19 +0000 Message-ID: <1485879273-86228-2-git-send-email-harry.van.haaren@intel.com> References: <1484580885-148524-1-git-send-email-harry.van.haaren@intel.com> <1485879273-86228-1-git-send-email-harry.van.haaren@intel.com> Cc: jerin.jacob@caviumnetworks.com, Bruce Richardson , Harry van Haaren To: dev@dpdk.org Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id A96DAFFA for ; Tue, 31 Jan 2017 17:14:46 +0100 (CET) In-Reply-To: <1485879273-86228-1-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" 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 */ /* Event device capability bitmap flags */ #define RTE_EVENT_DEV_CAP_QUEUE_QOS (1ULL << 0) -- 2.7.4