summaryrefslogtreecommitdiff
path: root/app/test-acl
diff options
context:
space:
mode:
authorSergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>2014-11-19 12:26:06 +0000
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-11-27 16:21:11 +0100
commitfdf20fa7bee9df9037116318a87080e1eb7e757e (patch)
tree555c742ef267d7d6b1b60aeaad00f9f1407a62f2 /app/test-acl
parentbe04c7072745e0471fc185c31c2a2df835ee4e06 (diff)
downloaddpdk-fdf20fa7bee9df9037116318a87080e1eb7e757e.zip
dpdk-fdf20fa7bee9df9037116318a87080e1eb7e757e.tar.gz
dpdk-fdf20fa7bee9df9037116318a87080e1eb7e757e.tar.xz
add prefix to cache line macros
CACHE_LINE_SIZE is a macro defined in machine/param.h in FreeBSD and conflicts with DPDK macro version. Adding RTE_ prefix to avoid conflicts. CACHE_LINE_MASK and CACHE_LINE_ROUNDUP are also prefixed. Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com> [Thomas: updated on HEAD, including PPC]
Diffstat (limited to 'app/test-acl')
-rw-r--r--app/test-acl/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/test-acl/main.c b/app/test-acl/main.c
index 9d4dce6..b3d4294 100644
--- a/app/test-acl/main.c
+++ b/app/test-acl/main.c
@@ -472,7 +472,7 @@ tracef_init(void)
struct ipv6_5tuple *w;
sz = config.nb_traces * (config.ipv6 ? sizeof(*w) : sizeof(*v));
- config.traces = rte_zmalloc_socket(name, sz, CACHE_LINE_SIZE,
+ config.traces = rte_zmalloc_socket(name, sz, RTE_CACHE_LINE_SIZE,
SOCKET_ID_ANY);
if (config.traces == NULL)
rte_exit(EXIT_FAILURE, "Cannot allocate %zu bytes for "