From: Bruce Richardson Subject: [PATCH 1/3] ethdev: Remove ethdev.h dependency on mbuf + mempool Date: Fri, 16 May 2014 19:15:12 +0100 Message-ID: <1400264114-28455-2-git-send-email-bruce.richardson@intel.com> References: <1400264114-28455-1-git-send-email-bruce.richardson@intel.com> To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1400264114-28455-1-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" This allows us to get the ethdev structure definition without a full set of additional headers from other libs being included. To ensure compilation, add new includes to C files that needed mbuf header without explicitly including it. Signed-off-by: Bruce Richardson --- app/test-pmd/cmdline.c | 1 + app/test/test_pmd_ring.c | 1 + lib/librte_ether/rte_ethdev.h | 4 +++- lib/librte_pmd_vmxnet3/vmxnet3_ethdev.c | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index b3824f9..2b6ffe4 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -74,6 +74,7 @@ #include #include #include +#include #include #include diff --git a/app/test/test_pmd_ring.c b/app/test/test_pmd_ring.c index 4d9c2ba..3bb98ee 100644 --- a/app/test/test_pmd_ring.c +++ b/app/test/test_pmd_ring.c @@ -36,6 +36,7 @@ #include +#include #include #include diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index dea7471..44f064e 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -175,9 +175,11 @@ extern "C" { #include #include #include -#include #include "rte_ether.h" +struct rte_mbuf; +struct rte_mempool; + /** * A structure used to retrieve statistics for an Ethernet port. */ diff --git a/lib/librte_pmd_vmxnet3/vmxnet3_ethdev.c b/lib/librte_pmd_vmxnet3/vmxnet3_ethdev.c index 8259cfe..6f244b6 100644 --- a/lib/librte_pmd_vmxnet3/vmxnet3_ethdev.c +++ b/lib/librte_pmd_vmxnet3/vmxnet3_ethdev.c @@ -55,6 +55,7 @@ #include #include #include +#include #include #include #include -- 1.9.0