examples/bond: fix build with clang
[dpdk.git] / examples / multi_process / l2fwd_fork / flib.c
index aace308..343f09f 100644 (file)
@@ -55,7 +55,6 @@
 #include <rte_memory.h>
 #include <rte_memcpy.h>
 #include <rte_memzone.h>
-#include <rte_tailq.h>
 #include <rte_eal.h>
 #include <rte_per_lcore.h>
 #include <rte_launch.h>
@@ -180,7 +179,7 @@ lcore_id_init(void)
        /* Setup lcore ID allocation map */
        lcore_cfg = rte_zmalloc("LCORE_ID_MAP",
                                                sizeof(uint16_t) * RTE_MAX_LCORE,
-                                               CACHE_LINE_SIZE);
+                                               RTE_CACHE_LINE_SIZE);
 
        if(lcore_cfg == NULL)
                rte_panic("Failed to malloc\n");
@@ -300,7 +299,7 @@ flib_init(void)
 {
        if ((core_cfg = rte_zmalloc("core_cfg",
                sizeof(struct lcore_stat) * RTE_MAX_LCORE,
-               CACHE_LINE_SIZE)) == NULL ) {
+               RTE_CACHE_LINE_SIZE)) == NULL ) {
                printf("rte_zmalloc failed\n");
                return -1;
        }