summaryrefslogtreecommitdiff
path: root/lib/librte_kni/rte_kni.h
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2015-04-23 14:03:52 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-05-11 15:36:37 +0200
commit6234585feed434315c72c16789798c6040fc1ea8 (patch)
tree54e748c1db799814b2f5d65a3d97ffef4e6b925c /lib/librte_kni/rte_kni.h
parent12fd7252045c47fe125df8311465a25c36b29449 (diff)
downloaddpdk-6234585feed434315c72c16789798c6040fc1ea8.zip
dpdk-6234585feed434315c72c16789798c6040fc1ea8.tar.gz
dpdk-6234585feed434315c72c16789798c6040fc1ea8.tar.xz
kni: remove inclusion of mbuf header
The kni header file includes the mbuf header file, but it does not need to do so as it only uses pointers to the struct rte_mbuf type, and does not use any of the mbuf internals, nor any of the mbuf functions or macros. Therefore the inclusion is unnecessary, and can be replaced by a forward declaration of the mbuf type. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
Diffstat (limited to 'lib/librte_kni/rte_kni.h')
-rw-r--r--lib/librte_kni/rte_kni.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_kni/rte_kni.h b/lib/librte_kni/rte_kni.h
index 815b8e2..98edd72 100644
--- a/lib/librte_kni/rte_kni.h
+++ b/lib/librte_kni/rte_kni.h
@@ -47,7 +47,6 @@
*/
#include <rte_pci.h>
-#include <rte_mbuf.h>
#include <exec-env/rte_kni_common.h>
@@ -56,6 +55,7 @@ extern "C" {
#endif
struct rte_kni;
+struct rte_mbuf;
/**
* Structure which has the function pointers for KNI interface.