From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by dpdk.org (Postfix) with ESMTP id 557EDB0FC for ; Fri, 16 May 2014 20:15:11 +0200 (CEST) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 16 May 2014 11:15:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,1068,1389772800"; d="scan'208";a="433166837" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by azsmga001.ch.intel.com with ESMTP; 16 May 2014 11:15:17 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id s4GIFGjD005879; Fri, 16 May 2014 19:15:16 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id s4GIFGeI028573; Fri, 16 May 2014 19:15:16 +0100 Received: (from bricha3@localhost) by sivswdev02.ir.intel.com with id s4GIFGxd028569; Fri, 16 May 2014 19:15:16 +0100 From: Bruce Richardson To: dev@dpdk.org Date: Fri, 16 May 2014 19:15:12 +0100 Message-Id: <1400264114-28455-2-git-send-email-bruce.richardson@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1400264114-28455-1-git-send-email-bruce.richardson@intel.com> References: <1400264114-28455-1-git-send-email-bruce.richardson@intel.com> Subject: [dpdk-dev] [PATCH 1/3] ethdev: Remove ethdev.h dependency on mbuf + mempool X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2014 18:15:11 -0000 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