git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples/bond: fix build with clang
[dpdk.git]
/
examples
/
multi_process
/
l2fwd_fork
/
flib.c
diff --git
a/examples/multi_process/l2fwd_fork/flib.c
b/examples/multi_process/l2fwd_fork/flib.c
index
aace308
..
343f09f
100644
(file)
--- a/
examples/multi_process/l2fwd_fork/flib.c
+++ b/
examples/multi_process/l2fwd_fork/flib.c
@@
-55,7
+55,6
@@
#include <rte_memory.h>
#include <rte_memcpy.h>
#include <rte_memzone.h>
#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_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,
/* 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");
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,
{
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;
}
printf("rte_zmalloc failed\n");
return -1;
}