summaryrefslogtreecommitdiff
path: root/lib/librte_ip_frag
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2015-04-23 14:03:53 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-05-11 15:36:37 +0200
commit216391fc3fcf83e4e863b52a7ea327eca2724d86 (patch)
treed8c1e4c177dadd4515821a29772976e8e2e86865 /lib/librte_ip_frag
parentec10e8d24eb529709806d2af0e45d03ca7f85ee9 (diff)
downloaddpdk-216391fc3fcf83e4e863b52a7ea327eca2724d86.zip
dpdk-216391fc3fcf83e4e863b52a7ea327eca2724d86.tar.gz
dpdk-216391fc3fcf83e4e863b52a7ea327eca2724d86.tar.xz
ip_frag: remove inclusion of mbuf header
The ip_frag 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_ip_frag')
-rw-r--r--lib/librte_ip_frag/rte_ip_frag.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/librte_ip_frag/rte_ip_frag.h b/lib/librte_ip_frag/rte_ip_frag.h
index f673728..52f44c9 100644
--- a/lib/librte_ip_frag/rte_ip_frag.h
+++ b/lib/librte_ip_frag/rte_ip_frag.h
@@ -49,11 +49,12 @@ extern "C" {
#include <stdio.h>
#include <rte_malloc.h>
-#include <rte_mbuf.h>
#include <rte_memory.h>
#include <rte_ip.h>
#include <rte_byteorder.h>
+struct rte_mbuf;
+
enum {
IP_LAST_FRAG_IDX, /**< index of last fragment */
IP_FIRST_FRAG_IDX, /**< index of first fragment */