ip_frag: clean includes

Add required rte_byteorder in rte_ip_frag.h.
Remove useless includes in *.c files.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
This commit is contained in:
Thomas Monjalon 2014-06-17 02:31:30 +02:00
parent 7b79b2718f
commit ad942d78c1
7 changed files with 1 additions and 29 deletions

View File

@ -32,15 +32,12 @@
*/
#include <stddef.h>
#include <stdint.h>
#include <rte_byteorder.h>
#include <rte_jhash.h>
#ifdef RTE_MACHINE_CPUFLAG_SSE4_2
#include <rte_hash_crc.h>
#endif /* RTE_MACHINE_CPUFLAG_SSE4_2 */
#include "rte_ip_frag.h"
#include "ip_frag_common.h"
#define PRIME_VALUE 0xeaad8405

View File

@ -47,6 +47,7 @@
#include <rte_malloc.h>
#include <rte_mbuf.h>
#include <rte_ip.h>
#include <rte_byteorder.h>
enum {
IP_LAST_FRAG_IDX, /**< index of last fragment */

View File

@ -32,14 +32,11 @@
*/
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <rte_memory.h>
#include <rte_log.h>
#include <rte_byteorder.h>
#include "rte_ip_frag.h"
#include "ip_frag_common.h"
#define IP_FRAG_HASH_FNUM 2

View File

@ -32,17 +32,12 @@
*/
#include <stddef.h>
#include <stdint.h>
#include <errno.h>
#include <rte_byteorder.h>
#include <rte_memcpy.h>
#include <rte_mempool.h>
#include <rte_debug.h>
#include <rte_mbuf.h>
#include <rte_ip.h>
#include "rte_ip_frag.h"
#include "ip_frag_common.h"
/* Fragment Offset */

View File

@ -31,19 +31,11 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <stddef.h>
#include <stdint.h>
#include <rte_byteorder.h>
#include <rte_mbuf.h>
#include <rte_debug.h>
#include <rte_tailq.h>
#include <rte_malloc.h>
#include <rte_ip.h>
#include "rte_ip_frag.h"
#include "ip_frag_common.h"
/*

View File

@ -32,14 +32,10 @@
*/
#include <stddef.h>
#include <stdint.h>
#include <errno.h>
#include <rte_byteorder.h>
#include <rte_memcpy.h>
#include <rte_ip.h>
#include "rte_ip_frag.h"
#include "ip_frag_common.h"
/**

View File

@ -32,15 +32,9 @@
*/
#include <stddef.h>
#include <stdint.h>
#include <rte_malloc.h>
#include <rte_memcpy.h>
#include <rte_byteorder.h>
#include <rte_mbuf.h>
#include <rte_ip.h>
#include "rte_ip_frag.h"
#include "ip_frag_common.h"
/**