From: Bruce Richardson Date: Tue, 31 Jan 2017 16:14:19 +0000 (+0000) Subject: eventdev: remove unneeded dependencies X-Git-Tag: spdx-start~3870 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=2ed019db7cadca69476dfa5937addd4bc9bcac17;p=dpdk.git eventdev: remove unneeded dependencies 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 Acked-by: Jerin Jacob --- diff --git a/lib/Makefile b/lib/Makefile index 689b7b401f..2c9c07b780 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -52,7 +52,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += librte_cryptodev DEPDIRS-librte_cryptodev := librte_eal librte_mempool librte_ring librte_mbuf DEPDIRS-librte_cryptodev += librte_kvargs DIRS-$(CONFIG_RTE_LIBRTE_EVENTDEV) += librte_eventdev -DEPDIRS-librte_eventdev := librte_eal librte_mbuf +DEPDIRS-librte_eventdev := librte_eal DIRS-$(CONFIG_RTE_LIBRTE_VHOST) += librte_vhost DEPDIRS-librte_vhost := librte_eal librte_mempool librte_mbuf librte_ether DIRS-$(CONFIG_RTE_LIBRTE_HASH) += librte_hash diff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev/rte_eventdev.h index e1bd05f12b..c2f931012f 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)