X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fmulti_process%2Fl2fwd_fork%2Fflib.c;h=343f09f1aff64ce6735a169c7af63d4edeb013b4;hb=4ae39dfa69ad9a1ae6174f52c60c187d2843402b;hp=aace308c3ef920e69eb78ada6c0d04227469ecd8;hpb=3031749c2df04a63cdcef186dcce3781e61436e8;p=dpdk.git diff --git a/examples/multi_process/l2fwd_fork/flib.c b/examples/multi_process/l2fwd_fork/flib.c index aace308c3e..343f09f1af 100644 --- a/examples/multi_process/l2fwd_fork/flib.c +++ b/examples/multi_process/l2fwd_fork/flib.c @@ -55,7 +55,6 @@ #include #include #include -#include #include #include #include @@ -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; }