Include rte_config.h before other DPDK headers

Building the tip of the spdk master against the dpdk-2.2.0 fails with
inappropriate RTE_CACHE_LINE_SIZE error. The simple reversal of the RTE
include file order below fixed it for me.

Change-Id: I8782b7ee21d7f185e6e678f874fbdab9403117a5
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Andrey Kuzmin 2016-02-16 10:46:37 -07:00 committed by Daniel Verkamp
parent accf229829
commit 5bb66add46
2 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@
#include <pthread.h> #include <pthread.h>
#include <stdio.h> #include <stdio.h>
#include <stdbool.h> #include <stdbool.h>
#include <rte_malloc.h>
#include <rte_config.h> #include <rte_config.h>
#include <rte_malloc.h>
#include <rte_atomic.h> #include <rte_atomic.h>
#include <rte_cycles.h> #include <rte_cycles.h>

View File

@ -38,8 +38,8 @@
#include "spdk/pci.h" #include "spdk/pci.h"
#include "spdk/nvme_spec.h" #include "spdk/nvme_spec.h"
#include <assert.h> #include <assert.h>
#include <rte_malloc.h>
#include <rte_config.h> #include <rte_config.h>
#include <rte_malloc.h>
#include <rte_mempool.h> #include <rte_mempool.h>
#include <rte_memcpy.h> #include <rte_memcpy.h>