ethdev: introduce Rx queue offloads API
[dpdk.git] / examples / multi_process / l2fwd_fork / flib.c
index aace308..c22e983 100644 (file)
@@ -55,9 +55,7 @@
 #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>
 #include <rte_atomic.h>
 #include <rte_cycles.h>
@@ -71,7 +69,6 @@
 #include <rte_debug.h>
 #include <rte_ether.h>
 #include <rte_ethdev.h>
-#include <rte_ring.h>
 #include <rte_mempool.h>
 #include <rte_mbuf.h>
 #include <rte_string_fns.h>
@@ -180,7 +177,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 +297,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;
        }