From: Thomas Monjalon Date: Tue, 17 Jun 2014 00:31:30 +0000 (+0200) Subject: ip_frag: clean includes X-Git-Tag: spdx-start~10704 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ad942d78c1b5c0fd558ac7c069278c7c37ddaa68;p=dpdk.git ip_frag: clean includes Add required rte_byteorder in rte_ip_frag.h. Remove useless includes in *.c files. Signed-off-by: Thomas Monjalon --- diff --git a/lib/librte_ip_frag/ip_frag_internal.c b/lib/librte_ip_frag/ip_frag_internal.c index 5d3503788b..cfcab1bd20 100644 --- a/lib/librte_ip_frag/ip_frag_internal.c +++ b/lib/librte_ip_frag/ip_frag_internal.c @@ -32,15 +32,12 @@ */ #include -#include -#include #include #ifdef RTE_MACHINE_CPUFLAG_SSE4_2 #include #endif /* RTE_MACHINE_CPUFLAG_SSE4_2 */ -#include "rte_ip_frag.h" #include "ip_frag_common.h" #define PRIME_VALUE 0xeaad8405 diff --git a/lib/librte_ip_frag/rte_ip_frag.h b/lib/librte_ip_frag/rte_ip_frag.h index 13249d3329..f1e7036f2f 100644 --- a/lib/librte_ip_frag/rte_ip_frag.h +++ b/lib/librte_ip_frag/rte_ip_frag.h @@ -47,6 +47,7 @@ #include #include #include +#include enum { IP_LAST_FRAG_IDX, /**< index of last fragment */ diff --git a/lib/librte_ip_frag/rte_ip_frag_common.c b/lib/librte_ip_frag/rte_ip_frag_common.c index acd1864eac..e4d16d0c2c 100644 --- a/lib/librte_ip_frag/rte_ip_frag_common.c +++ b/lib/librte_ip_frag/rte_ip_frag_common.c @@ -32,14 +32,11 @@ */ #include -#include #include #include #include -#include -#include "rte_ip_frag.h" #include "ip_frag_common.h" #define IP_FRAG_HASH_FNUM 2 diff --git a/lib/librte_ip_frag/rte_ipv4_fragmentation.c b/lib/librte_ip_frag/rte_ipv4_fragmentation.c index 7ec20cf522..3ab665f46c 100644 --- a/lib/librte_ip_frag/rte_ipv4_fragmentation.c +++ b/lib/librte_ip_frag/rte_ipv4_fragmentation.c @@ -32,17 +32,12 @@ */ #include -#include #include -#include #include #include #include -#include -#include -#include "rte_ip_frag.h" #include "ip_frag_common.h" /* Fragment Offset */ diff --git a/lib/librte_ip_frag/rte_ipv4_reassembly.c b/lib/librte_ip_frag/rte_ipv4_reassembly.c index cc9a9c8464..cbac413a2e 100644 --- a/lib/librte_ip_frag/rte_ipv4_reassembly.c +++ b/lib/librte_ip_frag/rte_ipv4_reassembly.c @@ -31,19 +31,11 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - - #include -#include -#include -#include #include #include -#include -#include -#include "rte_ip_frag.h" #include "ip_frag_common.h" /* diff --git a/lib/librte_ip_frag/rte_ipv6_fragmentation.c b/lib/librte_ip_frag/rte_ipv6_fragmentation.c index e8f137cfc5..6b660c4062 100644 --- a/lib/librte_ip_frag/rte_ipv6_fragmentation.c +++ b/lib/librte_ip_frag/rte_ipv6_fragmentation.c @@ -32,14 +32,10 @@ */ #include -#include #include -#include #include -#include -#include "rte_ip_frag.h" #include "ip_frag_common.h" /** diff --git a/lib/librte_ip_frag/rte_ipv6_reassembly.c b/lib/librte_ip_frag/rte_ipv6_reassembly.c index c6522508c4..1d83c79eec 100644 --- a/lib/librte_ip_frag/rte_ipv6_reassembly.c +++ b/lib/librte_ip_frag/rte_ipv6_reassembly.c @@ -32,15 +32,9 @@ */ #include -#include -#include #include -#include -#include -#include -#include "rte_ip_frag.h" #include "ip_frag_common.h" /**